MSCAN in MC9S12DG128

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

MSCAN in MC9S12DG128

1,709 次查看
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?
标签 (1)
0 项奖励
回复
1 回复

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