1 / 9

CSE3306

CSE3306. Lecture: 12 Title: Interrupts. Today's Topics. Demonstrate Timer Interrupt Critical Sections 8259 PIC ISR Scheduling. Timer Interrupt Demonstration. Program Overview Install on IRQ0 (INT 8) Call Original Timer Interrupt Increments Count=0..18

Download Presentation

CSE3306

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. CSE3306 Lecture: 12 Title: Interrupts CSE3306--L12

  2. Today's Topics • Demonstrate Timer Interrupt • Critical Sections • 8259 PIC • ISR Scheduling CSE3306--L12

  3. Timer Interrupt Demonstration • Program Overview • Install on IRQ0 (INT 8) • Call Original Timer Interrupt • Increments Count=0..18 • Increments SecCount when Count=18 • Running Program prints SecCount • Termination Restores Interrupt CSE3306--L12

  4. CSE3306--L12

  5. CSE3306--L12

  6. CSE3306--L12

  7. Critical Sections • STI: SeT Interrupt enableAllow other routines to be serviced • CLI: CLear Interrupt enable Retain full control of CPU CSE3306--L12

  8. 8259 PIC (Programmable Interrupt Controller) • Latches incoming interrupt signals (IRQ signal) • Allows masking interrupts (except NMI) • Prioritizes Interrupts (IRQ 0==Highest) • IF (interupt unmasked) AND (interrupt flag=1) AND (not servicing higher interrupt) THEN call interrupt CSE3306--L12

  9. ISR Scheduling CSE3306--L12

More Related