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

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 18
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
Figure 18-42
Caution
Note
644
Transmit completion
Transmit completion
Transmit completion
interrupt processing
interrupt processing
interrupt processing
Read CnLOPT register
Read CnLOPT register
Data frame
Data frame
Data frame or remote frame?
Data frame or remote frame?
Set RDY bit
Set RDY bit
Set TRQ bit
Set TRQ bit
Transmission via interrupt (using CnLOPT 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.
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 the
processing have to be discarded and processed again, after MBON is set
again.
It is recommended to cancel any sleep mode requests, before processing TX
interrupts.
User's Manual U18743EE1V2UM00
START
START
Clear RDY bit
Clear RDY bit
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
END
END
CAN Controller (CAN)

Advertisement

Table of Contents
loading

Table of Contents