Epson S1C6200A Specifikace Strana 208

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 249
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 207
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.
Zobrazit stránku 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 248 249

Komentáře k této Příručce

Žádné komentáře