II-30
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (SVD Circuit and Heavy Load Protection Function)
XTISF
EQU
0001B
;
YFTM
EQU
◆ ◆
◆ ◆
H
;
;
;
TI2:
LD
X,YFTM
;
FAN
MX,XTISF
;
JP
NZ,TI21
;
;
OR
MX,XTISF
;
LD
X,76H
;
OR
MX,0100B
;
AND
MX,1011B
;
FAN
MX,0100B
;
JP
Z,TI2RT
;
CALL
DSBLD
;
;
TI2RT: RET
;
TI21:
AND
MX,XTISF XOR 0FH ;
CALL
CK
;
;
RET
;
0.5-sec flag (TISF)
Address for timing flag set
TISF = "0" or "1"?
TISF = "0": Set the TIS flag
Detect: BLS ON
BLS OFF
If result is "1" (low voltage)
then
execute display routine "DSBLD"
Return to parent routine
TISF = "1": Reset the TIS flag
Execute the basic timer "CK"
Return to parent routine
Program
The address for the timing flag set FTM can be set anywhere
in RAM.
This routine assumes that a timer subroutine has been
prepared separately to make 1 second the unit for the rou-
tine "basic timer 'CK'".
(See page 63, "Example of using timer interrupt" for how to
make "basic timer 'CK'".)
Timing chart of SVD operation
0.5 sec
SVD circuit
HLMOD circuit
BLD register
BLS register
Source voltage
1 sec
Criteria voltage
(1.2 V)
Fig. 5.3.2
Timing chart of
SVD operation
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: ......