
23. 32-Slot CAN Module
23.1.16 CAN2 Error Source Register (C2EFR Register)
Figure 23.19
C2EFR Registers
The C2EFR register determines an error source when a communication error occurs. Set each bit in the C2EFR
register to 0 after reading the C2EFR register by program.
Use the MOV instruction to set each bit in the C2EFR register to 0. Write a 0 to the bit which is to set to 0, and
write a 1 to the bit which is to remain unchanged.
For example: To set the ACKE bit in CAN2 to 0
mov.b #0FEh, C2EFR
23.1.16.1 ACKE Bit
The ACKE bit becomes 1 when an ACK error is detected.
23.1.16.2 CRCE Bit
The CRC bit becomes 1 when a CRC error is detected.
23.1.16.3 FORME Bit
The FORME bit becomes 1 when a FORM error is detected.
Symbol
C2EFR
Address
0516h
After Reset(1)
00h
Function
Bit Symbol
Bit Name
RW
RCVE
CAN2 Error Source Register
FORM error detect bit(2)
FORME
RW
Stuff error detect bit(2)
RW
STFE
0: FORM error not detected
1: FORM error detected
0: Stuff error not detected
1: Stuff error detected
Receive error detect bit(2)
Bit error detect bit 0(2)
BITE0
RW
0: Bit error not detected while transmitting
recessive "H"
1: Bit error detected while transmitting recessive
"H"
RW
Bit error detect bit 1(2)
0: Bit error not detected while transmitting
dominant "L"
1: Bit error detected while transmitting dominant
"L"
BITE1
NOTES:
1. The value is obtained by setting the SLEEP bit in the C2SLPR register to 1 (sleep mode exited) after reset and supplying the
clock to the CAN module.
2. Set the bit to 0 by program. When a 1 is written, the value before writing a 1 remains unchanged.
RW
ACK error detect bit(2)
ACKE
0: ACK error not detected
1: ACK error detected
CRC error detect bit(2)
CRCE
0: CRC error not detected
1: CRC error detected
TRE
Transmit error detect bit(2)
RW
0: Error not detected while receiving
1: Error detected while receiving
0: Error not detected while receiving
1: Error detected while receiving
b7 b6 b5 b4
b1
b2
b3
b0