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

CHAPTER 5 CLOCK GENERATOR<br />

The presence or absence of connecting resonator pin for main system clock, connecting resonator pin for subsystem<br />

clock, external clock input pin for main system clock, and external clock input pin for subsystem clock, depends on the<br />

product.<br />

Output pin 100-pin 80-pin 64-pin 48-pin<br />

X1, X2 pins <br />

EXCLK pin <br />

XT1, XT2 pins N/A<br />

5.1 Functions of Clock Generator<br />

The clock generator generates the clock to be supplied to the CPU and peripheral hardware.<br />

The following three kinds of system clocks and clock oscillators are selectable.<br />

(1) Main system clock<br />

X1 oscillator<br />

This circuit oscillates a clock of fX = 1 to 20 MHz by connecting a resonator to X1 and X2.<br />

Oscillation can be stopped by executing the STOP instruction or setting of the MSTOP bit (bit 7 of the clock<br />

operation status control register (CSC)).<br />

High-speed on-chip oscillator<br />

The frequency at which to oscillate can be selected from among fIH = 32, 24, 16, 8, or 4 MHz (typ.) by using<br />

the option byte (000C2H). After a reset release, the CPU always starts operating with this High-speed onchip<br />

oscillator clock. Oscillation can be stopped by executing the STOP instruction or setting the HIOSTOP<br />

bit (bit 0 of the CSC register).<br />

The frequency specified by using an option byte can be changed by using the high-speed on-chip oscillator<br />

frequency select register (HOCODIV). For details about the frequency, see Figure 5-9 Format of High-speed<br />

On-chip Oscillator Frequency Select Register (HOCODIV).<br />

The frequencies that can be specified for the high-speed on-chip oscillator by using the option byte and the<br />

high-speed on-chip oscillator frequency select register (HOCODIV) are shown in CHAPTER 32 ELECTRICAL<br />

SPECIFICATIONS (J GRADE PRODUCT) (TARGET) and CHAPTER 33 ELECTRICAL SPECIFICATIONS<br />

(L GRADE PRODUCT) (TARGET).<br />

An external main system clock (fEX = 1 to 20 MHz) can also be supplied from the EXCLK/X2/P122 pin. An external<br />

main system clock input can be disabled by executing the STOP instruction or setting of the MSTOP bit.<br />

As the main system clock, a high-speed system clock (X1 clock or external main system clock) or high-speed onchip<br />

oscillator clock can be selected by setting of the MCM0 bit (bit 4 of the system clock control register (CKC)).<br />

(2) PLL clock<br />

A clock that is the main system clock multiplied by 1, 6 or 8 can be oscillated. Oscillation can be stopped by<br />

executing a STOP instruction or by setting PLLON (bit 0 of PLLCTL) to 0.<br />

(3) Subsystem clock<br />

XT1 clock oscillator<br />

This circuit oscillates a clock of fXT = 32.768 kHz by connecting a 32.768 kHz resonator to XT1 and XT2.<br />

Oscillation can be stopped by setting the XTSTOP bit (bit 6 of the clock operation status control register (CSC)).<br />

R01UH0317EJ0004 Rev. 0.04 267<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!