We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear All We are in the finishing stage of our CAN based project. We are using LPC2368 ARM7TDMI controller with ULINK2 ARM debugger with KEIL microvision 3 . Presently handling The CAN errors. We have to handle the CAN errors at the transmission side. Till now we are able to handle Error passive ,Error warning & Bus- off interrupts But while reading user manual of LPC 2368 it appears to me the errors
1> Bus error 2> Arbhitration lost
are automatically handled by controller. Can you please tell Weather the handling of these errors is really automatic or programmer have to explicitely take care about it ( Re-transmission of message ). If its automatically Then what should programmer do when these errors occurs In our system we have disabled single shot transmission using CANxCMR register. If any of the Bus error is occuring or arbhitration lost interrupt occuring then the corresponding message will be Re-transmitted by itself of programmer have to Re-transmit explicitely
Weather the controller gets reset after each bus error or only error counters gets incremented . Because we are confused by the sentences given in the Philips user manual.LPc2368.2378. page No 218 in the 3rd paragraph which are given below
"An Error or Bus Status change (Status Register), an Error Warning, or an Error Passive Interrupt forced by the new register content will not occur until the Reset Mode is cancelled again. After leaving the Reset Mode, the new TX Counter content is interpreted and the Bus Off event is performed in the same way as if it was forced by a bus error event. That means, that the Reset Mode is entered again,the TX Error Counter is initialized to 127, the RX Counter is cleared, and all concerned Status and Interrupt Register Bits are set."
Please clarify our doubts and help us in this regard
Thanks & Regards Giridhar