10 STOPWaTCh TiMeR
S1C63003/004/008/016 TeChniCal Manual
Seiko epson Corporation
10-7
(Rev. 1.1)
Direct Run and direct laP interrupts
[S1C63004/008/016]
When the direct input function is selected, the direct RUN and direct LAP interrupts can be generated. The re-
spective interrupts occur at the rising edge of the internal signal for direct RUN and direct LAP after sampling
the direct input signal in the falling edge of 1,024 Hz signal. Also, at this time the corresponding interrupt factor
flag (IRUN, ILAP) is set to "1."
The respective interrupts can be masked separately through the interrupt mask registers (EIRUN, EILAP). How-
ever, regardless of the setting of the interrupt mask registers, the interrupt factor flags are set to "1" by the inputs
of the RUN and LAP.
The direct RUN and LAP functions use the P00 and P01 ports. Therefore, the direct input interrupt and the P00–
P03 inputs interrupt may generate at the same time depending on the interrupt condition setting for the input port
P00–P03. Consequently, when using the direct input interrupt, set the interrupt select registers SIP00 and SIP01
to "0" so that the input interrupt does not generate by P00 and P01 inputs.
f
OSC1
/32 (1,024 Hz)
SWRST writing
EDIR writing
EDIR register
Direct RUN input
SWRUN writing
SWRUN register
Direct LAP input
Counter data
Capture buffer
SWD[3:0] reading
SWD[7:4] reading
SWD[11:8] reading
CRNWF
1 Hz interrupt factor flag ISW1
LCURF
Direct RUN interrupt
Direct LAP interrupt
10 Hz interrupt
1 Hz interrupt
001 002 003 004 005 006 098 099 100 101 102
000
001 002 003 004 005 006 007 993 994
000
995 996 997 998 999 000 001 002 003 004 005 006
007
003
005
995
001
006
7.2 Timing chart for stopwatch timer
Figure 10.
i/O Memory of Stopwatch Timer
10.8
Table 10.8.1 shows the I/O addresses and the control bits for the stopwatch timer.
8.1 Control bits of stopwatch timer
Table 10.
Address
Register name R/W Default
Setting/data
Function
FF16H D3 MDCKE (
*
5)
R/W
0
1 Enable
0 Disable
Integer multiplier clock enable
D2 SGCKE
R/W
0
1 Enable
0 Disable
Sound generator clock enable
D1
SWCKe
R/W
0
1 Enable
0 Disable
Stopwatch timer clock enable
D0 RTCKE
R/W
0
1 Enable
0 Disable
Clock timer clock enable
FF48H
(
*
6)
D3 0 (
*
3)
R
– (
*
2)
–
Unused
D2 0 (
*
3)
R
– (
*
2)
–
Unused
D1
SWDiR
R/W
0
1 P00 = Lap
P01 = Run/Stop
0 P00 = Run/Stop
P01 = Lap
Stopwatch direct input switch
D0
eDiR
R/W
0
1 Enable
0 Disable
Direct input enable
FF49H
(
*
6)
D3 0 (
*
3)
R
– (
*
2)
–
Unused
D2
DKM2
R/W
0
7 P10–13
4 P10
1 P02
Key mask selection
D1
DKM1
R/W
0
6 P10–12
3 P02–03,10 0 No mask
D0
DKM0
R/W
0
5 P10–11
2 P02–03