
40
EPSON
S1C6N3B0 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIARCUITS AND OPERATION (Stopwatch Timer)
4.8 Stopwatch Timer
4.8.1 Configuration of stopwatch timer
The S1C6N3B0 Series has a built-in 1/100 sec and 1/10 sec stopwatch timer. The stopwatch timer is
configured as a two-stage, four-bit BCD timer serving as the clock source for an approximately 100 Hz
signal (obtained by approximately dividing the 256 Hz signal output from the divider). Data can be read
out four bits at a time by the software.
Figure 4.8.1.1 is the block diagram of the stopwatch timer.
SWL timer
Data bus
10 Hz,1 Hz
256 Hz
Stopwatch timer reset signal
Stopwatch timer RUN/STOP signal
Oscillation
circuit
Interrupt
request
Interrupt
control
10 Hz
SWH timer
Fig. 4.8.1.1 Block diagram of stopwatch timer
The stopwatch timer can be used separately from the clock timer. In particular, digital stopwatch func-
tions can be easily realized by software.
Note: This manual describes frequencies and times when the crystal oscillation circuit (32.768 kHz) of
the S1C6N3B0 has been selected. Be aware that the frequencies and times vary when the
S1C6N3B0 CR oscillator model or the S1C6A3B0 is used.
See Section 4.2.6, "Frequency divider", for the input clock.
4.8.2 Count-up pattern
The stopwatch timer is configured as two four-bit BCD timers, SWL and SWH. The SWL timer, at the
stage preceding the stopwatch timer, has an approximate l00 Hz signal as its input clock. It counts up
every 1/100 sec and generates an approximate 10 Hz signal. The SWH timer has an approximate 10 Hz
signal generated by the SWL timer for its input clock. It counts up every 1/10 sec and generates a 1 Hz
signal.
Figure 4.8.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 (S)
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
Approximate
10 Hz
signal
generation
SWH count value
Counting time (S)
(S)
SWL count value
Counting time (S)
SWL count value
Counting time (S)
SWH count-up pattern
SWL count-up pattern 1
SWL count-up pattern 2
Fig. 4.8.2.1 Count-up pattern of stopwatch timer