Teensy 4.1 - Using CTX1 and MOSI

Status
Not open for further replies.

jimmie

Well-known member
Hello:

I have a Teensy 4.1 which is interfaced to a CAN controller via CRX1 and CTX1 (pins 23, 22).

I need to use the Teensy41 with this SPI LCD (http://simple-circuit.com/arduino-st7789-ips-tft-display-example/).

I just noticed that pin 11(MOSI) is also CTX1. I cannot use CRX2, CTX2 because I am using it as a serial port.

Will this cause problems and is there a way around this?

Thanks in advance for the community's help.
 
you can continue using pins 23,22 for CAN. By default the state of pin 11 is INPUT_DISABLE (high impedance state). The moment you use SPI.begin() it is assigned as MOSI, and NOT CAN. The pins have many functions, but programatically, they can only be one or the other.
 
Thank you @tonton81.

If I understand you, this means that once the LCD which uses SPI starts, CAN1 stops working?
 
no CAN continues working on pins 23,22
pin11 is just an alternate pin for CAN, it is not configured to be CAN only SPI
 
Last edited:
Status
Not open for further replies.
Back
Top