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 5 CLOCK GENERATOR<br />

5.7.4 Example of controlling Peripheral clock<br />

In this product, the unnecessary macro clock is stopped in the root for low power consumption and noise attenuation.<br />

The special control registers are configured for the purpose.<br />

Moreover, PCKSEL controls the selection and supply of the operation clock for the asynchronous macro CAN, but<br />

the clock selection bit of SG macro is also in this register, bit0 (SGCLKSEL) in order to save address resources.<br />

Peripheral enable register0 (PER0)<br />

Symbol 7 6 5 4 3 2 1 0<br />

PER0 RTCEN LIN1EN LIN0EN SAU1EN SAU0EN TAU2EN TAU1EN TAU0EN<br />

Reset init value 0 0 0 0 0 0 0 0<br />

R/W (hardware) R/W R/W R/W R/W R/W R/W R/W R/W<br />

R/W (user) R/W R/W R/W R/W R/W R/W R/W R/W<br />

Peripheral enable register1 (PER1)<br />

Symbol 7 6 5 4 3 2 1 0<br />

PER1 ADCEN 0 MTRCEN SGEN 0 0 0 0<br />

Reset init value 0 0 0 0 0 0 0 0<br />

R/W (hardware) R/W R R/W R/W R R R R<br />

R/W (user) R/W R R/W R/W R R R R<br />

Peripheral clock select register (PCKSEL)<br />

Symbol 7 6 5 4 3 2 1 0<br />

PCKSEL 0 CAN CAN CAN CAN 0 0 SGCLK<br />

MCKE1 MCK1 MCKE0 MCK0<br />

SEL<br />

Reset init value 0 0 0 0 0 0 0 0<br />

R/W (hardware) R R/W R/W R/W R/W R R R/W<br />

R/W (user) R R/W R/W R/W R/W R R R/W<br />

Control contents of PER0,1<br />

Bit value Control contents<br />

0 Stops the input clock supply to peripheral macro.<br />

SFR of peripheral macro can’t be written. (read possible)<br />

Peripheral macro is in reset status.<br />

1 Supplies the input clock to peripheral macro.<br />

SFR of peripheral macro can be written.<br />

The LCD macro connects directly with fIL, fSUB, and fMAIN, and becomes an asynchronization macro like CAN macro.<br />

Inside LCD macro, SCOC bit is used to control LCD sub clock, the low power consumption has been taken into account to<br />

LCD source clock division, so the chip peripheral clock control bit PER/PCKSEL is not configured for LCD macro.<br />

R01UH0317EJ0004 Rev. 0.04 301<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!