MC9S08DV32 - CAN bus off recovery

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S08DV32 - CAN bus off recovery

2,506 次查看
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 回复

298 次查看
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 项奖励
回复