I/O Memory Of Stopwatch Timer - Epson S1C63003 Technical Manual

Cmos 4-bit single chip microcontroller
Table of Contents

Advertisement

Direct Run and direct laP interrupts
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
/32 (1,024 Hz)
OSC1
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
10.8

i/O Memory of Stopwatch Timer

Table 10.8.1 shows the I/O addresses and the control bits for the stopwatch timer.
Address
Register name R/W Default
FF16H D3 MDCKE (*5)
R/W
D2 SGCKE
R/W
D1 SWCKe
R/W
D0 RTCKE
R/W
FF48H
D3 0 (*3)
(*6)
D2 0 (*3)
D1 SWDiR
R/W
D0 eDiR
R/W
FF49H
D3 0 (*3)
(*6)
D2 DKM2
R/W
D1 DKM1
R/W
D0 DKM0
R/W
S1C63003/004/008/016 TeChniCal Manual
(Rev. 1.1)
[S1C63004/008/016]
000
001 002 003 004 005 006 098 099 100 101 102
003
Figure 10.
7.2 Timing chart for stopwatch timer
Table 10.
8.1 Control bits of stopwatch timer
Setting/data
0
1 Enable
0
1 Enable
0
1 Enable
0
1 Enable
R
– (*2)
R
– (*2)
0
1 P00 = Lap
P01 = Run/Stop
0
1 Enable
R
– (*2)
0
7 P10–13
4 P10
0
6 P10–12
3 P02–03,10 0 No mask
0
5 P10–11
2 P02–03
Seiko epson Corporation
000
001 002 003 004 005 006 007 993 994
995 996 997 998 999 000 001 002 003 004 005 006
005
0 Disable
Integer multiplier clock enable
0 Disable
Sound generator clock enable
0 Disable
Stopwatch timer clock enable
0 Disable
Clock timer clock enable
Unused
Unused
0 P00 = Run/Stop
Stopwatch direct input switch
P01 = Lap
0 Disable
Direct input enable
Unused
1 P02
Key mask selection
10 STOPWaTCh TiMeR
995
001
006
Function
007
10-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c63004S1c63008S1c63016

Table of Contents