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

(2) Status in CAN sleep mode<br />

The CAN module is in one of the following states after it enters the CAN sleep mode.<br />

- The internal operating clock is stopped and the power consumption is minimized.<br />

- The function to detect the falling edge of the CAN reception pin (CRxD) remains in effect to wake up the CAN<br />

module from the CAN bus.<br />

- To wake up the CAN module from the CPU, data can be written to PSMODE [1:0] of the CAN module control<br />

register (C0CTRL), but nothing can be written to other CAN module registers or bits.<br />

- The CAN module registers can be read, except for C0LIPT, C0RGPT, C0LOPT, and C0TGPT.<br />

- The CAN message buffer registers cannot be written or read.<br />

- MBON bit of the CAN0 Global Control register (C0GMCTRL) is cleared.<br />

- A request for transition to the initialization mode is not acknowledged and is ignored.<br />

(3) Releasing CAN sleep mode<br />

The CAN sleep mode is released by the following events.<br />

- When the CPU writes 00B to the PSMODE [1:0] bits of the C0CTRL register<br />

- A falling edge at the CAN reception pin (CRxD) (i.e. the CAN bus level shifts from recessive to dominant)<br />

Cautions 1. Even if the falling edge belongs to the SOF of a receive message, this message will not be<br />

received and stored. If the CPU has turned off the clock to the CAN while the CAN was in<br />

sleep mode, even subsequently the CAN sleep mode will not be released and PSMODE<br />

[1:0] will continue to be 01B unless the clock to the CAN is supplied again. In addition to<br />

this, the receive message will not be received after that.<br />

2. If the falling edge on the CAN reception pin (CRxD) is detected in the state that the CAN<br />

clock is supplied, it is necessary to clear the PSMODE0 bit by software (for details, refer to<br />

the processing in Figure 14-81).<br />

After releasing the sleep mode, the CAN module returns to the operation mode from which the CAN sleep mode<br />

was requested and the PSMODE [1:0] bits of the C0CTRL register are reset to 00B. If the CAN sleep mode is<br />

released by a change in the CAN bus state, the CINTS5 bit of the C0INTS register is set to 1, regardless of the<br />

CIE bit of the C0IE register. After the CAN module is released from the CAN sleep mode, it participates in the<br />

CAN bus again by automatically detecting 11 consecutive recessive-level bits on the CAN bus. The user<br />

application has to wait until MBON = 1, before accessing message buffers again.<br />

When a request for transition to the initialization mode is made while the CAN module is in the CAN sleep mode,<br />

that request is ignored; the CPU has to be released from sleep mode by software first before entering the<br />

initialization mode.<br />

Caution Be aware that the release of CAN sleep mode by CAN bus event, and thus the wake up<br />

interrupt may happen at any time, even right after requesting sleep mode, if a CAN bus event<br />

occurs.<br />

Remark m = 0 to 15<br />

R01UH0317EJ0004 Rev. 0.04 901<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!