II-38
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (SVD Circuit and Heavy Load Protection Function)
HLBZ10:
LD
X,76H
;
Set the heavy losd protection mode
OR
MX,1000B
;
LD
Y,7CH
;
Switch BZ ON
OR
MY,1000B
;
;
CALL
ST10MS
;
10 msec soft timer call
;
AND
MY,0111B
;
Switch BZ OFF
AND
MX,0111B
;
Release the heavy load protection mode
;
;
ST10MS:
LD
A,0H
;
10 msec soft timer subroutine
RDF
;
Reset the decimal flag
ST10MS1: NOP7
;
Loop for 10 msec
ADD
A,0FH
;
(7+7+5) clock
×
16
JP
NZ,ST10MS1
;
RET
;
Program
Note
The heavy load protection mode can be released immediately
after driving the heavy load (BZ output).
To reduce current consumption, release the heavy load
protection mode unless otherwise necessary.
(1) It takes 100 µs from the time the SVD circuit goes ON
until a stable result is obtained. For this reason, keep
the following software notes in mind:
➀
When the CPU system clock is f
OSC1
1. When detection is done at HLMOD
After writing "1" on HLMOD, read the BLD after 1
instruction has passed.
2. When detection is done at BLS
After writing "1" on BLS, write "0" after at least 100
µs has lapsed (the following instruction can write
"0" because the instruction cycle is long enough)
and then read the BLD.
Programming notes
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......