NEC V850ES/F 3-L Series User Manual page 645

32-bit single-chip microcontroller
Table of Contents

Advertisement

CAN Controller (CAN)
Figure 18-43
Caution
Note
Transmit completion
Transmit completion
Transmit completion
interrupt processing
interrupt processing
interrupt processing
Read CnTGPT register
Read CnTGPT register
No
TOVF = 1?
TOVF = 1?
Clear TOVF bit
Clear TOVF bit
Clear RDY bit
Clear RDY bit
Data frame
Data frame
Data frame or remote frame?
Data frame or remote frame?
Set CnMDATAxm register
Set CnMDATAxm register
Set CnMDLCm register
Set CnMDLCm register
Clear RTR bit of CnMCONFm
Clear RTR bit of CnMCONFm
register
register
Set CnMIDLm and CnMIDHm
Set CnMIDLm and CnMIDHm
registers
registers
Set RDY bit
Set RDY bit
Set TRQ bit
Set TRQ bit
Transmission via interrupt (using CnTGPT register)
1.
The TRQ bit should be set after the RDY bit is set.
2.
The RDY bit and TRQ bit should not be set at the same time.
1.
Also check the MBON flag at the beginning and at the end of the interrupt
routine, in order to check the access to the message buffers as well as TX
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
User's Manual U18743EE1V2UM00
START
START
Yes
No
No
RDY = 0?
RDY = 0?
Yes
Yes
Remote frame
Remote frame
Set CnMDLCm register
Set CnMDLCm register
Set RTR bit of CnMCONFm
Set RTR bit of CnMCONFm
register
register
Set CnMIDLm and CnMIDHm
Set CnMIDLm and CnMIDHm
registers
registers
No
No
THPM = 1?
THPM = 1?
Yes
Yes
END
END
Chapter 18
645

Advertisement

Table of Contents
loading

Table of Contents