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

OPMODE[2:0] = 00H<br />

and CAN bus is busy.<br />

OPMODE[2:0] = 00H<br />

and CAN bus is busy.<br />

[Normal operation<br />

mode]<br />

OPMODE[2:0]=01H<br />

[Normal operation<br />

mode with ABT]<br />

OPMODE[2:0]=02H<br />

Figure 14-54. Transition to Operation Modes<br />

OPMODE[2:0] = 00H<br />

and interframe space<br />

OPMODE[2:0] = 02H<br />

OPMODE[2:0] = 00H<br />

and interframe space<br />

OPMODE[2:0] = 01H<br />

[Receive-only mode]<br />

OPMODE[2:0]=03H<br />

OPMODE[2:0] = 03H<br />

INIT mode<br />

OPMODE[2:0] = 00H<br />

GOM = 1<br />

All CAN modules are<br />

in INIT mode and GOM = 0<br />

EFSD = 1<br />

and GOM = 0<br />

RESET<br />

CAN module<br />

channel invalid<br />

RESET released<br />

OPMODE[2:0] = 00H<br />

and interframe space<br />

OPMODE[2:0] = 00H<br />

and CAN bus is busy.<br />

OPMODE[2:0] = 04H<br />

[Single-shot mode]<br />

OPMODE[2:0]=04H<br />

OPMODE[2:0] = 00H<br />

and interframe space<br />

OPMODE[2:0] = 05H<br />

OPMODE[2:0] = 00H<br />

and interframe space<br />

OPMODE[2:0] = 00H<br />

and CAN bus is busy.<br />

[Self-test mode]<br />

OPMODE[2:0]=05H<br />

OPMODE[2:0] = 00H<br />

and CAN bus is busy.<br />

The transition from the initialization mode to an operation mode is controlled by the bit string OPMODE [2:0] in the<br />

C0CTRL register.<br />

Changing from one operation mode into another requires shifting to the initialization mode in between. Do not change<br />

one operation mode to another directly; otherwise the operation will not be guaranteed.<br />

Requests for transition from the operation mode to the initialization mode are held pending when the CAN bus is not in<br />

the interframe space (i.e., frame reception or transmission is in progress), and the CAN module enters the initialization<br />

mode at the first bit in the interframe space (the value of OPMODE [2:0] are changed to 00H). After issuing a request to<br />

change the mode to the initialization mode, read the OPMODE [2:0] bits until their value becomes 000B to confirm that the<br />

module has entered the initialization mode (refer to Figure 14-64).<br />

14.8.5 Resetting error counter C0ERC of CAN module<br />

If it is necessary to reset the CAN module error counter C0ERC and the CAN module information register C0INFO<br />

when re-initialization or forced recovery from the bus-off state is made, set the CCERC bit of the C0CTRL register to 1 in<br />

the initialization mode. When this bit is set to 1, the CAN module error counter C0ERC and the CAN module information<br />

register C0INFO are cleared to their default values.<br />

R01UH0317EJ0004 Rev. 0.04 884<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!