Application Examples
;***********************************************************
;*
*
;*
PROCEDURES
*
;*
*
;***********************************************************
;
;
INIT_PIC_8809A
PROC
;
; THIS PROCEDURE IS CALLED TO INITIALIZE THE 8259A PIC.
;
THE PIC IS INITIALIZED TO: SINGLE MODE, EDGE TRIG-
;
GERED, INTERRUPT TYPES 8 - 15 D FOR IRQS 0-7 RE-
;
SPECTIVELY, 8088 MODE, NORMAL (NON-SPECIFIC) END-
;
OF-INTERRUPT, IRQ LINES 0-7 ENABLED.
MOV
DX,PORT_A_8809A ; ADDRESS THE FIRST BYTE
MOV
AL,ICW1_8809A
; WRITE 1ST ICW
OUT
DX,AL
; OUTPUT 1ST ICW
MOV
DX,PORT_B_8809A
MOV
AL,ICW2_8809A
OUT
DX,AL
; WRITE 2ND ICW
MOV
AL,ICW3_8809A
OUT
DX,AL
; WRITE 3RD ICW
MOV
AL,ICW4_8809A
; WRITE 4TH ICW
OUT
DX,AL
; OUTPUT 4TH ICW
MOV
AL,OCW1_8809A
; WRITE OCW1
OUT
DX,AL
; OUTPUT MASK
RET
INIT_PIC_8809A
ENDP
;
INIT_PIC_8840
PROC
;
; THIS PROCEDURE IS CALLED TO INITIALIZE THE 8259A PIC ON
;
THE ZT 8840. THE PIC IS INITIALIZED TO: SINGLE MODE, EDGE
;
TRIGGERED, INTERRUPT TYPES 8 - 15 D FOR IRQS 0-7 RE-
;
SPECTIVELY, 8088 MODE, NORMAL (NON-SPECIFIC) END-
;
OF-INTERRUPT, IRQ LINES 0-7 ENABLED.
;
MOV
DX,PORT_A_8840
; ADDRESS THE FIRST BYTE
MOV
AL,ICW1_8840
; WRITE 1ST ICW
OUT
DX,AL
; OUTPUT 1ST ICW
MOV
DX,PORT_B_8840
MOV
AL,ICW2_8840
OUT
DX,AL
; WRITE 2ND ICW
MOV
AL,ICW3_8840
OUT
DX,AL
; WRITE 3RD ICW
MOV
AL,ICW4_8840
; WRITE 4TH ICW
OUT
DX,AL
; OUTPUT 4TH ICW
MOV
AL,OCW1_8840
; WRITE OCW1
OUT
DX,AL
; OUTPUT MASK
RET
INIT_PIC_8840
ENDP
;
4-23
Содержание ZT 8809A
Страница 15: ...Tables Table B 9 J5 Pin Assignments B 17 Table B 10 J6 Pin Assignments B 18 Table B 11 J7 Pin Assignments B 19...
Страница 334: ...Jumper Configurations W49 W48 A W47 B A B W37 W66 A W50 B C J7 W67 Figure A 11 W37 W47 50 W66 W67 Jumper Blocks A 34...
Страница 346: ...Jumper Configurations W61 W60 W62 W63 W64 A B A B W65 Figure A 13 W60 W65 Jumper Block A 46...