747
CAN Controller (CAN)
Chapter 19
Preliminary User’s Manual U17566EE1V2UM00
Figure 19-36
Message buffer initialization
Caution
1.
Before a message buffer is initialized, the RDY bit must be cleared.
2.
Make the following settings for message buffers not used by the application.
•
Clear the CnMCTRLm.RDY, CnMCTRLm.TRQ, and CnMCTRLm.DN
bits to 0.
•
Clear the CnMCONFm.MA0 bit to 0.
START
Set
CnMCONFm register.
Set
CnMIDHm register,
CnMIDLm register.
Set
CnMDLCm register.
Clear
CnMDATAm register.
Set
CnMCTRLm register.
END
Transmit message
buffer?
Yes
No
Clear RDY bit.
Set RDY
bit
= 0
Clear RDY
bit
= 1
RDY
bit
= 1?
RDY
bit
= 0?
No
Yes
Yes
Set RDY bit.
Set RDY
bit
= 1
Clear RDY
bit
= 0
No
electronic components distributor