
S1C60N08 TECHNICAL HARDWARE
EPSON
I-53
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Stopwatch Timer)
4.10 Stopwatch Timer
4.10.1 Configuration of stopwatch timer
The S1C60N08 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 prescaler). 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
OSC1
oscillation
circuit
Selector
Data bus
SWL counter
Prescaler 1
Prescaler 2
SWH counter
Stopwatch timer RUN/STOP signal
Prescaler selection signal
Interrupt
control
Stopwatch Timer
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.
The input clock of the stopwatch timer is output through the prescaler, so the prescaler mode must be set
correctly to suit the crystal oscillator to be used (32.768 kHz or 38.4 kHz). For how to set the prescaler, see
Section 4.3, "Oscillation Circuit and Prescaler".
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