Specifications

II-46 EPSON S1C62N82 TECHNICAL SOFTWARE
CHAPTER 3: PERIPHERAL CIRCUITS (Stopwatch Timer)
• Loading the stopwatch timer
Label Mnemonic/operand Comment
LD Y,0E2H ;Set address of the SWL of
;the stopwatch
LDPY A,MY ;Read the data of SWL0 to SWL3
;into A register
LD B,MY ;Read the data of SWH0 to SWH3
;into B register
The three instruction steps above reads the contents of the
stopwatch timer into A register and B register. (Also see
Table 3.8.2.)
Table 3.8.2
Data load into A register
and B register
SWH3 SWH2 SWH1 SWH0
B register
SWL3 SWL2 SWL1 SWL0
A register
D3 D2 D1 D0
A read-in error caused by a carry from the SWL is not taken into
account in this program. You are recommended to add a handling
routine in your application.
Note