
23. 32-Slot CAN Module
23.1.4
CAN2 Status Register (C2STR Register)
Figure 23.6
C2STR Register
Symbol
Address
After Reset(1)
RW
RO
CAN2 Status Register
C2STR
0503h - 0502h
X000 0X01 0000 0000b
Function
Bit Symbol
Bit Name
RO
Active slot determinate bits(2)
b3 b2 b1 b0
0 0 0 0: Message slot 0 or 16
0 0 0 1: Message slot 1 or 17
0 0 1 0: Message slot 2 or 18
0 0 1 1: Message slot 3 or 19
.
1 1 0 0: Message slot 12 or 28
1 1 0 1: Message slot 13 or 29
1 1 1 0: Message slot 14 or 30
1 1 1 1: Message slot 15 or 31
RO
Transmit/Receive complete
state flag
RO
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined
MBOX0
MBOX1
MBOX2
TRMSUCC
RECSUCC
MBOX3
(b10)
NOTE:
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. Bits MBOX3 to MBOX0 are 4 low-ordered bits of a message slot (an active slot) which a transmit operation or storing receive data
is completed. Use the EXMBOXi (i = 0 to 4) bit in the C2STR1 register to determine the active slot.
RO
TRMSTATE
RECSTATE
Transmit state flag
Receive state flag
0: Not receiving
1: While receiving
0: Not transmitting
1: While transmitting
RO
STATE_RESET
STATE_LOOPBACK Loop back state flag
CAN reset state flag
0: Not in Loop back mode
1: Loop back mode
0: CAN module is not in reset
1: CAN module is in reset
RO
BasicCAN state flag
CAN bus error state flag
Bus-off state flag
Error passive state flag
0: No error occurred
1: Error occurred
0: Not in bus-off state
1: Bus-off state
0: Not in error passive state
1: In Error passive state
0: Not in BasicCAN mode
1: BasicCAN mode
STATE_BASICCAN
STATE_BUSERROR
STATE_ERRPAS
STATE_BUSOFF
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined
(b15)
b7
b8
b15
b0
b5 b4
0 0: Hasn't yet transmitted nor received
0 1: Transmit operation completed
1 0: Receive operation completed