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

BOFF bit<br />

in C0INFO, C1INFO<br />

register<br />

OPMODE[2:0]<br />

in C0CTRL, C1CTRL<br />

register<br />

(user writings)<br />

OPMODE[2:0]<br />

in C0CTRL, C1CTRL<br />

register<br />

(user readings)<br />

TEC[7:0]<br />

in C0ERC, C1ERC<br />

register<br />

REPS, REC[6:0]<br />

in C0ERC, C1ERC<br />

register<br />

Figure 14-17. Recovery Operation from Bus-off State through Normal Recovery Sequence<br />

»error-passive«<br />

TEC > FFH<br />

80H ≤ TEC[7:0] ≤ FFH<br />

≠ 00H 00H<br />

≠ 00H<br />

≠ 00H<br />

»bus-off« »bus-off-recovery-sequence« »error-active«<br />

<br />

FFH < TEC [7:0]<br />

80H ≤ REPS, REC[6:0] ≤ FFH<br />

00H ≠ 00H<br />

R01UH0317EJ0004 Rev. 0.04 803<br />

Feb. 22, 2013<br />

00H<br />

Undefined<br />

<br />

00H ≤ TEC[7:0] < 80H<br />

00H ≤ REPS, REC[6:0] < 80H<br />

(b) Forced recovery operation that skips bus-off recovery sequence<br />

The CAN module can be forcibly released from the bus-off state, regardless of the bus state, by skipping the<br />

bus-off recovery sequence. Here is the procedure.<br />

First, the CAN module requests to enter the initialization mode. For the operation and points to be noted at<br />

this time, refer to (a) Recovery operation from bus-off state through normal recovery sequence.<br />

Next, the module requests to enter an operation mode. At the same time, the CCERC bit of the C0CTRL,<br />

C1CTRL register must be set to 1.<br />

As a result, the bus-off recovery sequence defined by the CAN protocol ISO 11898 is skipped, and the<br />

module immediately enters the operation mode. In this case, the module is connected to the CAN bus after it<br />

has monitored 11 consecutive recessive-level bits. For details, refer to the processing in Figure 14-82.<br />

Caution This function is not defined by the CAN protocol ISO 11898. When using this function,<br />

thoroughly evaluate its effect on the network system.<br />

(6) Initializing CAN module error counter register (C0ERC, C1ERC) in initialization mode<br />

If it is necessary to initialize the CAN module error counter register (C0ERC, C1ERC) and CAN module<br />

information register (C0INFO, C1INFO) for debugging or evaluating a program, they can be initialized to the<br />

default value by setting the CCERC bit of the C0CTRL, C1CTRL register in the initialization mode. When<br />

initialization has been completed, the CCERC bit is automatically cleared to 0.<br />

Cautions 1. This function is enabled only in the initialization mode. Even if the CCERC bit is set to 1 in<br />

a CAN operation mode, the C0ERC, C1ERC and C0INFO, C1INFO registers are not<br />

initialized.<br />

2. The CCERC bit can be set at the same time as the request to enter a CAN operation mode.

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

Saved successfully!

Ooh no, something went wrong!