首页 > 其他 > 详细

ULK --- Chap 4: IRQs and Interrupts (Note)

时间:2015-11-26 12:47:21      阅读:390      评论:0      收藏:0      [点我收藏+]

Each hardware device controller capable of issuing interrupt requests usually has a single

output line designed as the Interrupt ReQuest (IRQ) line. All existing IRQ lines are connected

to the input line of a hardware circuit called the Programmable Interrupt Controller, which

performs the following actions.

1. Monitors the IRQ lines, checking for raised signals. If two or more IRQ lines are raised, selects

the one having the lower pin number.

2. If a raised signal occurs on an IRQ line:

    a. Converts the raised signal received into a corresponding vector.

    b. Stores the vector in an Interrupt Controller I/O port, thus allowing the CPU to read it via the

        data bus.

    c. Sends a raised signal to the processor INTR pin --- that is, issues an interrupt.

    d. Waits until the CPU acknowledges the interrupt signal by writing into one of the Programmable

         Interrupt Controller (PIC) I/O ports; when this occurs, clears the INTR line.

3. Go back to step 1.

 

ULK --- Chap 4: IRQs and Interrupts (Note)

原文:http://www.cnblogs.com/miaoyong/p/4997261.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!