Osc3 Oscillation Circuit; Switching The Cpu Clocks - Epson S1C88650 Technical Manual

Hewlett-packard cmos 8-bit single chip microcomputer technical manual
Table of Contents

Advertisement

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Oscillation Circuits)

5.4.4 OSC3 oscillation circuit

The OSC3 oscillation circuit generates the system
clock when the CPU and some peripheral circuits
are in high speed operation.
This oscillation circuit stops when the SLP instruc-
tion is executed, or the SOSC3 register is set to "0".
In terms of oscillation circuit types, any one of
crystal oscillation, ceramic oscillation or CR
oscillation can be selected with the mask option.
Figure 5.4.4.1 shows the configuration of the OSC3
oscillation circuit.
C
G2
OSC3
X'tal 2
Rf
or
Ceramic
OSC4
C
D2
V
SS
(1) Crystal/Ceramic oscillation circuit
OSC3
R
CR3
OSC4
(2) CR oscillation circuit
Fig. 5.4.4.1 OSC3 oscillation circuit
When crystal or ceramic oscillation circuit is
selected, the crystal or ceramic oscillation circuit
(Max. 8.2 MHz) are formed by connecting either a
crystal oscillator (X'tal2) or a combination of
ceramic oscillator (Ceramic) and feedback resistor
(Rf) between OSC3 and OSC4 terminals and
connecting two capacitors (C
OSC3 terminal and V
SS
terminal and V
, respectively.
SS
High speed operation
OSC1
OSC3
CPU clock
* The return destination from the standby status becomes the program execution status prior to shifting to the standby status.
42
f
OSC3
Oscillation circuit
control signal
SLEEP status
f
Oscillation circuit
control signal
SLEEP status
, C
) between the
G2
D2
, and between the OSC4
Program Execution Status
RESET
CLKCHG=0
ON
ON
OSC3
CLKCHG=1
*
Interrupt
HALT instruction
HALT status
OSC1
ON
OSC3
ON or OFF
CPU clock
STOP
Fig. 5.4.5.1 Status transition diagram for the clock changeover
When CR oscillation is selected, the CR oscillation
circuit (Max. 2.2 MHz) is formed merely by
connecting a resistor (R
OSC4 terminals.

5.4.5 Switching the CPU clocks

You can use either OSC1 or OSC3 as the system
clock for the CPU and you can switch over by
means of software.
You can save power by turning the OSC3 oscilla-
tion circuit off while the CPU is operating in OSC1.
When you must operate on OSC3, you can change
to high speed operation by turning the OSC3
oscillation circuit ON and switching over the
system clock.
In this case, since several msec to several tens of
msec are necessary for the oscillation to stabilize
after turning the OSC3 oscillation circuit ON, you
should switch over the clock after stabilization time
has elapsed.
When switching over from the OSC3 to the OSC1,
turn the OSC3 oscillation circuit OFF immediately
following the clock changeover.
OSC3
When switching the system clock from OSC3 to
OSC1 immediately after the power is turned on, it
is necessary to wait for the OSC1 oscillation to
stabilize before the clock can be switched. The
OSC3 oscillation may take several tens of msec to
several seconds until it has completely stabilized.
(The oscillation start time will vary somewhat
depending on the oscillator and on the externally
attached parts. Refer to the oscillation start time
example indicated in Chapter 8, "ELECTRICAL
CHARACTERISTICS".)
Figure 5.4.5.1 indicates the status transition dia-
gram for the clock changeover.
Low speed operation
SOSC3=0
OSC1
ON
OSC3
ON
CPU clock
OSC1
SOSC3=1
*
Interrupt
(Input interrupt)
SLEEP status
OSC1
OSC3
CPU clock
Standby Status
EPSON
) between OSC3 and
CR3
Low speed and
low power operation
OSC1
ON
OSC3
OFF
CPU clock
OSC1
SLP instruction
OFF
OFF
STOP
S1C88650 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents