Example Of Program For Stopwatch Counter - Epson S1C6S3N2 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 5: PERIPHERAL CIRCUITS (Stopwatch Counter)
Example of program
for stopwatch coun-
ter
(1) Resetting, starting and stopping the stopwatch counter
Specifications
Program
;
;
;
Notes
II-88
SWRST: Stopwatch counter reset (07EH.D1)
This bit resets the stopwatch counter.
When "1" is written:
When "0" is written:
Read-out:
Controlling procedure for the initial start, stop, start, and
reset of the stopwatch counter is sequentially indicated.
LD
X,7EH
OR
MX,0110B
LD
X,7EH
OR
MX,0010B
LD
X,7EH
AND
MX,1011B
LD
X,7EH
OR
MX,0100B
1. Resetting the stopwatch counter does not affect the clock
timer.
2. When the stopwatch counter is reset in RUN status,
operation restarts immediately. Also, in STOP status the
reset data is maintained.
3. In STOP status, the counter data is maintained until
reset or next RUN status occurs. Also, when STOP status
changes to RUN status, the data that was maintained can
be used for resuming the count.
EPSON
Stopwatch counter reset
No operation
Always "0"
;
Initial start the stopwatch counter
;
;
Reset the stopwatch counter
;
;
Stop the stopwatch counter
;
;
Restart the stopwatch counter
;
S1C6S3N2 TECHNICAL SOFTWARE

Advertisement

Table of Contents
loading

Table of Contents