MCU User Forum
  CAN interrupt time-outs

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   CAN interrupt time-outs
robertsonics
New Member
posted August 12, 2010 02:15 PM     Click Here to See the Profile for robertsonics     Edit/Delete Message
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
posted August 13, 2010 04:09 AM     Click Here to See the Profile for tony.hague     Edit/Delete Message
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
posted August 13, 2010 08:49 AM     Click Here to See the Profile for robertsonics     Edit/Delete Message
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

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | MCU User Forum

Have you seen our MCU Knowledge Base?


Ultimate Bulletin Board 5.47b