Specifications
S1C62N82 TECHNICAL SOFTWARE EPSON II-45
CHAPTER 3: PERIPHERAL CIRCUITS (Stopwatch Timer)
• Initializing the stopwatch timer
Label Mnemonic/operand Comment
LD Y,0F9H ;Set address of the SWRST register
OR MY,0001B ;Reset the stopwatch timer
The two instruction steps above reset the stopwatch timer.
(SWL3 to SWL0, SWH3 to SWH0 are all cleared to "0".)
The stopwatch timer is reset by setting "1" in the SWRST register.
However, the SWRST register is cleared to "0" by hardware 1
clock after it is set to "1".
• Starting the stopwatch timer
Label Mnemonic/operand Comment
LD Y,0F9H ;Set address of SWRUN register
OR MY,0010B ;Start the stopwatch timer
The two instruction steps above run the stopwatch timer of
SWL0 to SWL3, and SWH0 to SWH3 (addresses 0E2H and
0E3H, respectively).
• Stopping the stopwatch timer
Label Mnemonic/operand Comment
LD Y,0F9H ;Set address of SWRUN register
AND MY,1101B ;Stop the stopwatch timer
The two instruction steps above stop the stopwatch timer of
SWL0 to SWL3, and SWH0 to SWH3 (addresses 0E2H and
0E3H, respectively).
Note
Examples of stop-
watch timer control
program