
Page 332
8
4
f
o
6
0
2
,
1
3
.
n
a
J
1
3
.
1
.
v
e
R
1
3
1
0
-
4
3
0
B
9
0
J
E
R
22. CAN Module
)
T
3
8
/
C
2
3
M
,
3
8
/
C
2
3
M
(
p
u
o
r
G
3
8
/
C
2
3
M
22.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.
22.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.
22.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.
22.1.4.6 STATE_RESET Bit
After both RESET0 and RESET1 bits are set to "1" (CAN module reset), the STATE_RESET bit is
set to "1" as soon as the CAN module is reset.
The STATE_RESET bit is set to "0" when the RESET0 and RESET1 bits are set to "0".
22.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 C0CTLR0 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).
22.1.4.8 STATE_BASICCAN Bit
The STATE_BASICCAN bit is set to "1" when the CAN module is in BasicCAN mode.
Refer to 22.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 C0MCTL14 and C0MCTL15 registers in the message
slot 14 and 15 are set to "0" (data frame received) and the RECREQ bit is set to "1" (request to
receive the frame).
22.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 RESET 0 and RESET1 bits are set to "1" (CAN module reset).
22.1.4.10 STATE_ERRPAS Bit
The STATE_ERRPAS bit is set to "1" when the value of the C0TEC or C0REC register exceeds 127
and places the CAN module in an error-passive state.
The STATE_ERRPAS bit is set to "0" when the CAN module in an error passive state is placed in
another error state.
The STATE_ERRPAS bit is set to "0" when both RESET0 and RESET1 bits are set to "1" (CAN
module is reset).
22.1.4.11 STATE_BUSOFF Bit
The STATE_BUSOFF bit is set to "1" when the value of the C0TEC register exceeds 255 and the
CAN module in a bus-off state.
The STATE_BUSOFF bit is set to "0" when the CAN module in a bus-off state is placed in an error-
active state.
The STATE_BUSOFF bit is set to "0" when both RESET0 and RESET1 bits are set to "1" (CAN
module reset).