|
![]() MCU User Forum
![]() CAN interrupt time-outs
|
| next newest topic | next oldest topic |
| Author | Topic: CAN interrupt time-outs |
|
robertsonics New Member |
I am working with the C8051F580. I am using a single message object to transmit one PDO write at a time, and always wait for the transmit interrupt to occur before setting up to do the next one. Mostly everything works fine, but I notice that occasionally I time out waiting for the transmit interrupt to occur. Question: What could cause a missing transmit interrupt? Does the interrupt depend on an acknowledgment by the receiver, or is it simply that the CAN transmit buffer is empty? If the latter, why would I ever miss one? IP: Logged |
|
tony.hague Member |
When you say you are waiting for an interrupt, is it an interrupt from the specific message object, or do you have SIE enabled and use the TxOk flag ? The latter is fraught. I think, in either case, the interrupt is raised when a message has been successfully transmitted - which means error free and acknowledged by at least one other node (CCAN manual, 3.2.2) IP: Logged |
|
robertsonics New Member |
I tracked it down to a bug in my interrupt routine - sorry for the false alarm, and thanks for the reply. IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?