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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

(4) Error state<br />

(a) Types of error states<br />

The following three types of error states are defined by the CAN specification.<br />

- Error active<br />

- Error passive<br />

- Bus-off<br />

These types of error states are classified by the values of the TEC7 to TEC0 bits (transmission error counter<br />

bits) and the REC6 to REC0 bits (reception error counter bits) of the CAN error counter register (C0ERC,<br />

C1ERC) as shown in Table 14-13.<br />

The present error state is indicated by the CAN module information register (C0INFO, C1INFO).<br />

When each error counter value becomes equal to or greater than the error warning level (96), the TECS0 or<br />

RECS0 bit of the C0INFO, C1INFO register is set to 1. In this case, the bus state must be tested because it<br />

is considered that the bus has a serious fault. An error counter value of 128 or more indicates an error<br />

passive state and the TECS1 or RECS1 bit of the C0INFO, C1INFO register is set to 1.<br />

- If the value of the transmission error counter is greater than or equal to 256 (actually, the transmission error<br />

counter does not indicate a value greater than or equal to 256), the bus-off state is reached and the BOFF<br />

bit of the C0INFO, C1INFO register is set to 1.<br />

- If only one node is active on the bus at startup (i.e., a particular case such as when the bus is connected<br />

only to the local station), ACK is not returned even if data is transmitted. Consequently, re-transmission of<br />

the error frame and data is repeated. In the error passive state, however, the transmission error counter is<br />

not incremented and the bus-off state is not reached.<br />

R01UH0317EJ0004 Rev. 0.04 799<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!