MSCAN in MC9S12DG128

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

MSCAN in MC9S12DG128

1,234 Views
pammu
Contributor I
Hi,
 
I have scenario where I am sending three CAN frames every 10ms. The problem, in case of a error condition (when no node is connected - error, active, passive and bus-off), I want to clear the transmit buffers. How do I do this?
 
Is aborting the transmission a solution? Is aborting same as clearing the buffers?
Labels (1)
0 Kudos
1 Reply

267 Views
DannyM83
Contributor III
Requesting to abort a message will clear any messages which have been scheduled for transmission but are not yet being transmitted.

The CANxTARQ register is used to select which buffers to abort. In your case this would be all buffers.

The CANxTAAK register reports if the abort was successful. A 1 signifys that the corresponding message buffer is now empty. A zero signifys that the abort was unsuccessful and the message was transmitted.

Hope that helps.
0 Kudos