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 />

14.16 Operation of CAN Controller<br />

The processing procedure for showing in this chapter is recommended processing procedure to operate CAN controller.<br />

Develop the program referring to recommended processing procedure in this chapter.<br />

Remark m = 0 to 15<br />

Figure 14-63. Initialization<br />

START<br />

Set<br />

C0GMCS register<br />

Set<br />

C0GMCTRL<br />

register (Set GOM = 1)<br />

Set<br />

C0BRP register,<br />

C0BTR register<br />

Set<br />

C0IE register<br />

Set<br />

C0MASK register<br />

Initialize<br />

message buffers<br />

Set<br />

C0CTRL register (set OPMODE)<br />

END<br />

Remark OPMODE: Normal operation mode, normal operation mode with ABT, receive-only mode, singleshot<br />

mode, self-test mode<br />

R01UH0317EJ0004 Rev. 0.04 919<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!