Example Of Program For Event Counter - Epson S1C6S3N2 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 5: PERIPHERAL CIRCUITS (Event Counter)
Example of program
for event counter
(1) Resetting, starting, and stopping the event counter
Specifications
Program
II-98
EVRST: Event counter reset (0FCH.D0)
This it the register for resetting the event counter.
When "1" is written:
When "0" is written:
Read-out:
Controlling procedure for the initial start, stop, start, and
reset of the event counter is sequentially indicated.
LD
X,0FCH
LD
MX,0101B
;
LD
X,0FCH
LD
MX,0000B
;
LD
X,0FCH
LD
MX,0100B
;
LD
X,0FCH
LD
MX,0001B
EPSON
Event counter reset
No operation
Always "0"
;
Initial start event counter
;
;
Stop event counter
;
;
Start event counter
;
;
Reset event counter
;
S1C6S3N2 TECHNICAL SOFTWARE

Advertisement

Table of Contents
loading

Table of Contents