
7 CLOCK GENERATOR (CLG)
7-6
Seiko Epson Corporation
S1C17705 TECHNICAL MANUAL
Switching the system clock to OSC3 (internal clock) from IOSC or OSC1
1. Set the OSC3 oscillation stabilization wait time if necessary. (OSC3WT[1:0])
2. Turn the OSC3 oscillator on if it is off. (OSC3EN = 1)
3. Select the OSC3 clock as the system clock. (CLKSRC[1:0] = 0x2)
4. Turns the IOSC or OSC1 oscillator off if peripheral modules and FOUTA/B output circuits have not used
the IOSC or OSC1 clock.
Switching the system clock to OSC3 (external clock) from IOSC or OSC1
1. Input the external OSC3 clock to the EXOSC3 pin. The input clock must be stabilized.
2. Enable the external OSC3 clock. (EXOSC3SEL = 1, EXOSC3EN = 1)
3. Select the OSC3 clock as the system clock. (CLKSRC[1:0] = 0x2)
4. Turns the IOSC or OSC1 oscillator off if peripheral modules and FOUTA/B output circuits have not used
the IOSC or OSC1 clock.
Switching the system clock to OSC1 from IOSC or OSC3
1. Turn the OSC1 oscillator on. (OSC1EN = 1)
2. Select the OSC1 clock as the system clock. (CLKSRC[1:0] = 0x1)
3. Turns the IOSC or OSC3 oscillator off if peripheral modules and FOUTA/B output circuits have not used
the IOSC or OSC3 clock.
Switching the system clock to IOSC from OSC3 or OSC1
1. Set the IOSC oscillation stabilization wait time if necessary. (IOSCWT[1:0])
2. Turn the IOSC oscillator on if it is off. (IOSCEN = 1)
3. Select the IOSC clock as the system clock. (CLKSRC[1:0] = 0x0)
4. Turns the OSC3 or OSC1 oscillator off if peripheral modules and FOUTA/B output circuits have not used
the OSC3 or OSC1 clock.
Notes: The oscillator to be used as the system clock source must be operated before switching
the system clock. Otherwise, the CLG will not switch the system clock source, even if CLK-
SRC[1:0] is written to, and the CLKSRC[1:0] value will remain unchanged.
The table below lists the combinations of clock operating status and register settings enabling
system clock selection.
4.2 System Clock Switching Conditions
Table 7.
IOSCEN
OSC3EN
EXOSC3EN
OSC1EN
EXOSC3SEL
System clock
1
*
IOSC, OSC3/EXOSC3, or OSC1
1
0
1
0
IOSC, OSC3, or OSC1
1
0
1
IOSC, EXOSC3, or OSC1
1
0
1
*
IOSC or OSC1
0
1
*
OSC3/EXOSC3 or OSC1
0
1
0
1
0
OSC3 or OSC1
0
1
EXOSC3 or OSC1
The oscillator circuit selected as the system clock source cannot be turned off.
Continuous write/read access to CLKSRC[1:0] is prohibited. At least one instruction unrelated
to CLKSRC[1:0] access must be inserted between the write and read instructions.
When SLEEP mode is cancelled, the IOSC oscillator circuit is turned on (IOSCEN = 1) and
is used as the system clock source (CLKSRC[1:0] = 0x0) regardless of the system clock
configured before the chip entered SLEEP mode.
Canceling HALT mode does not change the clock status configured before the chip entered
HALT mode.
CPU Core Clock (CCLK) Control
7.5
The CLG module includes a clock gear to slow down the system clock to send to the S1C17 Core. To reduce cur-
rent consumption, operate the S1C17 Core with the slowest possible clock speed. The halt instruction can be ex-
ecuted to stop the clock supply from the CLG to the S1C17 Core for power savings.