2 POWER SUPPLY, RESET, AND CLOCKS
2-12
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
OSC3B
RUN
OSC1
RUN
OSC3B
HALT
OSC3A
HALT
OSC3A
RUN
RESET
(Initial state)
RUN/
HALT/
SLEEP
DEBUG
Transition takes place automatically by the
initial boot sequence after a request from
the reset source is canceled.
∗
In RUN and HALT modes, the clock sources not used
as SYSCLK can be all disabled.
Interr
upt
halt instr
uctio
n
Debug interrupt
retd instruction
RUN
SLEEP
slp instruction
Interrupt
(wake-up)
halt instr
uctio
n
Interr
upt
CLGSCLK.CLKSRC[1:0] = 0x
1
CLGSCLK.CLKSRC[1:0] = 0x
0
EXOSC
RUN
CLGSCLK.CLKSRC[1:0] = 0x
2
CLGSCLK.CLKSRC[1:0] = 0x
3
CLGSCLK.CLKSRC[1:0] = 0x1
CLGSCLK.CLKSRC[1:0] = 0x3
OSC1
HALT
halt instr
uctio
n
Interr
upt
EXOSC
HALT
Interr
upt
halt instr
uctio
n
CLGSCLK.CLKSRC[1:0] = 0x2
CLGSCLK.CLKSRC[1:0] = 0x0
CLGSCLK.CLKSRC[1:0] = 0x
0
CLGSCLK.CLKSRC[1:0] = 0x
3
CLGSCLK.CLKSRC[1:0] = 0x
1
CLGSCLK.CLKSRC[1:0] = 0x
2
4.2.1 Operating Mode-to-Mode State Transition Diagram
Figure 2.
Canceling HALT or SLEEP mode
The conditions listed below cancel HALT or SLEEP mode and put the CPU into RUN mode.
• Interrupt request from the interrupt controller
• NMI from the watchdog timer
• Debug interrupt or address misaligned interrupt
• Reset request
Interrupts
2.5
CLG has a function to generate the interrupts shown in Table 2.5.1.
5.1 CLG Interrupt Function
Table 2.
Interrupt
Interrupt flag
Set condition
Clear condition
OSC3B oscillation stabilization
waiting completion
CLGINTF.
OSC3BSTAIF
When the OSC3B oscillation stabilization waiting
operation has completed after the oscillation starts
Writing 1
OSC1 oscillation stabilization
waiting completion
CLGINTF.
OSC1STAIF
When the OSC1 oscillation stabilization waiting op-
eration has completed after the oscillation starts
Writing 1
OSC3A oscillation stabilization
waiting completion
CLGINTF.
OSC3ASTAIF
When the OSC3A oscillation stabilization waiting
operation has completed after the oscillation starts
Writing 1