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

14.11.2 CAN stop mode<br />

The CAN stop mode can be used to set the CAN controller to standby mode to reduce power consumption. The CAN<br />

module can enter the CAN stop mode only from the CAN sleep mode. Release of the CAN stop mode puts the CAN<br />

module in the CAN sleep mode.<br />

The CAN stop mode can only be released (entering CAN sleep mode) by writing 01B to the PSMODE [1:0] bits of the<br />

C0CTRL register and not by a change in the CAN bus state. No message is transmitted even when transmission requests<br />

are issued or pending.<br />

(1) Entering CAN stop mode<br />

A CAN stop mode transition request is issued by writing 11B to the PSMODE [1:0] bits of the C0CTRL register.<br />

A CAN stop mode request is only acknowledged when the CAN module is in the CAN sleep mode. In all other<br />

modes, the request is ignored.<br />

Caution To set the CAN module to the CAN stop mode, the module must be in the CAN sleep mode.<br />

To confirm that the module is in the sleep mode, check that PSMODE [1:0] = 01B, and then<br />

request the CAN stop mode. If a bus change occurs at the CAN reception pin (CRxD) while<br />

this process is being performed, the CAN sleep mode is automatically released. In this case,<br />

the CAN stop mode transition request cannot be acknowledged (However, in the state that<br />

the CAN clock is supplied, it is necessary to clear the PSMODE0 bit by software after a bus<br />

change occurs at the CAN reception pin (CRxD)).<br />

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

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

- The internal operating clock is stopped and the power consumption is minimized.<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 CAN0 module registers or bits.<br />

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

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

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

- An initialization mode transition request is not acknowledged and is ignored.<br />

(3) Releasing CAN stop mode<br />

The CAN stop mode can only be released by writing 01B to the PSMODE [1:0] bits of the C0CTRL register. After<br />

releasing the CAN stop mode, the CAN module enters the CAN sleep mode.<br />

When the initialization mode is requested while the CAN module is in the CAN stop mode, that request is ignored;<br />

the CPU has to release the stop mode and subsequently CAN sleep mode before entering the initialization mode.<br />

It is impossible to enter the other operation mode directly from the CAN stop mode not entering the CAN sleep<br />

mode, that request is ignored.<br />

Remark m = 0 to 15<br />

R01UH0317EJ0004 Rev. 0.04 902<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!