S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-89
CHAPTER 5: PERIPHERAL CIRCUITS (Stopwatch Counter)
(2) Reading to the stopwatch counter
This program reads the stopwatch counter's 1/100 sec data
to A register and the 1/10 sec data to B register.
A register
B register
D3
D2
D1
D0
D3
D2
D1
D0
SWL3 SWL2 SWL1 SWL0
SWH3 SWH2 SWH1 SWH0
LD
X,71H
;
LD
Y,7EH
;
AND
MY,1011B
;
;
LDPX
A,MX
;
LD
B,MX
;
;
OR
MY,0100B
;
Preparation: Store SWL address in X register
Stop the stopwatch counter
Load SWL data into A register
Load SWH data into B register
Restart the stopwatch counter
To prevent erroneous reading during carry from the stop-
watch counter's low order column (SWL) to the high order
column (SWH), the stopwatch counter is stopped during
read.
The duration of the stop status must be within 976 µs (256
Hz 1/4 cycle).
Fig. 5.9.1
Correspondence between
stopwatch counter and
general-purpose register
Program
Note
Specifications
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......