
22. 16-Slot CAN Module
22.1.4
CANi Status Register (CiSTR Register) (i = 0, 1)
Figure 22.6
C0STR and C1STR Registers
Symbol
Address
After Reset(1)
RW
RO
CANi Status Register (i = 0, 1)
C0STR
C1STR
0203h - 0202h
0283h - 0282h
X000 0X01 0000 0000b
Function
Bit Symbol
Bit Name
RO
Active slot determinate bits
b3 b2 b1 b0
0 0 0 0: Message slot 0
0 0 0 1: Message slot 1
0 0 1 0: Message slot 2
0 0 1 1: Message slot 3
.
1 1 0 0: Message slot 12
1 1 0 1: Message slot 13
1 1 1 0: Message slot 14
1 1 1 1: Message slot 15
RO
Transmit/Receive complete
state flag
RO
b5 b4
0 0: Hasn't yet transmitted nor received
0 1: Transmit operation completed
1 0: Receive operation completed
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 CiSLPR register to 1 (sleep mode exited) after reset and supplying the clock
to the CAN module.
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