MSCAN in MC9S12DG128

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

MSCAN in MC9S12DG128

1,755件の閲覧回数
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 返信

788件の閲覧回数
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 件の賞賛
返信