
User’s Manual U19780EJ2V0UD
127
CHAPTER 5 CLOCK GENERATOR
5.1 Functions of Clock Generator
The clock generator generates the clock to be supplied to the CPU and peripheral hardware.
The following three kinds of system clocks and clock oscillators are selectable.
(1) Main system clock
<1> X1 oscillator
This circuit oscillates a clock of f
X
= 1 to 20 MHz by connecting a resonator to X1 and X2.
Oscillation can be stopped by executing the STOP instruction or using the main OSC control register
(MOC).
<2> Internal high-speed oscillator
This circuit oscillates a clock of f
RH
= 8 MHz (TYP.). After a reset release, the CPU always starts
operating with this internal high-speed oscillation clock. Oscillation can be stopped by executing the
STOP instruction or using the internal oscillation mode register (RCM).
An external main system clock (f
EXCLK
= 1 to 20 MHz) can also be supplied from the EXCLK/X2/P122 pin. An
external main system clock input can be disabled by executing the STOP instruction or using RCM.
As the main system clock, a high-speed system clock (X1 clock or external main system clock) or internal high-
speed oscillation clock can be selected by using the main clock mode register (MCM).
(2) Subsystem clock
Note
•
Subsystem clock oscillator
This circuit oscillates at a frequency of f
XT
= 32.768 kHz by connecting a 32.768 kHz resonator across XT1
and XT2. Oscillation can be stopped by using the clock operation mode select register (OSCCTL).
Note
The 78K0/KB2-A is not provided with a subsystem clock.
Remark
f
X
:
X1 clock oscillation frequency
f
RH
:
Internal high-speed oscillation clock frequency
f
EXCLK
:
External main system clock frequency
f
XT
:
XT1 clock oscillation frequency