154
Atmel ATmega16/32/64/M1/C1 [DATASHEET]
7647K–AVR–12/13
16.7.2 Error Types
●
BERR
: Bit error. The bit value which is monitored is different from the bit value sent.
Note:
Exceptions:
- Recessive bit sent monitored as dominant bit during the arbitration field and the acknowledge slot.
- Detecting a dominant bit during the sending of an error frame.
●
SERR
: Stuff error. Detection of more than five consecutive bit with the same polarity.
●
CERR
: CRC error (Rx only). The receiver performs a CRC check on every destuffed received message from the start of
frame up to the data field. If this checking does not match with the destuffed CRC field, an CRC error is set.
●
FERR
: Form error. The form error results from one (or more) violations of the fixed form of the following bit fields:
●
CRC delimiter
●
acknowledgement delimiter
●
end-of-frame
●
error delimiter
●
overload delimiter
●
AERR
: Acknowledgment error (Tx only). No detection of the dominant bit in the acknowledge slot.
Figure 16-13. Error Detection Procedures in a Data Frame
16.7.3 Error Setting
The CAN channel can detect some errors on the CAN network.
●
In transmission:
The error is set at MOb level.
●
In reception:
●
The identified has matched:
●
The error is set at MOb level.
●
The identified has not or not yet matched:
●
The error is set at general level.
After detecting an error, the CAN channel sends an error frame on network. If the CAN channel detects an error frame on
network, it sends its own error frame.
Tx
ACK
EOF
inter.
CRC
del.
ACK
del.
SOF
Bit error
Stuff error
Form error
ACK error
Bit error
Stuff error
Form error
CRC error
RTR
Identifier
Control
Arbitration
Message Data
CRC