SPI and Serial 2

Status
Not open for further replies.

mikeleslie

Active member
ON a teensy 3.1, does serial2 (both RX and TX) get automatically reassigned to pins 26 and 31?
I've soldered it down already and want to check before I attempt to cut a hole in the bottom of the PCB it's mounted to.
 
ON a teensy 3.1, does serial2 (both RX and TX) get automatically reassigned to pins 26 and 31?

No. By default, Serial2 always uses pins 9 and 10.

You can reassign the signals, but there's no user-friendly functions to do so. You'd need to write directly to the port config registers.
 
I have some pin remapping code (can't find it just now), that tries to remap SCK on pin 13 so the onboard LED can continue to be used.
I didn't troubleshoot it, but the code isn't write... the SCK signal did appear on the new pin, but simultaneously on the old LED pin 13. Due to the duty cycle of SCK, the LED didn't show that signal.

An example of something common, like the above, and serial TX,RX would be helpful.
 
Status
Not open for further replies.
Back
Top