ESP32 CAN controller
ESP32 CAN controller
I'm considering to use the intgrated CAN controller which in the new chip version supports lower bit times (down to 60 µs). I looked at example code and they all use a polling mechanism to find out about received messages. Is there no interrupt mechanism to announce the arrival of new messages, comparable to what MCP2515 offers?
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 CAN controller
You're confusing polling with a task blocking on an event; the examples are doing the latter. The difference is that the first will spin the CPU, which is unwanted, while in the second case the RTOS will simply not execute the task until something happens on the CAN peripheral, which is something you generally do want.
Re: ESP32 CAN controller
Thank you. RTOS is not my forte, hence my lack of understanding.
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 CAN controller
No worries, I can imagine that the distinction is subtle if you're not used to RTOSses.
Who is online
Users browsing this forum: No registered users and 67 guests