![](http://datasheet.mmic.net.cn/30000/M30855FHTGP_datasheet_2359399/M30855FHTGP_351.png)
Page 328
4
9
4
f
o
5
0
2
,
1
0
.
l
u
J
3
0
.
1
.
v
e
R
3
0
1
0
-
7
3
0
B
9
0
J
E
R
23. CAN Module
)
T
5
8
/
C
2
3
M
,
5
8
/
C
2
3
M
(
p
u
o
r
G
5
8
/
C
2
3
M
23.1.4.3 RECSUCC Bit
The RECSUCC bit is set to "1" when the CAN module has received data as expected. (Whether
received message has been stored in the message slot or not is irrelevant.) If the received message
is transmitted in loopback mode, the TRMSUCC bit is set to "1" and the RECSUCC bit is set to "0".
The RECSUCC bit is set to "0" when the CAN module has transmitted data as expected.
23.1.4.4 TRMSTATE Bit
The TRMSTATE bit is set to "1" when the CAN module is performing as a transmit node.
The TRMSTATE bit is set to "0" when the CAN module is in a bus-idle state or starts performing as a
receive node.
23.1.4.5 RECSTATE Bit
The RECSTATE bit is set to "1" when the CAN module is performing as a receive node.
The RECSTATE bit is set to "0" when the CAN module is in a bus-idle state or starts performing as a
transmit node.
23.1.4.6 STATE_RESET Bit
After both RESET1 and RESET0 bits are set to "1" (CAN module reset), the STATE_RESET bit is set
to "1" as soon as the CAN module is initialized.
The STATE_RESET bit is set to "0" when the RESET1 and RESET0 bits are set to "0".
23.1.4.7 STATE_LOOPBACK Bit
The STATE_ LOOPBACK bit is set to "1" when the CAN module is in loopback mode.
The STATE_LOOPBACK bit is set to "1" when the LOOPBACK bit in the CiCTLR0 register is set to "1"
(loop back function enabled).
The STATE_LOOPBACK bit is set to "0" when the LOOPBACK bit is set to "0" (loop back function
disabled).
23.1.4.8 STATE_BASICCAN Bit
The STATE_BASICCAN bit is set to "1" when the CAN module is in BasicCAN mode.
Refer to 23.1.1.3 BASICCAN bit for BasicCAN mode.
The STATE_BASICCAN bit is set to "0" when the BASICCAN bit is set to "0" (BasicCAN mode
function disabled).
The STATE_BASICCAN bit is set to "1" when the BASICCAN bit is set to "1" (BasicCAN mode
function enabled), the REMACTIVE bits in the CiMCTL14 and CiMCTL15 registers in the message
slots 14 and 15 are set to "0" (data frame received).
23.1.4.9 STATE_BUSERROR Bit
The STATE_BUSERROR bit is set to "1" when an CAN communication error is detected.
The STATE_BUSERROR bit is set to "0" when the CAN module has transmitted or received data as
expected. Whether a received message has been stored into the message slot or not is irrelevant.
NOTES:
1. When the STATE_BUSERROR bit is set to "1", the STATE_BUSERROR bit remains un-
changed even if both RESET1 and RESET0 bits are set to "1" (CAN module reset).