This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Interrupt-Driven I/OResponding to InterruptsHardware Interrupt PinsInterrupt-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•TrapsResponding to Interrupts Normal ProcessingInterrupt OccursFinish Current InstructionNormal Processing ResumesPush flags, CS, and IP (EIP) onto stackPop flags, CS, and IP(EIP) from stackBranch to ISRExecute ISRHardware Interrupt Pins•NMI – non-maskable interrupt – it cannot be blocked (the CPU must respond) – reserved for critical system functions.•INTR – maskable via the IF


View Full Document

MSU ECE 3724 - Interrupt Driven IO

Documents in this Course
Timers

Timers

38 pages

TEST 4

TEST 4

9 pages

Flags

Flags

6 pages

Timers

Timers

6 pages

Timers

Timers

54 pages

TEST2

TEST2

8 pages

Load more
Download Interrupt Driven IO
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Interrupt Driven IO and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Interrupt Driven IO 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?