![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 854](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609854.webp)
BAT32G1x9 user manual | Chapter 22 CAN control
854 / 1149
Rev.1.02
1: When the value of the BOFF bit is 1, the value of the Transmission Error Counter (TEC) is invalid if an error
increases the value of the Error Transmission Counter by 8 when the value of the counter is in In the range
of 248 to 255, the counter does not increase any more and is in the bus off state.
(b) Error counters
When an error occurs, the error counter counts upwards; When successfully accepted and sent, the
error counter counts down. When an error is detected, the value of the error counter is updated
immediately.
Table22-14. Error Counter
state
Transmission error counter
(TEC0 through
TEC7).
Receive error counter
(REC0 ~REC6).
The receiving node detects an error (in addition to the active error flag
or overload flag).
Nothing has changed
+1 (when
REPS bit=0).
The error flag for the error frame is emitted after the receiving
node detects the dominant bit
Nothing has changed
+8 (when
REPS bit=0).
The sending node issues an error flag
[With exception, the error counter does not change in the
following cases].
<1> ACK
error is detected in the passive error state and the
dominant bit is not detected when the passive error flag is
emitted
<2> the Arbitration padding error is detected, sending a recessive
bit as padding, but the dominant bit is detected
+8
Nothing has changed
Bit error detected while active error flag or overload flag output (active
error sending node)
+8
Nothing has changed
Bit error detected while active error flag or overload flag output (active
error receiving node)
Nothing has changed
+8 (when
REPS bit =0).
When a node starts with an active error flag or overload flag, it detects
14 consecutive dominant bits, and then detects 8 consecutive dominant
bits. When a node detects 8 consecutive dominant bits after a passive
error flag.
+8 (at transmission
time).
+8 (when received,
when
REPS bit =0
).
The transport node completed the transfer without errors (±0 if the
error counter = 0
).
–1
Nothing has changed
The receiving node completed the receive without errors
Nothing has changed
-
–1 (1
REC6 to
REC0
127 when
REPS
bit
=
0).
- ± 0 (REC6
to
REC0 = 0,
When REPS
bit
=0).
Values 119
to
127
are set (when
REPS
bit=1).
(c)
Bit errors occur intermittently
Overload frame generation
Warning If an error occurs, the error flag output (active or passive) is controlled based on the content
of the error counter that was transmitted before the error occurred and the content that receives the
error pair. When the error flag is output, the value of the error counter is incremented.