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.

<br />

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.5 System Clock Oscillator<br />

5.5.1 X1 oscillator<br />

The X1 oscillator oscillates with a crystal resonator or ceramic resonator (1 to 20 MHz) connected to the X1 and X2<br />

pins.<br />

An external clock can also be input. In this case, input the clock signal to the EXCLK pin.<br />

To use the X1 oscillator, set bits 7 and 6 (EXCLK, OSCSEL) of the clock operation mode control register (CMC) as<br />

follows.<br />

Crystal or ceramic oscillation: EXCLK, OSCSEL = 0, 1<br />

External clock input: EXCLK, OSCSEL = 1, 1<br />

When the X1 oscillator is not used, set the input port mode (EXCLK, OSCSEL = 0, 0).<br />

When the pins are not used as input port pins, either, see Chapter 2.3 Pin I/O Circuits and Recommended<br />

Connection of Unused Pins.<br />

Figure 5-16 shows an example of the external circuit of the X1 oscillator.<br />

Figure 5-16. Example of External Circuit of X1 Oscillator<br />

(a) Crystal or ceramic oscillation (b) External clock<br />

Crystal resonator<br />

or<br />

ceramic resonator<br />

VSS<br />

X1<br />

X2<br />

Cautions are listed on the next page.<br />

External clock<br />

EXCLK<br />

5.5.2 XT1 oscillator<br />

The XT1 oscillator oscillates with a crystal resonator (standard: 32.768 kHz) connected to the XT1 and XT2 pins.<br />

To use the XT1 oscillator, set bit 4 (OSCSELS) of the clock operation mode control register (CMC) to 1.<br />

Crystal or ceramic oscillation: OSCSELS = 1<br />

When the XT1 oscillator is not used, set the input port mode (OSCSELS = 0).<br />

When the pins are not used as input port pins, either, see Chapter 2.3 Pin I/O Circuits and Recommended<br />

Connection of Unused Pins.<br />

Figure 5-17 shows an example of the external circuit of the XT1 oscillator.<br />

R01UH0317EJ0004 Rev. 0.04 291<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!