[INTEL NAVIGATION HEADER]

80186 ICU Initialization for 2 Cascaded Interrupt Inputs

$mod186
name example_80186_ICU_initialization
;
; This routine configures the interrupt controller to provide
; two cascaded interrupt inputs (through an external 8259A
; connected to INT0 and INTA0#) and two direct interrupt inputs
; connected to INT1 and INT3. The default priorities are used.
;
; The example assumes that the register addresses have been
; properly defined.
;
; (works for 80C186EX family of microcontrollers)

code segment
assume cs:code
set_int_ proc near
push dx

push ax
mov ax,0100111B :Cascade Mode
mov dx,I0CON ;INT0Control Register
out dx,ax
mov ax,01001101B ;Unmask INT1and INT3
mov dx,IMASK
out dx,ax
pop ax
pop dx
ret set_int_ endp
code ends
end



Legal Stuff © 1997 Intel Corporation

Free Web Hosting