Hello
I am drawing a PCB that uses a Teensy 3.6 but I have not yet got the physical board to do the tests.
I need Serial 1 and also SPI1 working but SPI1 uses pins 0 and 1, which are also used by Serial1. I think the Serial 1 pins can move up to Pin 27 and Pin 26 but I'm not sure how to do it or even if it can be done.
Would something like this work?
For basic use, is it necessary to configure pin pull-up, pin filter and that stuff?
Is there any tutorial for beginners on how to configure the alternative functions of the pins?
Thanks and sorry for my awful English.
I am drawing a PCB that uses a Teensy 3.6 but I have not yet got the physical board to do the tests.
I need Serial 1 and also SPI1 working but SPI1 uses pins 0 and 1, which are also used by Serial1. I think the Serial 1 pins can move up to Pin 27 and Pin 26 but I'm not sure how to do it or even if it can be done.
Would something like this work?
Code:
*portConfigRegister(0) = PORT_PCR_MUX(2); // Pin 0 >> SPI1_MOSI
*portConfigRegister(1) = PORT_PCR_MUX(2); // Pin 1 >> SPI1_MISO
*portConfigRegister(26) = PORT_PCR_MUX(3); // Pin 26 >> Serial1_TX
*portConfigRegister(27) = PORT_PCR_MUX(3); // Pin 27 >> Serial1_RX
For basic use, is it necessary to configure pin pull-up, pin filter and that stuff?
Code:
*portConfigRegister(X) = PORT_PCR_MUX(Y) ) | PORT_PCR_PFE;
Is there any tutorial for beginners on how to configure the alternative functions of the pins?
Thanks and sorry for my awful English.