![Mitsubishi 32172 User Manual Download Page 629](http://html1.mh-extra.com/html/mitsubishi/32172/32172_user-manual_1808662629.webp)
13
13-93
Rev.1.0
13.6.3 Reading Out a Received Data Frame
The following shows the procedure for reading a received data frame from the slot.
(1) Clearing the TRFIN (transmit/receive finished) bit
Clear the CAN Message Slot Control Register (CMSLnCNT)'s TRFIN (transmit/receive finished)
bit to 0 by writing H'4E, H'40, or H'00 to the register. The table below describes the slot operation
after this write.
Value written to CMSLnCNT
Slot operation after writing
H'4E
Operates as a data frame receive slot. Whether the slot has been
overwritten can be verified by inspecting the ML bit.
H'40
Operates as a data frame receive slot. Whether the slot has been
overwritten can be verified by inspecting the ML bit.
H'00
Stops transmit/receive operation.
Note 1: If the slot needs to be checked for message lost by inspecting the ML bit, clear the TRFIN
bit by writing H'4E to the register.
Note 2: If the TRFIN bit is cleared by writing H'4E, H'40, or H'00 to the register, it is possible that
new data will be stored in the slot while reading the received data from it.
(2) Reading out from the message slot
Read the received data 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.
➀
When the TRFIN (transmit/receive finished) bit = 1
It means that new data has been stored in the slot while reading out from it in (2) above. In
this case, because the data read out in (2) contains an indeterminate value, redo from step
(1), clearing the TRFIN (transmit/receive finished) bit.
➁
When the TRFIN (transmit/receive finished) bit = 0
It means that the received data has been read out normally.
CAN MODULES
13.6 Receiving Data Frames
Summary of Contents for 32172
Page 20: ... This is a blank page 16 ...
Page 21: ...1 1 Overview 1 2 Block Diagram 1 3 Pin Functions 1 4 Pin Layout CHAPTER 1 CHAPTER 1 OVERVIEW ...
Page 44: ...1 1 24 Rev 1 0 This is a blank page Overview 1 4 Pin Layout ...
Page 58: ...2 2 14 Rev 1 0 This is a blank page CPU 2 6 Data Formats ...
Page 122: ...4 4 26 Rev 1 0 This is a blank page EIT 4 13 Precautions on EIT ...
Page 200: ...7 7 6 Rev 1 0 This is a blank page RESET 7 4 Precautions to Be Taken Immediately after Reset ...
Page 298: ...9 9 58 Rev 1 0 This is a blank page DMAC 9 4 Precautions on Using DMAC ...
Page 776: ...19 19 10 Rev 1 0 RAM BACKUP MODE 19 4 Exiting RAM Backup Mode Wakeup This is a blank page ...
Page 782: ...20 20 6 Rev 1 0 OSCILLATION CIRCUIT 20 2 Clock Generator Circuit This is a blank page ...
Page 856: ...23 23 26 Rev 1 0 This is a blank page ELECTRICAL CHARACTERISTICS 23 6 AC Characteristics ...
Page 857: ...24 1 A D Conversion Characteristics CHAPTER 24 CHAPTER 24 STANDARD CHARACTERISTICS ...
Page 859: ...Appendix 1 1 Dimensional Outline Drawing APPENDIX 1 APPENDIX 1 MECHANICAL SPECIFICATIONS ...
Page 865: ...Appendix 3 1 Precautions about Noise APPENDIX 3 APPENDIX 3 PRECAUTIONS ABOUT NOISE ...