Module 3 MP Microprocessor Notehelpfull For Quick Study Important Topics Are Discussed
Module 3 MP Microprocessor Notehelpfull For Quick Study Important Topics Are Discussed
Module III
Interrupt Mechanism of x86 & interfacing of chips
Interrupts and it's need
⚫ Interrupts are useful for efficient data transfer between processor and peripheral
⚫ When a peripheral is ready for data transfer it interrupts the processor by sending
interrupts signal
⚫ On receiving interrupts signal, the processor suspends the current program execution,
save the status in stack and execute I.S.R(Interrupts Service routine)
⚫ At the end of ISR the processor status is restored from stack and processor restores it's
normal operation
There are 3 sources of interrupts
⚫ i) Hardware interrupts applied through INTR and NMI pins
⚫ ii) Software interrupts provided using 'INT n' instructions
⚫ iii)Interrupts produced due to certain conditions in 8086 while executing an instruction
for eg:Divide by '0' if we made an attempt to divide operand by zero the program
execution is automatically interrupted.Such conditional interrupts are called exceptions.
Classification of InterruptsGenerally classified in to 3 types :-
⚫ i) Hardware and software interrupts
⚫ ii) Vectored and non-vectored interrupts
⚫ iii)Maskable and Non-maskable interrupts
Hardware Interrupts:Interrupts initiated by external hardware by sending
appropriate signals to the interrupt pin
8086 has two interrupt pins , INTR & NMI
Software Interrupts
➔ Software interrupts are program instructions
➔ These interrupts are inserted at desired location in program (INT instructions)
➔ 8086 has 256 types of software interrupts (ranging from 0 to 255)
➔ All 256 types of interrupts including predefined interrupts can be inserted using 'INT
n' instruction
Vectored Interrupt
⚫ When an interrupt signal is received by the processor,if the program automatically
transfers to predefined specific address then the interrupt is called vectored interrupt
⚫ Predefined address in which ISR is stored is called vector address
INTEL 8259
INTEL 8259 is a Programmable Interrupt Controller
➔ It is used to expand the interrupts of 8085/8086
Features of 8259
➔ 8259 is available in 28 pin D.I.P
➔ 8259 can be programmed to work with 8086 or 8085
➔ One 8259 can accepts eight interrupt request and allow 1 by 1 to the processor
➔ The priorities of interrupts are programmable
➔ 8259 can provide the status of pending interrupts,masked interrupts and interrupts
being served
➔ 8259 can operate in cascade mode and can accept a maximum of 64 interrupts
➔ 8259 can be programmed to accept level triggered or edge triggered interrupts
➔ Port C pins are used for handshake signals (each ports uses 3 pins of port c) iii) Mode-
2
➔ Port A will be a bidirectional port (ie both read and write operation is possible)
➔ Only Port A can be programmed in mode-2
➔ 5 pins of Port C is used for handshake signals
➔ Port B remains in either Mode-0 or mode-1
iii) Mode-2
o Port A will be a bidirectional port (ie both read and write operation is possible)
o Only Port A can be programmed in mode-2
o 5 pins of Port C is used for handshake signals
o Port B remains in either Mode-0 or mode-
Block Diagram of 8255
While INTEL'S 8279 can simultaneously drive keyboard and display ,thus cpu
becomes free for its routine task