English
Language : 

CP3BT23 Datasheet, PDF (100/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
Error Active
An error active unit can participate in bus communication
and may send an active (“dominant”) error flag.
Error Warning
when the transmit error counter is greater than 255. A bus
off device will become error active again after monitoring
128 × 11 “recessive” bits (including bus idle) on the bus.
When the device goes from “bus off“ to “error active“, both
error counters will have a value of 0.
The Error Warning state is a sub-state of Error Active to in-
dicate a heavily disturbed bus. The CAN module behaves
as in Error Active mode. The device is reset into the Error
Active mode if the value of both counters is less than 96.
18.2.5 Error Counters
There are multiple mechanisms in the CAN protocol to de-
tect errors and inhibit erroneous modules from disabling all
bus activities. Each CAN module includes two error
Error Passive
counters to perform error management. The receive error
An error passive unit can participate in bus communication. counter (REC) and the transmit error counter (TEC) are 8-
However, if the unit detects an error it is not allowed to send bits wide, located in the 16-bit wide CANEC register. The
an active error flag. The unit sends only a passive (“reces- counters are modified by the CAN module according to the
sive”) error flag. A device is error passive when the transmit rules listed in Table 38. This table provides an overview of
error counter or the receive error counter is greater than
127. A device becoming error passive will send an active er-
ror flag. An error passive device becomes error active again
when both transmit and receive error counter are less than
128.
the CAN error conditions and the behavior of the CAN mod-
ule; for a detailed description of the error management and
fault confinement rules, refer to the CAN Specification 2.0B.
If the MSB (bit 7) of the REC is set, the node is error passive
and the REC will not increment any further.
Bus Off
The Error counters can be read by application software as
te A unit that is bus off has the output drivers disabled, i.e., it
does not participate in any bus activity. A device is bus off
described under CAN Error Counter Register (CANECn) on
page 122.
Table 38 Error Counter Handling
Condition
Action
le Receive Error Counter Conditions
A receiver detects a bit error during sending an active error flag.
Increment by 8
A receiver detects a “dominant“ bit as the first bit after sending an error flag
Increment by 8
After detecting the 14th consecutive “dominant“ bit following an active error flag or overload
o flag, or after detecting the 8th consecutive “dominant“ bit following a passive error flag.
Increment by 8
After each sequence of additional 8 consecutive “dominant” bits.
Any other error condition (stuff, frame, CRC, ACK)
Increment by 1
s A valid reception or transmission
Decrement by 1 unless
counter is already 0
Transmit Error Counter Conditions
b A transmitter detects a bit error while sending an active error flag
Increment by 8
After detecting the 14th consecutive “dominant“ bit following an active error flag or overload
flag or after detecting the 8th consecutive “dominant“ bit following a passive error flag.
Increment by 8
O After each sequence of additional 8 consecutive ‘dominant’ bits.
Any other error condition (stuff, frame, CRC, ACK)
Increment by 8
A valid reception or transmission
Decrement by 1 unless
counter is already 0
Special error handling for the TEC counter is performed in
the following situations:
! A stuff error occurs during arbitration, when a transmitted
“recessive” stuff bit is received as a “dominant” bit. This
does not lead to an increment of the TEC.
! An ACK-error occurs in an error passive device and no
“dominant” bits are detected while sending the passive
error flag. This does not lead to an increment of the TEC.
! If only one device is on the bus and this device transmits
a message, it will get no acknowledgment. This will be
detected as an error and the message will be repeated.
When the device goes “error passive” and detects an ac-
knowledge error, the TEC counter is not incremented.
Therefore the device will not go from ”error passive” to
the “bus off” state due to such a condition.
99
www.national.com