Interrupts

2,437
-1

Published on

Interrupts in Computer System Architecture

Published in: Education
1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total Views
2,437
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

Interrupts

  1. 1. PRESENTATION ON INTERRUPTS
  2. 2. INTERRUPTSIt is an unexpected hardware initiated subroutine call orjump that temporarily suspends the running of thecurrent program.Interrupt is a process where an external device can getthe attention of the microprocessor. Initiation of I/O operation. Completion of I/O operation.An interrupt may be either: Edge Sensitive Level Sensitive
  3. 3. CATEGORIES OF INTERRUPTSMaskable Interrupts.Non-Maskable Interrupts.Vectored Interrupts.Non-Vectored Interrupts.
  4. 4. TYPES OF INTERRUPTSExternal Interrupt.Internal Interrupt.Software Interrupt.Hardware Interrupt.
  5. 5. USES OF INTERRUPTSInput/Output data transfers for peripheraldevices.Emergency situations like power down.Input signals to be used for timing purposes.Event driven programs.Real time response applications and inmultitasking system.
  6. 6. INTERRUPT CONTROLLED I/O TRANSFERS It is an asynchronous mechanism. Each device is connected to an interrupt line. When it needs service, it asserts the interrupt line to request the processors attention. The status of being executed must first be saved & it will be saved on stack If one or more device is connected to the interrupt line, the processor ends to know which device service routine it should branch to. The identification of the device requesting service can be done in either hardware or software or a combination of both.
  7. 7. INTERRUPT CONTROLLED I/O TRANSFERS Software Determination of the Requesting Device. Enable Interrupts. Request an Interrupt. Servicing the Interrupt. Returning to main program. Interrupt Latency & Interrupt Response Time. Interrupt Latency. Interrupt Response Time.
  8. 8. INTERRUPT CYCLEIn this cycle, CPU has to check for an interrupteach time an instruction is executed.The interrupt enable flip-flop IEN can be set &cleared with two instructions namely ION & IOF. ION: Interrupts Enable On. IOF: Interrupts Enable Off.When IEN=0, Flag can’t interrupt computer.When IEN=1,Flag can interrupt computer.

×