04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 14 CAN CONTROLLER<br />

Figure 14-65. Message Buffer Initialization<br />

No<br />

START<br />

RDY = 1?<br />

Yes<br />

Clear RDY bit<br />

RDY = 0?<br />

Yes<br />

Set<br />

C0MCONFm register<br />

Set<br />

C0MIDHm register,<br />

C0MIDLm register<br />

Transmit message buffer?<br />

Yes<br />

Set<br />

C0MDLCm register<br />

Clear<br />

C0MDBm register<br />

Set<br />

C0MCTRLm register<br />

Set RDY bit<br />

END<br />

Cautions 1. Before a message buffer is initialized, the RDY bit must be cleared.<br />

2. Make the following settings for message buffers not used by the application.<br />

- Clear the RDY, TRQ, and DN bits of the C0MCTRLm register to 0.<br />

- Clear the MA0 bit of the C0MCONFm register to 0.<br />

R01UH0317EJ0004 Rev. 0.04 921<br />

Feb. 22, 2013<br />

No<br />

No

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!