CHAPTER 5 CLOCK GENERATOR
98 User’s Manual U15331EJ4V1UD
5.3 Registers Controlling Clock Generator
The clock generator is controlled by the following four registers.
Processor clock control register (PCC)
Subclock oscillation mode register (SCKM)
Subclock control register (CSS)
Subclock selection register (SSCK) (
µ
PD78F9488, 78F9489 only)
(1) Processor clock control register (PCC)
This register is used to select the CPU clock and set the frequency division ratio.
PCC is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 02H.
Figure 5-3. Format of Processor Clock Control Register
Symbol <7> 6 5 4 3 2 <1> 0 Address After reset R/W
PCC MCC 0 0 0 0 0 PCC1 0 FFFBH 02H R/W
MCC Main system clock oscillator operation control
0 Operation enabled
1 Operation stopped
Minimum instruction execution time: 2/fCPU
CSS0 PCC1 CPU clock (fCPU) selectionNote
fX = 5.0 MHz or fXT = 32.768 kHz
0 0 fX 0.4
µ
s
0 1
fX/22 1.6
µ
s
1
× fXT/2
4fXT (when ×4 multiplication circuit is used)
122
µ
s
15.26
µ
s (when ×4 multiplication circuit is used)
Note The CPU clock is selected by a combination of flag settings in the PCC and CSS registers. (Refer to
5.3 (3) Subclock control register (CSS).)
Cautions 1. Always set bits 0 and 2 to 6 to 0.
2. MCC can be set only when the subsystem clock is selected as the CPU clock.
Setting MCC to 1 while the main system clock is operating is invalid.
Remarks 1. fX: Main system clock oscillation frequency
2. fXT: Subsystem clock oscillation frequency