SlideShare a Scribd company logo
1 of 5
Download to read offline
Impulse classes(Learn for perfection)
PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU
[MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun
Address:#902, 6th
‘A’ Main,1st
Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700
©copyright: subject matter to IMPULSE CLASSES, Bangalore-34
1. Explain the interrupt vector table in brief.
 An interrupt vector table that stores pointers to the associated interrupt handlers. This table is
located at base address zero.
 Each entry in this table consists of a CS:IP pointer to the associated ISRs .
 Each entry or vector requires four bytes:
» Two bytes for specifying CS
» Two bytes for the offset
 Up to 256 interrupts are supported (0 to 255)
 . These pointers identify the starting location of their service routines in program memory. The
contents of this table may be either held as firmware in EPROMs or loaded into RAM as part of
the system initialization routine.
 Type 0: Divide error – Division overflow or division by zero
 Type 1: Single step or Trap – After the execution of each instruction when trap flag set
 Type 2: NMI Hardware Interrupt – ‘1’ in the NMI pin
 Type 3: One-byte Interrupt – INT3 instruction (used for breakpoints)
 There is a program associated with every There is a program associated with every interrupt.
interrupt.
 When an interrupt is invoked, a CPU runs a When an interrupt is invoked, a CPU runs a program
for a service program for a service an interrupt service an interrupt service routine (ISR). routine
(ISR).
Impulse classes(Learn for perfection)
PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU
[MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun
Address:#902, 6th
‘A’ Main,1st
Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700
©copyright: subject matter to IMPULSE CLASSES, Bangalore-34
 The address of the interrupt service routine is The address of the interrupt service routine is
shown in the interrupt vector table. shown in the interrupt vector table.
 Four bytes of memory are allocated for every Four bytes of memory are allocated for every
interrupt. interrupt. ¾ The memory space of 1024 bytes (256x4=1024) The memory space of
1024 bytes (256x4=1024) are set aside for the interrupt vector table. are set aside for the
interrupt vector table.
2. Differentiate between memory mapped I/O and I/O mapped I/O.
Isolated I/O No. Memory Mapped I/O
Isolated I/O uses separate
memory space.
01 Memory mapped I/O uses
memory from the main memory.
Limited instructions can be
used. Those are IN, OUT, INS,
OUTS.
02 Any instruction which
references to memory can be
used.
The addresses for Isolated I/O
devices are called ports.
03 Memory mapped I/O devices
are treated as memory locations
on the memory map.
IORC & IOWC signals expands
the circuitry.
04 IORC & IOWC signals has no
functions in this case which
reduces the circuitry.
Efficient I/O operations due to
using separate bus
05 Inefficient I/O operations due to
using single bus for data and
addressing
Comparatively larger in size 06 Smaller in size
Uses complex internal logic 07 Common internal logic for memory
and I/O devices
Slower operations 08 Faster operations
3. Explain the operation of 8259, with near block diagram.
The 8259 A has eight interrupt request inputs, TR2 IR0. The 8259 A uses its INT output to
interrupt the 8085A via INTR pin. The 8259A receives interrupt acknowledge pulses from the at
its input. Vector address used by the 8085 A to transfer control to the service subroutine of the
interrupting device, is provided by the 8259 A on the data bus. The 8259A is a programmable
device that must be initialized by command words sent by the.
Impulse classes(Learn for perfection)
PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU
[MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun
Address:#902, 6th
‘A’ Main,1st
Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700
©copyright: subject matter to IMPULSE CLASSES, Bangalore-34
Data bus buffer: This 3- state, bidirectional 8-bit buffer is used to interface the 8259A to the
system data bus. Control words and status information are transferred through the data bus buffer.
Read/Write & control logic: The function of this block is to accept OUTPUT commands from the
CPU. It contains the initialization command word (ICW) register and operation command word
(OCW) register which store the various control formats for device operation. This function block
also allows the status of 8159A to be transferred to the data bus.
Interrupt request register (IRR): IRR stores all the interrupt inputs that are requesting service.
Basically, it keeps track of which interrupt inputs are asking for service. If an interrupt input is
unmasked, and has an interrupt signal on it, then the corresponding bit in the IRR will be set.
Interrupt mask register (IMR): The IMR is used to disable (Mask) or enable (Unmask) individual
interrupt inputs. Each bit in this register corresponds to the interrupt input with the same number.
service register (ISR): The in service registers keeps tracks of which interrupt inputs are currently
being serviced. For each input that is currently being serviced the corresponding bit will be set in
the in service register.
Cascade buffer/comparator: This function blocks stores and compare the IDS of all 8259A’s in
the reg. The associated 3-I/O pins (CAS0-CAS2) are outputs when 8259A is used a master.
Impulse classes(Learn for perfection)
PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU
[MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun
Address:#902, 6th
‘A’ Main,1st
Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700
©copyright: subject matter to IMPULSE CLASSES, Bangalore-34
4. What is DMA ? briefly explain the two different DMA operation.
 A direct memory access (DMA) is an operation in which data is copied (transported) from
one resource to another resource in a computer system without the involvement of the CPU.
 The task of a DMA-controller (DMAC) is to execute the copy operation of data from one
resource location to another.
 The copy of data can be performed from: - I/O-device to memory - memory to I/O-device
- memory to memory - I/O-device to I/O-device.
 A DMAC is an independent (from CPU) resource of a computer system added for the
concurrent execution of DMA-operations. The first two operation modes are ’read from’
and ’write to’ transfers of an I/O-device to the main memory, which are the common
operation of a DMA-controller.
 operating modes exist for DMACs. The simplest one is the single block transfer copying a block of
data from a device to memory.
 single block transfer - chained block transfers - linked block transfers - fly-by transfers All these
operations normally access the block of data in a linear sequence. Nevertheless, there are more
usefull access functions possible, as there are: constant stride, constant stride with offset,
incremental stride.
 The DMAC increments the memory block address and continue with this loop until the block
length is reached. The completion of the DMAoperation is signaled to the processor by sending
an IRQ signal or by setting a memory semaphore variable, which can be tested by the CPU.
>>multiple channels physical addressing,
>>address translation snooping for cache coherency.
 DMA control signals (REQ, ACK) are used to signal the availability of values in the I/Odevice for
transportation.
Impulse classes(Learn for perfection)
PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU
[MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun
Address:#902, 6th
‘A’ Main,1st
Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700
©copyright: subject matter to IMPULSE CLASSES, Bangalore-34
5. Explain the hardware and software interrupt.
The primary sources of interrupts, however, are the PCs timer chip, keyboard, serial ports,
parallel ports, disk drives, CMOS real-time clock, mouse, sound cards, and other peripheral
devices.
MASKABLE INTERRUPT
 Whenever an external signal activates the INTR pin, the microprocessor will be interrupted only if
interrupts are enabled using set interrupt Flag instruction. If the interrupts are disabled using clear
interrupt Flag instruction, the microprocessor will not get interrupted even if INTR is activated.
That is, INTR can be masked.
 Hardware pins that request interrupt (INTR & NMI) and one hardware pin (INTA) that
acknowledges the interrupt requested through INTA.
NON-MASKABLE INTERRUPT (NMI)
 The processor provides a single non-maskable interrupt pin (NMI) which has higher priority than
the maskable interrupt request pin (INTR). A typical use would be to activate a power failure
routine. The NMI is edgetriggered on a LOW-to-HIGH transition. The activation of this pin causes
a type 2 interrupt. NMI is required to have a duration in the HIGH state of greater than two CLK
cycles, but is not required to be synchronized to the clock.
. Software interrupt Instructions
There are instructions in 8086 which cause an interrupt. They are
 INT instructions: INT instruction calls the interrupts service procedures that begins at address
represented in vector number
INTO: INTO instruction checks the overflow flag (OF), if OF =1, the instruction calls the
procedure whose address is stored in interrupt vector type number 4.
INT3: INT3 instruction is often used as a breakpoint interrupt because it is easy to
insert a 1-byte instruction into a program, breakpoints are often used to debug faulty
software.

More Related Content

What's hot

Types of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptTypes of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptsanjaytron
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085ShivamSood22
 
ARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionanand hd
 
Low power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating techniqueLow power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating techniqueVLSICS Design
 
Design and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitDesign and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitIOSR Journals
 
UNIT-II CPLD & FPGA Architectures and Applications
UNIT-II CPLD & FPGA  Architectures   and ApplicationsUNIT-II CPLD & FPGA  Architectures   and Applications
UNIT-II CPLD & FPGA Architectures and ApplicationsDr.YNM
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsRam Babu
 
Interrupt11
Interrupt11Interrupt11
Interrupt11Aisu
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsPallavi Bharti
 
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...IRJET Journal
 
UNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONS
UNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONSUNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONS
UNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONSDr.YNM
 
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware DesignPramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware DesignPramod Jangam
 
training report on embedded system and AVR
training report on embedded system and AVRtraining report on embedded system and AVR
training report on embedded system and AVRUrvashi Khandelwal
 

What's hot (20)

Interrupt
InterruptInterrupt
Interrupt
 
Types of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptTypes of Interrupts with details Mi ppt
Types of Interrupts with details Mi ppt
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
ARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introduction
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts
InterruptsInterrupts
Interrupts
 
Low power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating techniqueLow power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating technique
 
Training report on embedded sys_AVR
Training report on embedded sys_AVRTraining report on embedded sys_AVR
Training report on embedded sys_AVR
 
Design and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitDesign and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal Unit
 
UNIT-II CPLD & FPGA Architectures and Applications
UNIT-II CPLD & FPGA  Architectures   and ApplicationsUNIT-II CPLD & FPGA  Architectures   and Applications
UNIT-II CPLD & FPGA Architectures and Applications
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
H344250
H344250H344250
H344250
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
 
UNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONS
UNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONSUNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONS
UNIT-III CASE STUDIES -FPGA & CPGA ARCHITECTURES APPLICATIONS
 
8259
82598259
8259
 
Important questions
Important questionsImportant questions
Important questions
 
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware DesignPramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
 
training report on embedded system and AVR
training report on embedded system and AVRtraining report on embedded system and AVR
training report on embedded system and AVR
 

Viewers also liked

Codigo de barras
Codigo de barrasCodigo de barras
Codigo de barrasEduard Pino
 
Trabalho de aplicativo gabriel nunes e luiza fernandes
Trabalho de aplicativo gabriel nunes e luiza fernandesTrabalho de aplicativo gabriel nunes e luiza fernandes
Trabalho de aplicativo gabriel nunes e luiza fernandesLuiza Fernandes
 
The creation
The creationThe creation
The creationBee Lihin
 
Google จะเลิก support ie8
Google จะเลิก support ie8Google จะเลิก support ie8
Google จะเลิก support ie8Ing Gnii
 
Trbajo de excel nº 05
Trbajo de excel nº 05Trbajo de excel nº 05
Trbajo de excel nº 05acrrivas
 
Photo 5.2
Photo 5.2Photo 5.2
Photo 5.2CKozak
 
LetterOfRecommendationMT
LetterOfRecommendationMTLetterOfRecommendationMT
LetterOfRecommendationMTBrandon Buck
 
Folder consuelo castro kbd
Folder consuelo castro kbdFolder consuelo castro kbd
Folder consuelo castro kbdJoabher Bentes
 
Costos empresariales cargas y abonos
Costos empresariales cargas y abonosCostos empresariales cargas y abonos
Costos empresariales cargas y abonosJuan Anaya
 
Apresentação ABCOmm e PentaTZ | Social Media Ceará
Apresentação ABCOmm e PentaTZ | Social Media CearáApresentação ABCOmm e PentaTZ | Social Media Ceará
Apresentação ABCOmm e PentaTZ | Social Media CearáPaulo Gustavo
 
Resintencia, mediciones y codigo de colores
Resintencia, mediciones y codigo de coloresResintencia, mediciones y codigo de colores
Resintencia, mediciones y codigo de coloresJairQQ
 

Viewers also liked (20)

Codigo de barras
Codigo de barrasCodigo de barras
Codigo de barras
 
China
ChinaChina
China
 
Trabalho de aplicativo gabriel nunes e luiza fernandes
Trabalho de aplicativo gabriel nunes e luiza fernandesTrabalho de aplicativo gabriel nunes e luiza fernandes
Trabalho de aplicativo gabriel nunes e luiza fernandes
 
The creation
The creationThe creation
The creation
 
Google จะเลิก support ie8
Google จะเลิก support ie8Google จะเลิก support ie8
Google จะเลิก support ie8
 
Trbajo de excel nº 05
Trbajo de excel nº 05Trbajo de excel nº 05
Trbajo de excel nº 05
 
Formato de plan copia
Formato de plan   copiaFormato de plan   copia
Formato de plan copia
 
UP Entomologia
UP EntomologiaUP Entomologia
UP Entomologia
 
Alimentos nutritivos
Alimentos nutritivosAlimentos nutritivos
Alimentos nutritivos
 
Leidis
LeidisLeidis
Leidis
 
Photo 5.2
Photo 5.2Photo 5.2
Photo 5.2
 
Fase Final
Fase FinalFase Final
Fase Final
 
LetterOfRecommendationMT
LetterOfRecommendationMTLetterOfRecommendationMT
LetterOfRecommendationMT
 
MH101
MH101MH101
MH101
 
Folder consuelo castro kbd
Folder consuelo castro kbdFolder consuelo castro kbd
Folder consuelo castro kbd
 
Costos empresariales cargas y abonos
Costos empresariales cargas y abonosCostos empresariales cargas y abonos
Costos empresariales cargas y abonos
 
Apresentação ABCOmm e PentaTZ | Social Media Ceará
Apresentação ABCOmm e PentaTZ | Social Media CearáApresentação ABCOmm e PentaTZ | Social Media Ceará
Apresentação ABCOmm e PentaTZ | Social Media Ceará
 
A4 Transformation Article_Jakubowicz
A4 Transformation Article_JakubowiczA4 Transformation Article_Jakubowicz
A4 Transformation Article_Jakubowicz
 
Resintencia, mediciones y codigo de colores
Resintencia, mediciones y codigo de coloresResintencia, mediciones y codigo de colores
Resintencia, mediciones y codigo de colores
 
Aircraft_structures
Aircraft_structuresAircraft_structures
Aircraft_structures
 

Similar to Micro unit 8

8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .pptDrVikasMahor
 
Unit 6 assembly language programming
Unit 6   assembly language programmingUnit 6   assembly language programming
Unit 6 assembly language programmingKartik Sharma
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsransherraj
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsIsha Negi
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsIsha Negi
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptxJasaRChoudhary
 
Micro Processor And Micro controller
Micro Processor And Micro controller Micro Processor And Micro controller
Micro Processor And Micro controller Raja pirian
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijayVijay Kumar
 
8251
82518251
8251Aisu
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingMahiboobAliMulla
 
Microprocessors-based systems (under graduate course) Lecture 9 of 9
Microprocessors-based systems (under graduate course) Lecture 9 of 9 Microprocessors-based systems (under graduate course) Lecture 9 of 9
Microprocessors-based systems (under graduate course) Lecture 9 of 9 Randa Elanwar
 
Ec2308 mini project
Ec2308 mini projectEc2308 mini project
Ec2308 mini projectunnimaya_k
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Neelam Kapoor
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controllerabhikalmegh
 

Similar to Micro unit 8 (20)

Micro unit 6
Micro unit 6Micro unit 6
Micro unit 6
 
8259a.pdf
8259a.pdf8259a.pdf
8259a.pdf
 
Bv33439448
Bv33439448Bv33439448
Bv33439448
 
8259 a
8259 a8259 a
8259 a
 
8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt
 
Unit 6 assembly language programming
Unit 6   assembly language programmingUnit 6   assembly language programming
Unit 6 assembly language programming
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerrupts
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
 
Micro Processor And Micro controller
Micro Processor And Micro controller Micro Processor And Micro controller
Micro Processor And Micro controller
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
20120140502021 2
20120140502021 220120140502021 2
20120140502021 2
 
8251
82518251
8251
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacing
 
Microprocessors-based systems (under graduate course) Lecture 9 of 9
Microprocessors-based systems (under graduate course) Lecture 9 of 9 Microprocessors-based systems (under graduate course) Lecture 9 of 9
Microprocessors-based systems (under graduate course) Lecture 9 of 9
 
Ec2308 mini project
Ec2308 mini projectEc2308 mini project
Ec2308 mini project
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 

Recently uploaded

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 

Recently uploaded (20)

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 

Micro unit 8

  • 1. Impulse classes(Learn for perfection) PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU [MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun Address:#902, 6th ‘A’ Main,1st Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700 ©copyright: subject matter to IMPULSE CLASSES, Bangalore-34 1. Explain the interrupt vector table in brief.  An interrupt vector table that stores pointers to the associated interrupt handlers. This table is located at base address zero.  Each entry in this table consists of a CS:IP pointer to the associated ISRs .  Each entry or vector requires four bytes: » Two bytes for specifying CS » Two bytes for the offset  Up to 256 interrupts are supported (0 to 255)  . These pointers identify the starting location of their service routines in program memory. The contents of this table may be either held as firmware in EPROMs or loaded into RAM as part of the system initialization routine.  Type 0: Divide error – Division overflow or division by zero  Type 1: Single step or Trap – After the execution of each instruction when trap flag set  Type 2: NMI Hardware Interrupt – ‘1’ in the NMI pin  Type 3: One-byte Interrupt – INT3 instruction (used for breakpoints)  There is a program associated with every There is a program associated with every interrupt. interrupt.  When an interrupt is invoked, a CPU runs a When an interrupt is invoked, a CPU runs a program for a service program for a service an interrupt service an interrupt service routine (ISR). routine (ISR).
  • 2. Impulse classes(Learn for perfection) PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU [MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun Address:#902, 6th ‘A’ Main,1st Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700 ©copyright: subject matter to IMPULSE CLASSES, Bangalore-34  The address of the interrupt service routine is The address of the interrupt service routine is shown in the interrupt vector table. shown in the interrupt vector table.  Four bytes of memory are allocated for every Four bytes of memory are allocated for every interrupt. interrupt. ¾ The memory space of 1024 bytes (256x4=1024) The memory space of 1024 bytes (256x4=1024) are set aside for the interrupt vector table. are set aside for the interrupt vector table. 2. Differentiate between memory mapped I/O and I/O mapped I/O. Isolated I/O No. Memory Mapped I/O Isolated I/O uses separate memory space. 01 Memory mapped I/O uses memory from the main memory. Limited instructions can be used. Those are IN, OUT, INS, OUTS. 02 Any instruction which references to memory can be used. The addresses for Isolated I/O devices are called ports. 03 Memory mapped I/O devices are treated as memory locations on the memory map. IORC & IOWC signals expands the circuitry. 04 IORC & IOWC signals has no functions in this case which reduces the circuitry. Efficient I/O operations due to using separate bus 05 Inefficient I/O operations due to using single bus for data and addressing Comparatively larger in size 06 Smaller in size Uses complex internal logic 07 Common internal logic for memory and I/O devices Slower operations 08 Faster operations 3. Explain the operation of 8259, with near block diagram. The 8259 A has eight interrupt request inputs, TR2 IR0. The 8259 A uses its INT output to interrupt the 8085A via INTR pin. The 8259A receives interrupt acknowledge pulses from the at its input. Vector address used by the 8085 A to transfer control to the service subroutine of the interrupting device, is provided by the 8259 A on the data bus. The 8259A is a programmable device that must be initialized by command words sent by the.
  • 3. Impulse classes(Learn for perfection) PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU [MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun Address:#902, 6th ‘A’ Main,1st Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700 ©copyright: subject matter to IMPULSE CLASSES, Bangalore-34 Data bus buffer: This 3- state, bidirectional 8-bit buffer is used to interface the 8259A to the system data bus. Control words and status information are transferred through the data bus buffer. Read/Write & control logic: The function of this block is to accept OUTPUT commands from the CPU. It contains the initialization command word (ICW) register and operation command word (OCW) register which store the various control formats for device operation. This function block also allows the status of 8159A to be transferred to the data bus. Interrupt request register (IRR): IRR stores all the interrupt inputs that are requesting service. Basically, it keeps track of which interrupt inputs are asking for service. If an interrupt input is unmasked, and has an interrupt signal on it, then the corresponding bit in the IRR will be set. Interrupt mask register (IMR): The IMR is used to disable (Mask) or enable (Unmask) individual interrupt inputs. Each bit in this register corresponds to the interrupt input with the same number. service register (ISR): The in service registers keeps tracks of which interrupt inputs are currently being serviced. For each input that is currently being serviced the corresponding bit will be set in the in service register. Cascade buffer/comparator: This function blocks stores and compare the IDS of all 8259A’s in the reg. The associated 3-I/O pins (CAS0-CAS2) are outputs when 8259A is used a master.
  • 4. Impulse classes(Learn for perfection) PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU [MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun Address:#902, 6th ‘A’ Main,1st Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700 ©copyright: subject matter to IMPULSE CLASSES, Bangalore-34 4. What is DMA ? briefly explain the two different DMA operation.  A direct memory access (DMA) is an operation in which data is copied (transported) from one resource to another resource in a computer system without the involvement of the CPU.  The task of a DMA-controller (DMAC) is to execute the copy operation of data from one resource location to another.  The copy of data can be performed from: - I/O-device to memory - memory to I/O-device - memory to memory - I/O-device to I/O-device.  A DMAC is an independent (from CPU) resource of a computer system added for the concurrent execution of DMA-operations. The first two operation modes are ’read from’ and ’write to’ transfers of an I/O-device to the main memory, which are the common operation of a DMA-controller.  operating modes exist for DMACs. The simplest one is the single block transfer copying a block of data from a device to memory.  single block transfer - chained block transfers - linked block transfers - fly-by transfers All these operations normally access the block of data in a linear sequence. Nevertheless, there are more usefull access functions possible, as there are: constant stride, constant stride with offset, incremental stride.  The DMAC increments the memory block address and continue with this loop until the block length is reached. The completion of the DMAoperation is signaled to the processor by sending an IRQ signal or by setting a memory semaphore variable, which can be tested by the CPU. >>multiple channels physical addressing, >>address translation snooping for cache coherency.  DMA control signals (REQ, ACK) are used to signal the availability of values in the I/Odevice for transportation.
  • 5. Impulse classes(Learn for perfection) PREMIER INSTITUTE OFFERING TECHNICAL EDUCATION FOR ENGINEERING STUDENTS IIT,AIEEE,PUC & GATE,IES,PSU [MICROPROCESSOR (UNIT-8)] (INTERRUPT) Guided By:Anurag Trigun Address:#902, 6th ‘A’ Main,1st Block kormanagala near wipro gate,Bangalore-34 Ph-9060923518,9900398700 ©copyright: subject matter to IMPULSE CLASSES, Bangalore-34 5. Explain the hardware and software interrupt. The primary sources of interrupts, however, are the PCs timer chip, keyboard, serial ports, parallel ports, disk drives, CMOS real-time clock, mouse, sound cards, and other peripheral devices. MASKABLE INTERRUPT  Whenever an external signal activates the INTR pin, the microprocessor will be interrupted only if interrupts are enabled using set interrupt Flag instruction. If the interrupts are disabled using clear interrupt Flag instruction, the microprocessor will not get interrupted even if INTR is activated. That is, INTR can be masked.  Hardware pins that request interrupt (INTR & NMI) and one hardware pin (INTA) that acknowledges the interrupt requested through INTA. NON-MASKABLE INTERRUPT (NMI)  The processor provides a single non-maskable interrupt pin (NMI) which has higher priority than the maskable interrupt request pin (INTR). A typical use would be to activate a power failure routine. The NMI is edgetriggered on a LOW-to-HIGH transition. The activation of this pin causes a type 2 interrupt. NMI is required to have a duration in the HIGH state of greater than two CLK cycles, but is not required to be synchronized to the clock. . Software interrupt Instructions There are instructions in 8086 which cause an interrupt. They are  INT instructions: INT instruction calls the interrupts service procedures that begins at address represented in vector number INTO: INTO instruction checks the overflow flag (OF), if OF =1, the instruction calls the procedure whose address is stored in interrupt vector type number 4. INT3: INT3 instruction is often used as a breakpoint interrupt because it is easy to insert a 1-byte instruction into a program, breakpoints are often used to debug faulty software.