13
13-90
32180 Group User’s Manual (Rev.1.0)
CAN MODULE
Reading out received data
Clear the TRFIN bit to 0
Read out from the message slot
Finished reading out
received data
Read the CAN Message Slot
Control Register
TRFIN bit = 0
YES
NO
Write H'AE or H'00
Figure 13.7.3 Procedure for Reading Out Received Data when Set for Remote Frame Transmission
13.7 Transmitting Remote Frames
(2) Reading out from the message slot
Read out a message from the message slot.
(3) Checking the TRFIN (Transmit/Receive Finished) bit
Read the CAN Message Slot Control Register to check the TRFIN (Transmit/Receive Finished) bit.
1) If TRFIN (Transmit/Receive Finished) bit = "1"
It means that new data was stored in the slot while still reading out a message from it in (2) above. In this
case, the data read out in (2) may contain an undefined value. Therefore, reexecute the above
procedure beginning with clearing of the TRFIN (Transmit/Receive Finished) bit in (1).
2) If TRFIN (Transmit/Receive Finished) bit = "0"
It means that the CAN module finished reading out from the slot normally.