I'm designing a CAN node using an ESP32, which works on 3.3V. The only transceiver I can find where I live at a reasonable cost is the TJA1040. The datasheet says it works both on 5V and 3.3V. I am confused whether I should use 3.3V as supply for both the uC and the transceiver, or use 5V for the transceiver, 3.3V for the uC and just connect the TXD and RXD pins directly.
Here is a link to the datasheet. https://www.mouser.mx/datasheet/2/302/TJA1040-3139578.pdf.
Any help would be really appreciated. Thanks