658
Chapter 19
CAN Controller (CAN)
Preliminary User’s Manual U17566EE1V2UM00
(b) Error counter
The error counter counts up when an error has occurred, and counts down
upon successful transmission and reception. The error counter is updated
during the first bit of the error delimiter.
Table 19-14
Error counter
State
Transmission error counter
(TEC7 to TEC0 Bits)
Reception error counter
(REC6 to REC0 Bits)
Receiving node detects an error (except bit error
in the active error flag or overload flag).
No change
+1 (REPS bit = 0)
Receiving node detects dominant level following
error flag of error frame.
No change
+8 (REPS bit = 0)
Transmitting node transmits an error flag.
[As exceptions, the error counter does not
change in the following cases.]
<1> ACK error is detected in error passive
state and dominant level is not detected
while the passive error flag is being output.
<2> A stuff error is detected in an arbitration
field that transmitted a recessive level as a
stuff bit, but a dominant level is detected.
+8
No change
Bit error detection while active error flag or
overload flag is being output (error-active
transmitting node)
+8
No change
Bit error detection while active error flag or
overload flag is being output (error-active
receiving node)
No change
+8 (REPS bit = 0)
When the node detects 14 consecutive
dominant-level bits from the beginning of the
active error flag or overload flag, and then
subsequently detects 8 consecutive dominant-
level bits.
When the node detects 8 consecutive dominant
levels after a passive error flag
+8 (transmitting)
+8 (receiving, REPS bit = 0)
When the transmitting node has completed
transmission without error
(
±
0 if error counter = 0)
–1
No change
When the receiving node has completed
reception without error
No change
•
–1
(1
≤
REC6 to REC0
≤
127,
REPS bit = 0)
•
±
0
(REC6 to REC0 = 0,
REPS bit = 0)
•
Any value of 119 to 127 is
set
(REPS bit = 1)
electronic components distributor