Electronic – connect a 5 V CAN transceiver to a 3.3 V microcontroller

cancircuit analysismicrocontroller

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?

Microcontroller: http://www.st.com/content/ccc/resource/technical/document/datasheet/03/b4/b2/36/4c/72/49/29/DM00071990.pdf/files/DM00071990.pdf/jcr:content/translations/en.DM00071990.pdf

Transceiver: http://ww1.microchip.com/downloads/en/DeviceDoc/20001667G.pdf

The pins I want to use are pin 93 and pin 163.

Microcontroller output:

Enter image description here

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.