Example Of Using Clock Timer - Epson S1C6S3N2 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

Example of using
clock timer
(1) Initializing clock timer
Specifications
Program
Notes
(2) Reading the clock timer
Specifications
Fig. 5.6.1
Correspondence between
clock timer and A register
Program
S1C6S3N2 TECHNICAL SOFTWARE
This program resets the clock timer.
LD
X,7EH
OR
MX,1000B
1. When the clock timer has been reset, the interrupt factor
flag (TI) may sometimes be set to "1".
2. The watchdog timer may be counted up at the clock timer
reset.
3. Resetting the clock timer does not affect the stopwatch
counter.
This program reads the clock timer data into A register.
D3
TM3
LD
X,70H
LD
A,MX
EPSON
CHAPTER 5: PERIPHERAL CIRCUITS (Clock Timer)
;
Reset the clock timer
;
A register
D2
D1
TM2
TM1
;
Load the clock timer data into A register
;
D0
TM0
II-59

Advertisement

Table of Contents
loading

Table of Contents