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

(b) Error counter<br />

The error counter counts up when an error has occurred, and counts down upon successful transmission and<br />

reception. The error counter is updated immediately after error detection.<br />

Table 14-14. Error Counter<br />

State Transmission Error Counter<br />

(TEC7 to TEC0)<br />

Receiving node detects an error (except bit error in the active error flag<br />

or overload flag).<br />

Receiving node detects dominant level following error flag of error<br />

frame.<br />

Transmitting node transmits an error flag.<br />

[As exceptions, the error counter does not change in the following<br />

cases.]<br />

ACK error is detected in error passive state and dominant level is<br />

not detected while the passive error flag is being output.<br />

A stuff error is detected in an arbitration field that transmitted a<br />

recessive level as a stuff bit, but a dominant level is detected.<br />

Bit error detection while active error flag or overload flag is being output<br />

(error-active transmitting node)<br />

Bit error detection while active error flag or overload flag is being output<br />

(error-active receiving node)<br />

When the node detects 14 consecutive dominant-level bits from the<br />

beginning of the active error flag or overload flag, and then subsequently<br />

detects 8 consecutive dominant-level bits. When the node detects 8<br />

consecutive dominant levels after a passive error flag<br />

When the transmitting node has completed transmission without error<br />

(±0 if error counter = 0)<br />

Reception Error Counter<br />

(REC6 to REC0)<br />

No change +1 (when REPS bit = 0)<br />

No change +8 (when REPS bit = 0)<br />

+8 No change<br />

+8 No change<br />

No change +8 (when REPS bit = 0)<br />

+8 (during transmission) +8 (during reception,<br />

when REPS bit = 0)<br />

–1 No change<br />

When the receiving node has completed reception without error No change - –1 (1 REC6 to REC0 <br />

127, when REPS bit = 0)<br />

- ±0 (REC6 to REC0 = 0,<br />

when REPS bit = 0)<br />

- Value of 119 to 127 is<br />

set (when REPS bit = 1)<br />

(c) Occurrence of bit error in intermission<br />

An overload frame is generated.<br />

Caution If an error occurs, the error flag output (active or passive) is controlled according to the<br />

contents of the transmission error counter and reception error counter before the error<br />

occurred. The value of the error counter is incremented after the error flag has been output.<br />

R01UH0317EJ0004 Rev. 0.04 801<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!