Intel 80C188EC User Manual page 259

Hide thumbs Also See for 80C188EC:
Table of Contents

Advertisement

INTERRUPT CONTROL UNIT
;The following is a template for an interrupt handler for the 80C186EC/C188EC:
INT_HNDLERS SEGMENT
ASSUME CS:INT_HNDLRS
TIM0_HANDLER PROC FAR
STI
;Handler code would be inserted here.
MOV
MOV
OUT
MOV
MOV
OUT
MOV
MOV
OUT
IRET
TIM0_HANDLER ENDP
INT_HNDLRS
ENDS
Example 8-2. Template for a Simple Interrupt Handler
8-50
DX, TIMIRL
AX, 0100H
DX, AL
DX, MPICP0
AX, 20H
DX, AL
DX, SPICP0
AX, 20H
DX, AL
;Necessary to nest interrupts
;Need to clear IR for
;TIMER 0 (MSK0=1, TIR0=0)
;Request is now deasserted
;EOI command to OCW2
;Non-specific EOI
;Send master
EOI
;EOI command to OCW2
;Non-specific EOI
;Send slave EOI
;Return to main task

Advertisement

Table of Contents
loading

This manual is also suitable for:

80c186ec

Table of Contents