
S1C6N3B0 TECHNICAL MANUAL
EPSON
41
CHAPTER 4: PERIPHERAL CIARCUITS AND OPERATION (Stopwatch Timer)
SWL generates an approximate 10 Hz signal from the 256 Hz based signal. The count-up intervals are 2/
256 sec and 3/256 sec, so that two final patterns are generated: a 25/256 sec interval and a 26/256 sec
interval. Consequently, the count-up intervals are 2/256 sec and 3/256 sec, which do not amount to an
accurate 1/100 sec. SWH counts the approximate 10 Hz signals generated by the 25/256 sec and 26/256
sec intervals in the ratio of 4:6 to generate a l Hz signal. The count-up intervals are 25/256 sec and 26/256
sec, which do not amount to an accurate 1/10 sec.
4.8.3 Interrupt function
The 10 Hz (approximate 10 Hz) and 1 Hz interrupts can be generated by the overflow of the SWL and
SWH stopwatch timers, respectively. Also, software can separately mask the frequencies as described
earlier.
Figure 4.8.3.1 is the timing chart for the stopwatch timer.
Address
Adress
Register
Stopwatch timer (SWL) timing chart
Stopwatch timer (SWH) timing chart
10 Hz interrupt request
1 Hz interrupt request
0E3H
(1/10 sec BCD)
0E2H
(1/100 sec BCD)
D0
D1
D2
D3
D0
D1
D2
D3
Fig. 4.8.3.1 Timing chart for stopwatch timer
As shown in Figure 4.8.3.1, the interrupts are generated by the overflow of the respective timers ("9"
changing to "0"). Also at this point, the corresponding interrupt factor flags (ISW0, ISW1) are set to "1".
The respective interrupts can be masked separately with the interrupt mask registers (EISW0, EISW1).
However, regardless of the setting of the interrupt mask registers, the interrupt factor flags are set to "1"
by the overflow of the corresponding timers.