MC9S08DV32 - CAN bus off recovery

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9S08DV32 - CAN bus off recovery

2,841件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
1 返信

633件の閲覧回数
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 件の賞賛
返信