4 posts • Page 1 of 1
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?
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.
Who is online
Users browsing this forum: Bing [Bot] and 14 guests