Interrupt of 8086 microprocessor_4
Interrupt of 8086 microprocessor_4
· The control outputs produced by the 8288 are DEN, DT/R and ALE. These 3
signals provide the same functions as those described for the minimum system mode.
· This set of bus commands and control signals is compatible with the Multibus
and industry standard for interfacing microprocessor systems.
· The output of 8289 are bus arbitration signals:
Bus busy (BUSY), common bus request (CBRQ), bus priority out (BPRO), bus priority
in (BPRN), bus request (BREQ) and bus clock (BCLK).
· They correspond to the bus exchange signals of the Multibus and are used to lock
other processor off the system bus during the execution of an instruction by the 8086.
· In this way the processor can be assured of uninterrupted access to common
system resources such as global memory.
· Queue Status Signals: Two new signals that are produced by the 8086 in the
maximum- mode system are queue status outputs QS0 and QS1. Together they form
a 2-bit queue status code, QS1QS0.
· Following table shows the four different queue status.
· . These two are replaced by request/grant lines RQ/ GT0 and RQ/ GT1,
respectively. They provide a prioritized bus access mechanism for accessing the local
bus.
Interrupts
Definition: The meaning of ‘interrupts’ is to break the sequence of operation. While the CPU
is executing a program, on ‘interrupt’ breaks the normal sequence of execution of
instructions, diverts its execution to some other program called Interrupt Service Routine
(ISR).After executing ISR , the control is transferred back again to the main program.
Interrupt processing is an alternative to polling.
Need for Interrupt: Interrupts are particularly useful when interfacing I/O devices that
provide or require data at relatively low data transfer rate.
Types of Interrupts: There are two types of Interrupts in 8086. They
are: (i)Hardware Interrupts and
(ii)Software Interrupts
· When an interrupt occurs, the processor stores FLAGS register into stack, disables
further interrupts, fetches from the bus one byte representing interrupt type, and jumps
to interrupt processing routine address of which is stored in location 4 * <interrupt
type>. Interrupt processing routine should return with the IRET instruction.
(ii) Software Interrupts (Internal Interrupts and Instructions) .Software interrupts can be
caused by:
· INT instruction - breakpoint interrupt. This is a type 3 interrupt.
· INT <interrupt number> instruction - any one interrupt from available 256 interrupts.
· INTO instruction - interrupt on overflow
· Single-step interrupt - generated if the TF flag is set. This is a type 1 interrupt. When
the CPU processes this interrupt it clears TF flag before calling the interrupt
processing routine.
· Processor exceptions: Divide Error (Type 0), Unused Opcode (type 6) and Escape
opcode (type 7).
· When ever NMI pin of the 8086 is activated by a high signal (5v), the CPU Jumps
to physical memory location 00008 to fetch CS:IP of the ISR associated with NMI.
· A break point is used to examine the CPU and memory after the execution of a group
of Instructions.
· It is one byte instruction whereas other instructions of the form “INT nn” are 2
byte instructions.
· If INT 0 is placed after a signed number arithmetic as IMUL or ADD the CPU
will activate INT 04 if 0F = 1.
· In case where 0F = 0, the INT 0 is not executed but is bypassed and acts as a NOP.