LPC11C14 CAN Bus Transmit error counter Reset issue

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

LPC11C14 CAN Bus Transmit error counter Reset issue

1,557 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CH Wu on Wed Aug 19 22:16:00 MST 2015
Hello,

I would like to reset the transmit error counter of the LPC11C14 CAN bus module.
The thing is the transmit error counter is RO(Read Only), can it be modified by any other ways?

CH Wu
标签 (1)
0 项奖励
回复
2 回复数

1,292 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Sun Aug 23 00:31:02 MST 2015
Clearing the error counters manually isn't a good idea and is against the specification (I assume).
Transmit errors increase the counter by 8, receive errors by 1.
Each correctly received message decreases the counter.
Because this is part of the 'strategy' which makes the bus much more safe and stable (see 'error passive' and 'bus off' state) one shouldn't manipulate this mechanism. If no more errors occur, the bus will recover message by message.
0 项奖励
回复

1,292 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CH Wu on Thu Aug 20 20:11:17 MST 2015
Hello,

The LPC2378 can clear the transmit error counter by setting the RM bit.

RXERR (Rx Error Counter) contains the number of messages received in error. Setting the RM bit in the Mode register (CANMOD) allows clearing of this counter.
TXERR (Tx Error Counter) contains the number of messages transmitted in error. Setting the RM bit in the Mode register (CANMOD) allows clearing of this counter.

Does the LPC11C14 or LPC1500 provide the sample funtion?

CH Wu
0 项奖励
回复