
Page 355
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.20.3 MSGLOST Bit
The MSGLOST bit is valid only when the message slot is set for reception. The MSGLOST bit is set to
"1" (overrun error occurred) when the message slot j is overwritten by a new received message while
the NEWDATA bit set to "1" (already received).
The MSGLOST bit is not automatically set to "0". Set to "0" (no overrun error occurred) by program.
23.1.20.4 REMACTIVE Bit
The CiMCTL0 to CiMCTL15 registers all have the same function when the STATE_BASICCAN bit is
set to "0" (other than BasicCAN mode).
The REMACTIVE bit is set to "1" (remote frame) when the message slot j is set to transmit or receive
the remote frame. The REMACTIVE bit is set to "0" (data frame) after the remote frame has been
transmitted or received.
The functions of the CiMCTL14 and CiMCTL15 registers change when the STATE_BASICCAN bit is
set to "1" (BasicCAN mode). When the REMACTIVE bit is set to "0", this indicates that a message
stored into the message slot is the data frame. When the REMACTIVE bit is set to "1", this indicates a
message stored into the message slot is the remote frame.
23.1.20.5 RSPLOCK Bit
The RSPLOCK bit is valid only when remote frame reception shown in Table 23.4 is selected. The
RSPLOCK bit determines whether the received remote frame is processed or not.
When the RSPLOCK bit is set to "0" (automatic answering of the remote frame enabled), the slot
automatically changes to a transmit slot after the remote frame is received and the message stored
into the message slot is automatically transmitted as the data frame.
When the RSPLOCK bit is set to "1" (automatic answering of the remote frame disabled), message is
not automatically transmitted upon receiving the remote frame.
Set the RSPLOCK bit to "0" to select any transmit/receive mode other than the remote frame reception.
23.1.20.6 REMOTE Bit
The REMOTE bit selects transmit/receive mode shown in Table 23.4. Set the REMOTE bit to "0" to
transmit or receive data frame. Set to "1" to transmit or receive remote frame.
The followings occur during remote frame transmission or reception.
Transmitting the remote frame
A message stored into the message slot j (j=0 to 15) is transmitted as the remote frame. After
transmission, the slot automatically becomes ready to receive data frame.
If the data frame is received before the remote frame is transmitted, the data frame is stored into
the message slot j. The remote frame is not transmitted.
Receiving the remote frame
The message slot receives the remote frame. The RSPLOCK bit determines whether or not to
process the received remote frame.