Specifications

Table Of Contents
II-56 EPSON S1C62740 TECHNICAL SOFTWARE
CHAPTER 6: PERIPHERAL CIRCUITS (Amplifier)
Example program
for the amplifier
circuit
Following program shows the amplifier controlling procedure.
Label Mnemonic/operand Comment
;*
;* AMPLIFIER 0 & 1
;* (THIS EXAMPLE ONLY SHOW AMP 0 CONTROL,
;* THE WAY TO CONTROL AMP 1 IS THE SAME WITH AMP 0)
;
ZAMPON EQU 0F1H ;AMP 0 & 1 ON/OFF CONTROL REGISTER
ZAMPDT EQU 0F2H ;AMP 0 & 1 OUTPUT DATA
;
LD X,ZAMPON
OR MX,0001B ;SET AMP 0 ON
;
LD A,0EH
LOOP:
ADD A,0FH
JP NZ,LOOP
LD Y,ZAMPDT ;READ AMP 0 DATA INTO A REGISTER
LD A,MY
AND MX,1110B ;TURN OFF AMP 0
;
Programming notes
(1) It takes about 3 msec for the AMP0 or AMP1 output becomes
stable when the circuit is turned on. Therefore, the program
must include a wait time of at least 3 msec before the output
data is loaded after the AMP1 or AMP0 circuit has been turned
on.
(2) The AMPDT1(0) is undefined when the AMPP1(0) or AMPM1(0)
is disconnected, and is "0" when AMPON1(0) is "0".
After an initial reset, this bit is set to "0".
(3) To reduce current consumption, set the AMP circuit to OFF
when it is not necessary.