S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-31
CHAPTER 5: PERIPHERAL CIRCUITS (SVD Circuit and Heavy Load Protection Function)
(2) For OSC3 using HLMOD
When the CPU clock is OSC3, the supply voltage is detected
every second, just as for (1). However, the method of detec-
tion is through the ON and OFF status of HLMOD.
When the CPU clock is OSC3, detection must be performed
after switching the CPU clock to OSC1.
XTISF
EQU
0001B
;
YFTM
EQU
◆ ◆
◆ ◆
H
;
;
;
TI2:
LD
X,YFTM
;
FAN
MX,XTISF
;
JP
NZ,TI21
;
;
OR
MX,XTISF
;
LD
X,76H
;
LD
Y,0FEH
;
AND
MY,1011B
;
OR
MX,1000B
;
AND
MX,0011B
;
OR
MY,0100B
;
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: Preparation
Switch the CPU's operating clock OSC1
HLMOD ON
HLMOD OFF
Return the CPU's operating clock to OSC3
If the 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
BLS is fixed to "0" when the HLMOD is turnd OFF, because
BLS risides in the same bits at the same address as BLD,
and one or the other is selected by write or read operation.
Specifications
Program
Note
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......