Download Print this page

Renesas M16C/50 Series User Manual page 629

Advertisement

M16C/5L Group, M16C/56 Group
23.1.23 CAN0 Error Code Store Register (C0ECSR)
CAN0 Error Code Store Register
b7 b6 b5 b4
b3
b2
b1
Notes:
1. Writing 1 has no effect to these bit values.
2. When writing 0 to bits SEF, FEF, AEF, CEF, BE1F, BE0F, and ADEF by a program, use the MOV
instruction to ensure that only the specified bit is set to 0 and the other bits are set to 1.
3. Write to the EDPM bit in CAN reset mode or CAN halt mode.
4. If more than one error condition is detected simultaneously, all related bits are set to 1.
Figure 23.28 C0ECSR Register
The C0ECSR register can be used to monitor whether an error has occurred on the CAN bus. Refer to
the CAN Specifications (ISO11898-1) to check the generation conditions of each error.
To set each bit except the EDPM bit to 0, write 0 by a program. If the timing at which each bit is set to 1
and the timing at which is written by a program are the same, the relevant bit is set to 1.
23.1.23.1 SEF Bit
The SEF bit is set to 1 when a stuff error is detected.
23.1.23.2 FEF Bit
The FEF bit is set to 1 when a form error is detected.
23.1.23.3 AEF Bit
The AEF bit is set to 1 when an ACK error is detected.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
b0
Symbol
C0ECSR
Bit Symbol
SEF
Stuff Error Flag
FEF
Form Error Flag
AEF
ACK Error Flag
CEF
CRC Error Flag
Bit Error (recessive)
BE1F
(1, 2)
Flag
Bit Error (dominant)
BE0F
(1, 2)
Flag
ADEF
ACK Delimiter Error Bit
Error Display Mode
EDPM
Select Bit
Address
D7D0h
Bit Name
0: No stuff error detected
(1, 2)
1: Stuff error detected
0: No form error detected
(1, 2)
1: Form error detected
0: No ACK error detected
(1, 2)
1: ACK error detected
0: No CRC error detected
(1, 2)
1: CRC error detected
0: No bit error detected
1: Bit error (recessive) detected
0: No bit error detected
1: Bit error (dominant) detected
0: No ACK delimiter error detected
(1, 2)
1: ACK delimiter error detected
0: Output of first detected error code
(3, 4)
1: Output of accumulated error code
23. CAN Module
Reset Value
00h
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Page 592 of 803

Advertisement

loading