The ESP32 Datasheet is missing of a CAN-Bus chapter section.
https://www.espressif.com/sites/default ... eet_en.pdf
https://www.espressif.com/sites/default ... nes_en.pdf
There is a more detailed datasheet? I can't find it.
On ESP-IDF guide i read that I can connect the Rx\Tx lines almost on all GPIO's. But my experience tell me that is better to investigate when there is nothing explicit on hardware datasheets.
Anyway, I need to validate my design before first pcbs production:
I need to know if on a ESP32 I can connect Trasceiver RX\TX Lines as follow:
Can Rx on GPIO4 of ESP32
Can Tx on GPIO16 of ESP32
Can anyone help me with an assertation of this connetions?
Thank you in advice.
Best regards.
CAN transceiver Pinout on ESP32
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: CAN transceiver Pinout on ESP32
Look for a peripheral called TWAI. Also, you can route the can bus pins to any output-capable GPIO pins, 4 and 16 should work just fine given that your ESP32 does not use PSRAM or 1.8V flash (in which case GPIO16 will be unusable).
Re: CAN transceiver Pinout on ESP32
I was wrong with that GPIOs because I use a module with PSRAM.
I forget to check also the module datasheet:
https://www.mouser.it/datasheet/2/891/e ... 855913.pdf
I moved my GPIO:
CAN_RX on GPIO18
CAN_TX on GPIO19
and in another product, same module but I have an SPI on GPIO 5,18,19,23 so I move to:
CAN_RX on GPIO21
CAN_TX on GPIO22
Maybe now I will have it correct.
Thank you for the reply.
I forget to check also the module datasheet:
https://www.mouser.it/datasheet/2/891/e ... 855913.pdf
I moved my GPIO:
CAN_RX on GPIO18
CAN_TX on GPIO19
and in another product, same module but I have an SPI on GPIO 5,18,19,23 so I move to:
CAN_RX on GPIO21
CAN_TX on GPIO22
Maybe now I will have it correct.
Thank you for the reply.
Who is online
Users browsing this forum: Bing [Bot] and 172 guests