2 POWER SUPPLY, RESET, AND CLOCKS
S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
2-15
(Rev. 2.00)
2.5 Interrupts
CLG has a function to generate the interrupts shown in Table 2.5.1.
Table 2.5.1 CLG Interrupt Functions
Interrupt
Interrupt flag
Set condition
Clear condition
IOSC oscillation stabiliza-
tion waiting completion
CLGINTF.IOSCSTAIF When the IOSC oscillation stabilization waiting
operation has completed after the oscillation starts
Writing 1
OSC1 oscillation stabili-
zation waiting completion
CLGINTF.OSC1STAIF When the OSC1 oscillation stabilization waiting
operation has completed after the oscillation starts
Writing 1
OSC3 oscillation stabili-
zation waiting completion
CLGINTF.OSC3STAIF When the OSC3 oscillation stabilization waiting
operation has completed after the oscillation starts
Writing 1
OSC1 oscillation stop
CLGINTF.OSC1STPIF When OSC1CLK is stopped, or when the CLGOSC.
OSC1EN or CLGOSC1.OSDEN bit setting is al-
tered from 1 to 0.
Writing 1
OSC3 oscillation auto-
trimming completion
CLGINTF.OSC3TEDIF When the OSC3 oscillation auto-trimming opera-
tion has completed
Writing 1
OSC3 oscillation auto-
trimming error
CLGINTF.OSC3TERIF When the OSC3 oscillation auto-trimming opera-
tion has terminated due to an error
Writing 1
CLG provides interrupt enable bits corresponding to each interrupt flag. An interrupt request is sent to the CPU
core only when the interrupt flag, of which interrupt has been enabled by the interrupt enable bit, is set. For more
information on interrupt control, refer to the “Interrupt” chapter.
2.6 Control Registers
PWGA Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
PWGACTL
15–8 –
0x00
–
R
–
7–6 –
0x0
–
R
5
REGDIS
0
H0
R/WP
4
REGSEL
1
H0
R/WP
3–2 –
0x0
–
R
1–0 REGMODE[1:0]
0x0
H0
R/WP
Bits 15–6 Reserved
Bit 5
REGDIS
This bit enables the V
D1
regulator discharge function.
1 (R/WP): Enable
0 (R/WP): Disable
Bit 4
REGSEL
This bit controls the V
D1
regulator voltage mode.
1 (R/WP): mode0
0 (R/WP): mode1
Bits 3–2
Reserved
Bits 1–0
REGMODE[1:0]
These bits control the V
D1
regulator operating mode.
Table 2.6.1 Internal Regulator Operating Mode
PWGACTL.REGMODE[1:0] bits
Operating mode
0x3
Economy mode
0x2
Normal mode
0x1
Reserved
0x0
Automatic mode