Application Examples
;***********************************************************
;*
*
;*
INTERRUPT HANDLERS
*
;*
*
;***********************************************************
;
; ONLY ONE SERIAL INTERRUPT HANDLER IS ILLUSTRATED.
OTHER
;
HANDLERS CAN BE ADDED HERE AS NEEDED.
;
CODE
SEGMENT
PARA
;
ASSUME
CS:CODE,SS:STACK,DS:DATA,ES:NOTHING
;
SERIAL_8250
PROC
; THIS PROCEDURE HANDLES INTERRUPTS GENERATED BY THE
;
8259A PIC ON THE ZT 8840.
THE INT_FLAG LOCATION
;
WILL RECORD THAT THE INTERRUPT WAS RECEIVED WITH
;
A ZERO VALUE. IT IS ASSUMED THE FLAG IS INITIALLY 0FFH.
;
; INPUTS:
NONE
; OUTPUTS:
INT_FLAG - 0H
; CALLS:
NONE
; DESTROYS:
NONE
;
PUSH
AX
PUSH
DX
MOV
INT_FLAG,0
; RECORD THAT THE INT WAS RECV’D
MOV
AL,0
PUT
UART1+PORT_INTEN ; DISABLE FURTHER INTERRUPTS
MOV
AL,OCW2_8809A
; SEND EOI’S
PUT
PORT_A_8809A
MOV
AL,OCW2_8840
MOV
DX,PORT_A_8840
OUT
DX,AL
POP
DX
POP
AX
IRET
SERIAL_8250
ENDP
;
4-22
Содержание 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...