Capture CAN "error frame" in S12X

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

Capture CAN "error frame" in S12X

1,611件の閲覧回数
enricol
Contributor I

hi all,

 

To be specifc, we are using MS9S12XS256 automotive microcontroller to transmit and receive CAN messages with other nodes within the CAN bus.  We want it to capture and flag every single error frame happening within the CAN bus, but as far as we know, the S12X chip can only generate an interrupt when it goes beyond 96, 128, and 256 error frames.

 

Is there any way where we can interrupt the chip as soon as it receives a single error frame (just like the Vector Canalyzer)?

 

Thanks in advance!

 

 

ラベル(1)
0 件の賞賛
返信
1 返信

1,031件の閲覧回数
crane
Contributor III

I think that you would have to design the hardware to sniff the can-bus with a timer port, using input capture and actually measuring time between edges to find the error frames.

0 件の賞賛
返信