
16
EPSON
S1C621C0 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Oscillation Circuit)
4.3.6 Control of oscillation circuit
Table 4.3.6.1 lists the control bits and their addresses for the oscillation circuit.
Table 4.3.6.1 Control bits of oscillation circuit
*1 Initial value at the time of initial reset
*5 Constantly "0" when being read
*2 Not set in the circuit
*6 Refer to main manual
*3 Undefined
*7 Page switching in I/O memory is not necessary
*4 Reset (0) immediately after being read
OSCC: OSC3 oscillation ON/OFF (81HD0)
Controls oscillation ON/OFF for the OSC3 oscillation circuit.
When "1" is written:
OSC3 oscillation ON
When "0" is written:
OSC3 oscillation OFF
Reading:
Valid
When it is necessary to operate the CPU and some peripheral circuits (remote controller, R/F converter,
FOUT output) at high speed, set OSCC to "1". At other times, set it to "0" to resume current consumption.
At initial reset, this register is set to "0".
CLKCHG: CPU clock switch (81HD1)
The CPU's operation clock is selected with this register.
When "1" is written:
OSC3 clock is selected
When "0" is written:
OSC1 clock is selected
Reading:
Valid
When the CPU clock is to be OSC3, set CLKCHG to "1"; for OSC1, set CLKCHG to "0".
When switching the CPU operation clock from OSC1 to OSC3, do this after a minimum of 5 msec have
elapsed since the OSC3 oscillation went ON (OSCC = "1"). This time is necessary to stabilize the OSC3
oscillation.
At initial reset, this register is set to "0".
4.3.7 Programming notes
(1) It takes at least 5 msec from the time the OSC3 oscillation circuit goes ON until the oscillation stabilizes.
Consequently, when switching the CPU operation clock from OSC1 to OSC3, do this after a minimum
of 5 msec have elapsed since the OSC3 oscillation went ON.
Further, the oscillation stabilization time varies depending on the external oscillator characteristics and
conditions of use, so allow ample margin when setting the wait time.
OSC1
→ OSC3
1. Set OSCC to "1" (OSC3 oscillation ON)
2. Maintain 5 msec or more
3. Set CLKCHG to "1" (OSC1
→ OSC3)
OSC3
→ OSC1
1. Set CLKCHG to "0" (OSC3
→ OSC1)
2. Set OSCC to "0" (OSC3 oscillation OFF)
(2) When switching the clock form OSC3 to OSC1, use a separate instruction for turning the OSC3 oscilla-
tion OFF. An error in the CPU operation can result if this processing is performed at the same time by
the one instruction.
(3) If it is not necessary to operate the CPU in high-speed and the OSC3 clock is not needed for some
peripheral circuits, turn the OSC3 oscillation circuit off (CLKCHG = "0", OSCC = "0") to reduce current
consumption.
Address
Comment
Register
D3
D2
D1
D0
Name
Init
1
0
*1
OSCC
R
0
CLKCHG
OSCC
–
0
OSC3
On
OSC1
Off
CLKCHG
0
81H
*2
*5
*7
Unused
CPU clock switch
OSC3 oscillation On/Off
R/W