Figure 18-51: Reception Via Software Polling - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

Note: Check the MUC and DN bits using one read access.
Remarks: 1. Also check the MBON flag at the beginning and at the end of the polling routine, in order
to check the access to the message buffers as well as reception history list registers, in
case a pending sleep mode had been executed. If MBON is detected to be cleared at
any check, the actions and results of the processing have to be discarded and pro-
cessed again, after MBON is set again.
2. If ROVF was set once, the receive history list is inconsistent. Consider to scan all config-
ured receive buffers for receptions.
856
Chapter 18 AFCAN Controller

Figure 18-51: Reception via software polling

START
START
CINTS1 = 1?
CINTS1 = 1?
Yes
Yes
Clear CINTS1 bit
Clear CINTS1 bit
Read CnRGPT register
Read CnRGPT register
ROVF = 1?
ROVF = 1?
Clear ROVF bit
Clear ROVF bit
Yes
Yes
RHPM = 1?
RHPM = 1?
Clear DN bit
Clear DN bit
Read CnMDATAxm, CnMDLCm,
Read CnMDATAxm, CnMDLCm,
CnMIDLm, CnMIDHm registers
CnMIDLm, CnMIDHm registers
Correct data is read
Correct data is read
END
END
User's Manual U16580EE3V1UD00
No
No
No
No
Yes
Yes
No
No
DN = 0
DN = 0
DN = 0
No
No
AND
AND
AND
Note
Note
Note
MUC = 0
MUC = 0
MUC = 0
Yes
Yes
Illegal data is read
Illegal data is read

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents