II-60
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Clock Timer)
(3) Detecting the edge of the clock timer
This subroutine, "TMEDG", detects the edge of the timer
data, and executes the 4 Hz processing routine "TM4" if the
2 Hz edge is detected.
XTMDT2
EQU
0100B
;
YTMDTB
EQU
●
●
×
H
;
;
;
TMEDG:
LD
X,70H
;
LD
Y,TMDTBF
;
XOR
MY,MX
;
FAN
MY,XTMDT2
;
JP
Z,TMEDGRT
;
CALL
TM4
;
;
TMEDGRT:
RET
;
Timer data 2 Hz
Address of timer data buffer
Detect change (edge) in timer data
If 2 Hz edge
then
execute 4 Hz processing "TM4"
Return to parent routine
The processing routine for frequencies not set in the clock
timer interrupt can be executed by repeatedly calling this
subroutine at high frequency.
Program
Specifications
Fig. 5.6.2
Timing chart
TM2
Time
125 msec
n sec
(n+1) sec
"1"
"0"
Timeing for executing "TM4"
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......