Capture CAN "error frame" in S12X

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

Capture CAN "error frame" in S12X

992 次查看
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 回复

412 次查看
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 项奖励