MC9S08DV32 - CAN bus off recovery

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S08DV32 - CAN bus off recovery

2,600 Views
pammu
Contributor I

Hi,

We are currently working to handle the CAN bus off condition when using 9S08DV32 and request you help in implementing the same.

According to the CAN specification, after CAN bus off condition, the node has to wait for 128 occurrences of 11 consecutive recessive bits.

Can anyone throw some light on

i) How to handle the bus-off recovery condition in this processor?

ii)What registers must be altered and in what order when a bus off condition occurs?

 

 

 

 

 

 

 

 

 

Added part number to subject.



Message Edited by NLFSJ on 2007-07-04 09:19 AM
Labels (1)
0 Kudos
Reply
1 Reply

392 Views
Alban
Senior Contributor II
Hello,

There are 2 CAN schools: ISO and Bosch.
One says you can recover from bus off by software. The other requests manual intervention.

The Bus-Off can be dealt with (detected) with the msCAN Error Interrupt and the state bits.
See CANRFLG with bits TSTAT[1:0] and RSTAT[1:0] description.
See CANRIER for how to enable Interrupts linked to the state of the module (Active, Passive, Bus Off)

Cheers,
Alban.
0 Kudos
Reply