
23. 32-Slot CAN Module
23.1.17 CAN2 Mode Register (C2MDR Register)
Figure 23.20
C2MDR Register
23.1.17.1 CMOD Bit
The CMOD bit selects a CAN operating mode.
Normal operating mode: Normal transmit and receive operations are enabled.
Bus monitoring mode(1): Only receive operation is enabled. Output signal from the CAN2OUT pin is fixed
to high level (“H”) in bus monitoring mode. The CAN module transmits neither ACK nor error frame.
Self-test mode: The CAN module connects the CAN2OUT pin to the CAN2IN pin internally. The CAN
module can communicate without additional device when using self-test mode and loop back mode. Output
signal from the CAN2OUT pin is fixed to “H” in self-test mode while transmitting.
Figure 23.21 shows an
image diagram in self-test mode.
NOTE:
1. Do not generate a transmit request in bus monitoring mode.
The CAN module in bus monitoring mode considers dominant “L” is received regardless of whether the
actual ACK bit is dominant “L” or recessive “H”. Therefore, when a transmit operation is completed at
EOF, the CAN module determines a receive operation is successfully completed even if the ACK bit is
recessive “H”.
b7 b6 b5 b4
b1
b2
b3
Symbol
C2MDR
Address
0519h
After Reset(2)
XXXX XX00b
b0
Function
Bit Name
RW
(b7-b2)
CAN2 Mode Register(1)
RW
NOTES:
1. Set the C2MDR register while the STATE_RESET bit in the C2STR register is 1 (CAN module is in reset).
2. 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.
CAN operating mode
select bit
CMOD
b1 b0
0 0: Normal operating mode
0 1: Bus monitoring mode
1 0: Self-test mode
1 1: Do not set to this value
Bit Symbol
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined