![](http://datasheet.mmic.net.cn/140000/S1C17602F00E100_datasheet_5011484/S1C17602F00E100_271.png)
16 Stopwatch Timer (SWT)
S1C17602 TECHNICAL MANUAL
EPSON
16-11
SWT
0x5023: Stopwatch Timer Interrupt Flag Register (SWT_IFLG)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
Stopwatch
Timer Interrupt
Flag Register
(SWT_IFLG)
0x5023
(8 bits)
D7–3
–
reserved
–
0 when being read.
D2
SIF1
1 Hz interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D1
SIF10
10 Hz interrupt flag
0
R/W
D0
SIF100
100 Hz interrupt flag
0
R/W
This register indicates the occurrence state of interrupt factors due to stopwatch timer 100 Hz, 10 Hz, and 1 Hz
signals. If a stopwatch timer interrupt occurs, identify the interrupt factor (frequency) by reading the interrupt flag
in this register.
SIF* are SWT module interrupt flags corresponding to the individual 100 Hz, 10 Hz, and 1 Hz interrupts. It is
set to 1 at the falling edge of each signal if SIE* (SWT_IMSK register) is set to 1. The stopwatch timer interrupt
request signal is output to the ITC at the same time. This interrupt request signal generates an interrupt if the ITC
and S1C17 core interrupt conditions are met.
SIF* is reset by writing as 1.
Note: To prevent interrupt recurrences, the SWT module interrupt flag SIF*must be reset within
the interrupt processing routine following a stopwatch timer interrupt.
To prevent generating unnecessary interrupts, SIF* must be reset before permitting clock
timer interrupts using SIE.*
D[7:3]
Reserved
D2
SIF1: 1 Hz Interrupt Flag
Interrupt flag indicating the 1 Hz interrupt factor occurrence status.
1(R):
Interrupt factor present
0(R):
No interrupt factor (default)
1(W):
Reset flag
0(W):
Disabled
Setting SIE1 (D2/SWT_IMSK register) to 1 sets SIF1 to 1 at the 1 Hz signal falling edge.
D1
SIF10: 10 Hz Interrupt Flag
Interrupt flag indicating the 10 Hz interrupt factor occurrence status.
1(R):
Interrupt factor present
0(R):
No interrupt factor (default)
1(W):
Reset flag
0(W):
Disabled
Setting SIE10 (D1/SWT_IMSK register) to 1 sets SIF10 to 1 at the 10 Hz signal falling edge.
D0
SIF100: 100 Hz Interrupt Flag
Interrupt flag indicating the 100 Hz interrupt factor occurrence status.
1(R):
Interrupt factor present
0(R):
No interrupt factor (default)
1(W):
Reset flag
0(W):
Disabled
Setting SIE100 (D0/SWT_IMSK register) to 1 sets SIF100 to 1 at the 100 Hz signal falling edge.