S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-63
CHAPTER 5: PERIPHERAL CIRCUITS (Clock Timer)
Interrupt is generated at the falling edge of the frequencies
(32 Hz, 8 Hz, 2 Hz). At this time, the corresponding inter-
rupt factor flag (TI32, TI8, TI2) is set to "1".
Clock timer timing
chart
Fig. 5.6.4
Timing chart of
the clock timer
Clock timer timing chart
Frequency
Register
Address
070H
D0
16 Hz
D1
D2
D3
8 Hz
4 Hz
2 Hz
32 Hz interrupt request
8 Hz interrupt request
2 Hz interrupt request
(1) Initializing clock timer and setting interrupt mask register (2 Hz)
This program resets the clock timer after enabling the timer
2 Hz interrupt only.
DI
;
LD
X,78H
;
LD
MX,0100B
;
LD
X,7EH
;
OR
MX,1000B
;
LD
X,79H
;
FAN
MX,0111B
;
EI
;
Disable interrupts
Enable timer 2 Hz interrupt, and mask all others
Reset clock timer
Reset the timer interrupt factor flags
Enable interrupt
Example of using
timer interrupt
Specifications
Program
Note
The generated timer interrupt factor flag is also reset
through the clock timer being reset.
Summary of Contents for S1C6S3N2
Page 4: ......
Page 6: ......
Page 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Page 8: ......
Page 141: ...Software Software S1C6S3N2 II Technical Software ...
Page 142: ......
Page 146: ......