CHAPTER 6 CLOCK GENERATOR
Page 117 of 920
6.4
System Clock Oscillator
6.4.1
X1 oscillator
The X1 oscillator oscillates with a crystal resonator or ceramic resonator (1 to 20 MHz) connected to the X1 and
X2 pins.
An external clock can also be input. In this case, input the clock signal to the EXCLK pin.
To use the X1 oscillator, set bits 7 and 6 (EXCLK, OSCSEL) of the clock operation mode control register (CMC)
as follows.
• Crystal or ceramic oscillation: EXCLK, OSCSEL = 0, 1
• External clock input: EXCLK, OSCSEL = 1, 1
When the X1 oscillator is not used, set the input port mode (EXCLK, OSCSEL = 0, 0).
When the pins are not used as input port pins, either, see
Table 3 - 3 Connection of Unused Pins
.
Figure 6 - 14 shows an example of the external circuit of the X1 oscillator.
Figure 6 - 14 Example of External Circuit of X1 Oscillator
Cautions are listed on the next page.
6.4.2
XT1 oscillator
The XT1 oscillator oscillates with a crystal resonator (32.768 kHz (TYP.)) connected to the XT1 and XT2 pins.
To use the XT1 oscillator, set bit 4 (OSCSELS) of the clock operation mode control register (CMC) to 1.
An external clock can also be input. In this case, input the clock signal to the EXCLKS pin.
To use the XT1 oscillator, set bits 5 and 4 (EXCLKS, OSCSELS) of the clock operation mode control register
(CMC) as follows.
• Crystal oscillation:EXCLKS, OSCSELS = 0, 1
• External clock input:EXCLKS, OSCSELS = 1, 1
When the XT1 oscillator is not used, set the input port mode (EXCLKS, OSCSELS = 0, 0).
When the pins are not used as input port pins, either, see
Table 3 - 3 Connection of Unused Pins
.
Figure 6 - 15 shows an example of the external circuit of the XT1 oscillator.
(a) Crystal or ceramic oscillation
(b) External clock
EXCLK
External clock
Crystal resonator
or
ceramic resonator
X2
X1
V
SS
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...