72
EPSON
E0C88832/88862 TECHNICAL MANUAL
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Stopwatch Timer)
5.9 Stopwatch Timer
5.9.1 Configuration of stopwatch timer
The E0C88832/88862 has a built-in 1/100 sec and
1/10 sec stopwatch timer. The stopwatch timer is
composed of a 4-bit 2 stage BCD counter (1/100 sec
units and 1/10 sec units) that makes the 256 Hz
signal that divides the f
OSC1
the input clock and it
can read the count data by software.
Figure 5.9.1.1 shows the configuration of the
stopwatch timer.
The stopwatch timer can be used as a timer differ-
ent from the clock timer and can easily realize
stopwatch and other such functions by software.
Figure 5.9.2.1 shows the count up pattern of the
stopwatch timer.
The feedback dividing circuit generates an approxi-
mate 100 Hz signal at 2/256 sec and 3/256 sec
intervals from a 256 Hz signal divided from f
OSC1
.
The 1/100 sec counter (SWD0–SWD3) generates an
approximate 10 Hz signal at 25/256 sec and 26/256
sec intervals by counting the approximate 100 Hz
signal generated by the feedback dividing circuit in
2/256 sec and 3/256 sec intervals. The count-up is
made approximately 1/100 sec counting by the 2/
256 sec and 3/256 sec intervals.
The 1/10 sec counter (SWD4–SWD7) generates a 1
Hz signal by counting the approximate 10 Hz
signal generated by the 1/100 sec counter at 25/256
sec and 26/256 sec intervals in 4:6 ratios.
The count-up is made approximately 1/10 sec
counting by 25/256 sec and 26/256 sec intervals.
5.9.2 Count up pattern
The stopwatch timer is respectively composed of the
4-bit BCD counters SWD0–SWD3 and SWD4–SWD7.
Data bus
Interrupt
request
Divider
256 Hz
Stopwatch timer reset
SWRUN
Stopwatch timer
SWD0–SWD7
1 Hz
SWRST
OSC1
oscillation
circuit
f
OSC1
Stopwatch timer Run/Stop
Approximate 100 Hz
Approximate 10 Hz
Feedback
deviding circuit
Interrupt
control
circuit
1/100sec
4-bit BCD counter
1/10sec
4-bit BCD counter
Fig. 5.9.1.1
Configuration of
stopwatch timer
1/10 sec counter count-up pattern
26
256
0
26
256
1
25
256
2
25
256
3
26
256
4
26
256
5
25
256
6
25
256
7
26
256
8
26
256
9
0
Count value
Count clock
(Approximate 10 Hz signal)
Count time
(sec)
3
256
0
2
256
1
3
256
2
2
256
3
3
256
4
2
256
5
3
256
6
2
256
7
3
256
8
2
256
9
0
Count value
Count clock
(256 Hz)
Count time
(sec)
3
256
0
3
256
1
3
256
2
2
256
3
3
256
4
2
256
5
3
256
6
2
256
7
3
256
8
2
256
9
0
Count value
Count clock
(256 Hz)
Count time
(sec)
25
256
26
256
sec
sec
1/100 sec counter count-up pattern 1
Approximate 10 Hz signal
1/100 sec counter count-up pattern 2
Approximate 10 Hz signal
1 Hz signal
26
256
x 6 +
25
256
x 4 = 1 sec
Fig. 5.9.2.1
Count-up pattern of stopwatch timer
Summary of Contents for 0C88832
Page 6: ......