Capture CAN "error frame" in S12X

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

Capture CAN "error frame" in S12X

975 Views
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!

 

 

Labels (1)
0 Kudos
1 Reply

395 Views
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 Kudos