17.05.2015 Views

80C186EB 80C188EB Users Manual 1990 - Al Kossow's Bitsavers

80C186EB 80C188EB Users Manual 1990 - Al Kossow's Bitsavers

80C186EB 80C188EB Users Manual 1990 - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INTERRUPTS<br />

$mod1llb<br />

name<br />

This routine configures the interrupt controller to provide two cascaded<br />

interrupt inputs (through an external 1l259A internal controller on<br />

pins INTO and INT2/INTAO) and two direct interrupt inputs (on pins INT1<br />

and<br />

INT3). The default priority levels are used. Because of this, the<br />

priority level programmed into the control register is set to 111, the<br />

level all interrupts assu,me at reset.<br />

,<br />

IOCON<br />

equ OFF11lH<br />

IMASK<br />

equ OFFOIlH<br />

code<br />

set int<br />

code<br />

segment<br />

assume CS: code<br />

proc near<br />

push DX<br />

push AX<br />

mov<br />

mov<br />

out<br />

mov<br />

mov<br />

out<br />

pop<br />

pop<br />

ret<br />

endp<br />

ends<br />

end<br />

AX,010D111B<br />

DX,IOCON<br />

DX,AX<br />

AX,D10D1101B<br />

DX,IMASK<br />

DX,AX<br />

AX<br />

DX<br />

; public 'code'<br />

; Cascade Mode<br />

; interrupt unmasked<br />

; now unmask the other external<br />

; interrupts<br />

Figure 9.18. Example <strong>80C186EB</strong> Family Interrupt Initialization for Master Mode<br />

9.5 INTERRUPT CONTROLLER FLOW CHARTS<br />

Figure 9.19 shows an interrupt request generation flow chart and Figure 9.20 shows an interrupt<br />

acknowledge sequence flow chart. Each interrupt source processed by an <strong>80C186EB</strong> family integrated<br />

Interrupt Controller follows each flow chart independently.<br />

9-28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!