Examples Of Heavy Load Protection Function Control Program - Epson E0C6001 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

E0C6001 TECHNICAL SOFTWARE
Examples of heavy
load protection
function control
program
II-38
• Operation through the HLMOD register
This is a sample program when lamp is driven with the
R00 terminal during performance of heavy load protec-
tion.
Label
Mnemonic/operand
LD
X,0FAH
OR
MX,1000B
LD
Y,0F3H
OR
MY,0001B
:
:
LD
Y,0F3H
AND
MY,1110B
CALL
WT1S
AND
MX,0111B
In the above program, the heavy load protection mode is
canceled after 1 sec waiting time provided as the time for
the battery voltage to stabilize after the lamp is turned
off; however, since this time varies according to the
nature of the battery, time setting must be done in accor-
dance with the actual application.
Comment
;
Sets the address of HLMOD
;
Sets to the heavy protection mode
;
Sets the address of R0n port
;
Turns lamp ON
;
Sets the R0n port address
;
Turns the lamp OFF
;
1 second waiting time (software timer)
;
Cancels the heavy load protection mode

Advertisement

Table of Contents
loading

Table of Contents