![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_742.png)
13
CAN MODULE
13-132
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
13.7 Transmitting Remote Frames
Figure 13.7.2 Operation of the CAN Message Slot Control Register during Remote Frame Transmission
13.7.3 Reading Out Received Data Frames when Set for Remote Frame Transmission
The following shows the procedure for reading out the data frames that have been received in the slot when it
is set for remote frame transmission.
(1) Clearing TRFIN (Transmit/Receive Finished) bit
Write H’AE or H’00 to the CAN Message Slot Control Register (C0MSLnCNT, C1MSLnCNT) to clear the
TRFIN bit to "0." After this write, the slot operates as follows:
Values Written to
Slot Operation after Write
C0MSLnCNT, C1MSLnCNT
H’AE
Operates as a data frame receive slot. Whether overwritten can be verified by ML bit.
H’00
The slot stops transmit/receive operation.
Notes: If message-lost check by the ML bit is needed, write H’AE to clear the TRFIN bit.
If the TRFIN bit was cleared by writing H’AE or H’00, it is possible that new data will be stored in the slot while still
reading out a message from it.
The received data frame cannot be read out by writing H’A0 to the register. If the TRFIN bit is cleared by writing
H’A0, the slot performs remote frame transmit operation.
B'0000 0000
Starting storing the
received data
Lost
in
CAN
bus
arbitr
ation
or
a CAN
bus
error
occurr
ed
Clear
the
transm
it
reque
st
B'0000 1010
B'1010 0011
Start storing the received data
Clear the transmit
request
B'0000 0011
B'0000 0001
Finished sending
a remote frame
CPU read and TRFIN bit clear
B'1010 0101
B'1010 1000
B'1010 1010
Finished
storing
the
received
data
Clear
the
receive
request
Store the received data
Clear the receive request
B'1010 0001
B'1010 0111
B'0000 0111
B'0000 0101
Finished storing
the received data
Finished sending
a remote frame
B'1010 0000
Wait for
received data
B'1010 1011
B'0000 1011
Clear the transmit
request
B'0000 0001
Finished storing
the received data
B'0000 1000
CAN bus error
occurred
Finished storing
the received data
Start storing the received data
(message lost occurs)
Start storing the received data
(message lost occurs)
Wait for
received data
Finished storing the
received data
Store the received data
Clear the receive request
Finished
st
oring
the
received
da
ta C
lear
the
receive
req
uest
Finished
storing the
received data
Write H'A0
Transmission aborted
123456
b7 (b15)
(b8)
b0
RM
RR
TR
RL
RA
ML
TRSTAT TRFIN
00000000
CAN message slot control register bit allocation
Finished storing
the received data
Recieve the
transmit request