Datasheet

Section 15 Controller Area Network for Tiny (TinyCAN)
Rev. 4.00 Mar. 15, 2006 Page 318 of 556
REJ09B0026-0400
15.3.17 Transmit Error Counter (TEC)
TEC counts the number of transmit message errors on the CAN bus.
Bit Bit Name
Initial
Value R/W Description
7
6
5
4
3
2
1
0
TEC7
TEC6
TEC5
TEC4
TEC3
TEC2
TEC1
TEC0
0
0
0
0
0
0
0
0
R/W*
R/W*
R/W*
R/W*
R/W*
R/W*
R/W*
R/W*
TEC functions as a counter indicating the number of
transmit message errors on the CAN bus. The count
value is stipulated in the CAN protocol. In normal
operation, TEC can only be read, but can only be
modified by the CDLC. TEC is cleared to 0 by a reset
request (MCR.RSTRQ = 1) or on entering the bus off
state.
TEC can be written to in test mode (TCR.TSTMD = 1 and
TCR.WREC = 1). The same value can be written to both
TEC and REC. TEC should be written to in halt mode. In
other modes, a CAN bus communication error may occur
depending on the TEC value. Note that TEC can be
written to only in test mode.
Note: * TEC can be written to only in test mode (TCR.TSTMD = 1 and TCR.WREC = 1). The
same value should be written to TEC and REC.
15.3.18 Receive Error Counter (REC)
REC counts the number of receive message errors on the CAN bus.
Bit Bit Name
Initial
Value R/W Description
7
6
5
4
3
2
1
0
REC7
REC6
REC5
REC4
REC3
REC2
REC1
REC0
0
0
0
0
0
0
0
0
R/W*
R/W*
R/W*
R/W*
R/W*
R/W*
R/W*
R/W*
REC functions as a counter indicating the number of
receive message errors on the CAN bus. The count value
is stipulated in the CAN protocol. In normal operation,
REC can only be read, but can only be modified by the
CDLC. REC is cleared to 0 by a reset request
(MCR.RSTRQ = 1) or on entering the bus off state.
REC can be written to in test mode (TCR.TSTMD = 1 and
TCR.WREC = 1). The same value can be written to both
TEC and REC. REC should be written to in halt mode. In
other modes, a CAN bus communication error may occur
depending on the REC value. Note that REC can be
written to only in test mode.
Note: * REC can be written to only in test mode (TCR.TSTMD = 1 and TCR.WREC = 1). The
same value should be written to TEC and REC.