S1C63454 TECHNICAL MANUAL
EPSON
25
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Oscillation Circuit)
4.3.6 I/O memory of oscillation circuit
Table 4.3.6.1 shows the I/O address and the control bits for the oscillation circuit.
Table 4.3.6.1 Control bits of oscillation circuit
Address
Comment
D3
D2
Register
D1
D0
Name
Init
∗
1
1
0
FF00H
CLKCHG OSCC
0
VDC
R
R/W
R/W
CLKCHG
OSCC
0
∗
3
VDC
0
0
–
∗
2
0
OSC3
On
2.2 V
OSC1
Off
1.3 V
CPU clock switch
OSC3 oscillation On/Off
Unused
CPU operating voltage switch (1.3 V: OSC1, 2.2 V: OSC3)
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
VDC: CPU operating voltage switching register (FF00H•D0)
It is used to switch the operating voltage V
D1
, when the crystal oscillation circuit has been selected as the
OSC1 oscillation circuit by mask option.
When "1" is written: 2.2 V (for OSC3 operation)
When "0" is written: 1.3 V (for OSC1 operation)
Reading: Valid
When switching the CPU system clock, the operating voltage V
D1
should also be switched according to
the clock.
When switching from OSC1 to OSC3, first set V
D1
to 2.2 V. After that maintain 2.5 msec or more, and then
turn the OSC3 oscillation ON.
When switching from OSC3 to OSC1, set V
D1
to 1.3 V after switching to OSC1 and turning the OSC3
oscillation OFF.
When the CR oscillation circuit has been selected as the OSC1 oscillation circuit by mask option, setting
of this register does not affect the operating voltage V
D1
, and the V
D1
voltage is fixed at 2.2 V.
At initial reset, this register is set to "0".
OSCC: OSC3 oscillation control register (FF00H•D2)
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 at high speed, set OSCC to "1". At other times, set it to "0" to
reduce current consumption. Furthermore, when the crystal oscillation circuit has been selected as the
OSC1 oscillation circuit by mask option, it is necessary to switch the operating voltage V
D1
when turning
the OSC3 oscillation circuit ON and OFF
At initial reset, this register is set to "0".
CLKCHG: CPU system clock switching register (FF00H•D3)
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".
After turning the OSC3 oscillation ON (OSCC = "1"), switching of the clock should be done after waiting
5 msec or more.
When V
D1
is 1.3 V (VDC = "0") and when OSC3 oscillation is OFF (OSCC = "0"), setting of CLKCHG = "1"
becomes invalid and switching to OSC3 is not performed. When the CR oscillation circuit has been
selected as the OSC1 oscillation circuit by mask option, setting VDC to "0" makes no difference.
At initial reset, this register is set to "0".