R01UH0823EJ0100 Rev.1.00
Page 1197 of 1823
Jul 31, 2019
RX23W Group
36. CAN Module (RSCAN)
36.2.4
Control Register H (CTRH)
TAIE Bit (Transmit Abort Interrupt Enable)
When transmit abort of the transmit buffer is completed with the TAIE bit set to 1, an interrupt request is generated.
Modify this bit only in channel reset mode.
BOM[1:0] Bits (Bus Off Recovery Mode Select)
These bits are used to select a bus off recovery mode of the CAN module.
When the BOM[1:0] bits are set to 00b, return to the error active state from the bus off state is compliant with the ISO
11898-1 standard. That is, the CAN module reenters the CAN communication (error active state) after 11 consecutive
recessive bits are detected 128 times. A bus off recovery interrupt request is generated at the time of return from the bus
off state. Even if the CTRL.CHMDC[1:0] bits are set to 10b (channel halt mode) before recessive bits are detected 128
times, the CAN module does not transition to channel halt mode until recessive bits are detected 128 times.
When the CAN module reaches the bus off state while the BOM[1:0] bits are set to 01b, the CTRL.CHMDC[1:0] bits are
set to 10b and the CAN module transitions to channel halt mode. No bus off recovery interrupt request is generated at the
time of return from the bus off state and the STSH.TEC[7:0] and STSH.REC[7:0] flags are set to 00h.
When the CAN module reaches the bus off state when the BOM[1:0] bits are set to 10b, the CTRL.CHMDC[1:0] bits are
set to 10b and the CAN module transitions to channel halt mode after return from the bus off state (11 consecutive
recessive bits are detected 128 times). A bus off recovery interrupt request is generated at the time of return from the bus
off state and the STSH.TEC[7:0] and STSH.REC[7:0] flags are set to 00h.
When the BOM[1:0] bits are set to 11b and the CTRL.CHMDC[1:0] bits are set to 10b while the CAN module is in the
bus off state, the CAN module transitions to channel halt mode. No bus off recovery interrupt request is generated at the
time of return from the bus off state and the STSH.TEC[7:0] and STSH.REC[7:0] flags are set to 00h. However, if 11
consecutive recessive bits are detected 128 times and the CAN module has recovered to the error active state from the
Address(es): RSCAN0.CTRH 000A 8306h
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
—
—
CTMS[1:0]
CTME ERRD
BOM[1:0]
—
—
—
—
TAIE
Value after reset:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Transmit Abort Interrupt Enable
0: Transmit abort interrupt is disabled.
1: Transmit abort interrupt is enabled.
R/W
b4 to b1
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b6, b5
Bus Off Recovery Mode Select
b6 b5
0 0: ISO 11898-1 compliant
0 1: Transition to channel halt mode at bus-off entry
1 0: Transition to channel halt mode at bus-off end
1 1: Transition to channel halt mode in the bus off state by a
program request
R/W
b7
Error Display Mode Select
0: Only the first error is indicated after b14 to b8 in the ERFLL
register have all been cleared.
1: The error flags of all errors are indicated.
R/W
b8
Communication Test Mode
Enable
0: Communication test mode is disabled.
1: Communication test mode is enabled.
R/W
b10, b9
Communication Test Mode
Select
b10 b9
0 0: Standard test mode
0 1: Listen-only mode
1 0: Self-test mode 0 (external loopback mode)
1 1: Self-test mode 1 (internal loopback mode)
R/W
b15 to b11
—
Reserved
These bits are read as 0. The write value should be 0.
R/W