
S1C60N13 TECHNICAL MANUAL
EPSON
51
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Stopwatch Timer)
4.10 Stopwatch Timer
4.10.1 Configuration of stopwatch timer
The S1C60N13 Series incorporates a 1/100 sec and 1/10 sec stopwatch timer. The stopwatch timer is
configured of a two-stage, four-bit BCD counter serving as the input clock of an approximately 100 Hz
signal (signal obtained by approximately demultiplying the 256 Hz signal output by the divider). Data
can be read out four bits at a time by the software.
Figure 4.10.1.1 is the block diagram of the stopwatch timer.
10 Hz, 1 Hz
256 Hz
10 Hz
Stopwatch timer reset signal
Interrupt request
Divider
Data bus
SWL counter
SWH counter
Stopwatch timer RUN/STOP signal
Interrupt
control
Stopwatch Timer
OSC1
oscillation
circuit
Fig. 4.10.1.1 Stopwatch timer block diagram
The stopwatch timer can be used as a separate timer from the clock timer. In particular, digital watch
stopwatch functions can be realized easily with software.
4.10.2 Count-up pattern
The stopwatch timer is configured of four-bit BCD counters SWL and SWH.
The counter SWL, at the stage preceding the stopwatch timer, has an approximated 100 Hz signal for the
input clock. It counts up every 1/100 sec, and generates an approximated 10 Hz signal. The counter SWH
has an approximated 10 Hz signal generated by the counter SWL for the input clock. It count-up every 1/
10 sec, and generated 1 Hz signal.
Figure 4.10.2.1 shows the count-up pattern of the stopwatch timer.
26
256
26
256
26
256
26
256
26
256
26
256
25
256
25
256
25
256
25
256
3
256
2
256
3
256
2
256
2
256
2
256
3
256
3
256
3
256
2
256
3
256
2
256
3
256
3
256
3
256
3
256
3
256
2
256
2
256
2
256
26
256
25
256
26
256
25
256
x 6 +
x 4 = 1 (sec)
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1 Hz
signal
generation
Approximate
10 Hz
signal
generation
SWH count value
Count time (sec)
(sec)
SWL count value
Count time (sec)
SWL count value
Count time (sec)
SWH count-up pattern
SWL count-up pattern 1
SWL count-up pattern 2
Approximate
10 Hz
signal
generation
Fig. 4.10.2.1 Count-up pattern of stopwatch timer
SWL generates an approximated 10 Hz signal from the basic 256 Hz signal. The count-up intervals are 2/
256 sec and 3/256 sec, so that finally two patterns are generated: 25/256 sec and 26/256 sec intervals.
Consequently, these patterns do not amount to an accurate 1/100 sec.
SWH counts the approximated 10 Hz signals generated by the 25/256 sec and 26/256 sec intervals in the
ratio of 4:6, to generate a 1 Hz signal. The count-up intervals are 25/256 sec and 26/256 sec, which do not
amount to an accurate 1/10 sec.