752
Chapter 19
CAN Controller (CAN)
Preliminary User’s Manual U17566EE1V2UM00
Figure 19-41
Transmission via interrupt (using CnTGPT register)
Caution
The TRQ bit should be set after the RDY bit is set.
The RDY bit and TRQ bit should not be set at the same time.
START
END
Clear RDY bit.
Set RDY
bit
= 0
Clear RDY
bit
= 1
TOVF
bit
= 1?
Clear TOVF bit.
Clear TOVF
bit
= 1
THPM
bit
= 1?
Yes
No
Yes
No
Transmit completion
interrupt processing
Set RDY bit.
Set RDY
bit
= 1
Clear RDY
bit
= 0
Set TRQ bit.
Set RDY
bit
= 1
Clear RDY
bit
= 0
Read CnTGPT register.
RDY
bit
= 0?
Yes
No
Data frame
or
remote frame?
Remote frame
Data frame
Set RTR bit of CnMDLCm
register and CnMCONFm
register.
Set CnMIDLm and
CnMIDHm registers.
Clear RTR bit of
CnMDATAxm register,
CnMDLCm register, and
CnMCONFm register.
Set CnMIDLm and
CnMIDHm registers.
electronic components distributor