I have a CAN circuit from another project, and I want to reuse it and connect to my microcontroller, however it is a 5V transceiver and my microcontroller is 3.3 V, is it OK to connect TX and RX directly to my microcontroller?
Transceiver: http://ww1.microchip.com/downloads/en/DeviceDoc/20001667G.pdf
The pins I want to use are pin 93 and pin 163.
Microcontroller output:
Best Answer
It should indeed work
The Vih on the TXD pin of the CAN transceiver you're using is 2.0V, while the Voh for the STM32 is 2.4V; considering that the STM32 family has 5V tolerant input pins for most of its digital-only I/Os (including the ones you're using assuming we're talking about the LQFP176 package here), you're good on both sides of the deal here.