1 / 3

Interrupt-Driven I/O

Interrupt-Driven I/O. There are different types of interrupts Hardware Generated by the 8259 PIC – signals the CPU to suspend execution of the current program and process the interrupt (keyboard, serial port)

tryna
Download Presentation

Interrupt-Driven I/O

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Interrupt-Driven I/O • There are different types of interrupts • Hardware • Generated by the 8259 PIC – signals the CPU to suspend execution of the current program and process the interrupt (keyboard, serial port) • Occasionally, programs must disable hardware interrupts when performing sensitive operations on segment registers and the stack. Use CLI (Clear Interrupt flag) to disable interrupts and STI (Set interrupt flag) to enable interrupts. • Software • Not really an interrupt (INT) • Internal Interrupts • Divide by zero • Traps

  2. Responding to Interrupts

  3. Hardware Interrupt Pins • NMI – non-maskable interrupt – it cannot be blocked (the CPU must respond) – reserved for critical system functions. • INTR – maskable via the IF flag.

More Related