EasyManuals Logo

Renesas M32R/ECU Series User Manual

Renesas M32R/ECU Series
839 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #631 background imageLoading...
Page #631 background image
13
13-84
32180 Group Users Manual (Rev.1.0)
CAN MODULE
13.6 Receiving Data Frames
13.6.3 Reading Out Received Data Frames
The following shows the procedure for reading out received data frames from the slot.
(1) Clearing the TRFIN (Transmit/Receive Finished) bit
Write H4E, H40 or H00 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 CnMSLnCNT Slot Operation after Write
H’4E Operates as a data frame receive slot. Whether overwritten can be verified by ML bit.
H’40 Operates as a data frame receive slot. Whether overwritten cannot 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 H4E to clear the TRFIN bit.
If the TRFIN bit was cleared by writing H4E, H40 or H00, it is possible that new data will be stored in the slot while
still reading out a message from it.
(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.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas M32R/ECU Series and is the answer not in the manual?

Renesas M32R/ECU Series Specifications

General IconGeneral
BrandRenesas
ModelM32R/ECU Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals