Share on Facebook Share on Twitter Email
Answers.com

Interrupt request

 

(Interrupt ReQuest) A hardware interrupt on a PC. There are 16 IRQ lines used to signal the CPU that a peripheral event has started or terminated. Except for PCI devices, two devices cannot use the same line. If a new expansion board is preset to the IRQ used by an existing board, one of them must be changed. This was an enormous headache in earlier machines.

Starting with the 286 (introduced in 1982), two 8259A controller chips have been cascaded together for a total of 16 IRQs (the first PCs had only one chip and eight IRQs). However, IRQ 2 is lost because it is used to connect to the second chip. IRQ 9 may be available for general use as most VGA cards do not require an IRQ.

PCI to the Rescue

The PCI bus allows IRQs to be shared, which helps to solve the problem of limited IRQs available on a PC. For example, if there were only one IRQ left over after ISA devices were given their required IRQs, all PCI devices could share it. In a PCI-only machine, there cannot be insufficient IRQs, as all can be shared. See Win Technical details.

      IRQ  Assignment
      0    System timer
      1    PS/2 port
      2    Connects to IRQ 9
      3    COM2, COM4
      4    COM1, COM3
      5    Sound
      6    Floppy disk
      7    LPT1
      8    Real-time clock
      9    VGA, 3270 emulation**
     10    **
     11    **
     12    PS/2 port
     13    Math coprocessor
     14    IDE primary
     15    IDE secondary

   ** For general use.

IRQ Settings
This shows typical IRQ settings in a PC. By the time Windows 98 came out, from which this dialog box was captured, technicians no longer had to deal with IRQs on a regular basis.

Download Computer Desktop Encyclopedia to your iPhone/iTouch

Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
Wikipedia: Interrupt request
Top

The computing phrase "interrupt request" (or IRQ) is used to refer to either the act of interrupting the bus lines used to signal an interrupt, or the interrupt input lines on a Programmable Interrupt Controller (PIC). Interrupt lines are often identified by an index with the format of IRQ followed by a number. For example, on the Intel 8259 family of PICs there are eight interrupt inputs commonly referred to as IRQ0 through IRQ7. In x86 based computer systems that use two of these PICs, the combined set of lines are referred to as IRQ0 through IRQ15. Technically these lines are named IR0 through IR7, and the lines on the ISA bus to which they were historically attached are named IRQ0 through IRQ15.

Newer x86 systems integrate an Advanced Programmable Interrupt Controller (APIC) that conforms to the Intel APIC Architecture. These APICs support a programming interface for up to 255 physical hardware IRQ lines per APIC, with a typical system implementing support for only around 24 total hardware lines.

Contents

Overview

x86 IRQs

See Intel 8259 for a common list and discussion of hardware IRQ lines in x86 systems.

Typically, on systems using the Intel 8259, 16 IRQs are used. IRQs 0 to 7 are managed by one Intel 8259 PIC, and IRQs 8 to 15 by a second Intel 8259 PIC. The first PIC, the master, is the only one that directly signals the CPU. The second PIC, the slave, instead signals to the master on its IRQ 2 line, and the master passes the signal on to the CPU. There are therefore only 15 interrupt request lines available for hardware.

On newer systems using the Intel APIC Architecture, typically there are 24 IRQs available, and the extra 8 IRQs are used to route PCI interrupts, avoiding conflict between dynamically configured PCI interrupts and statically configured ISA interrupts. On early APIC systems with only 16 IRQs or with only Intel 8259 interrupt controllers, PCI interrupt lines were routed to the 16 IRQs using a PIR integrated into the southbridge.

The easiest way of viewing this information on Microsoft Windows is to use Device Manager or System Information (msinfo32.exe). On Linux, IRQ mappings can be viewed by executing cat /proc/interrupts or procinfo programs.

Master PIC

  • IRQ 0 — system timer (cannot be changed);
  • IRQ 1 — keyboard (cannot be changed);
  • IRQ 2 — cascaded signals from IRQs 8–15 (any devices configured to use IRQ 2 will actually be using IRQ 9);
  • IRQ 3 — serial port 2 or 4;
  • IRQ 4 — serial port 1 or 3;
  • IRQ 5 — LPT port 2 or sound card;
  • IRQ 6 — floppy disk controller;
  • IRQ 7 — LPT port 1 or sound card (8-bit Sound Blaster and compatibles).

Slave PIC

More Information

More information on the Intel 8259 PIC and its IRQ lines can be found in the IA-32 Intel Architecture Software Developer’s Manual, Volume 3A: System Programming Guide, Part 1, freely available on the Intel website.

See also

References

  • Gilluwe, Frank van. The Undocumented PC, Second Edition, Addison-Wesley Developers Press, 1997. ISBN 0-201-47950-8
  • Shanley, Tom. ISA System Architecture, Third Edition, Addison-Wesley Publishing Company, 1995. ISBN 0-201-40996-8
  • Solari, Edward. PCI & PCI-X Hardware and Software Architecture & Design, Sixth Edition, Research Tech Inc., 2004. ISBN 0-9760865-0-6

 
 

 

Copyrights:

Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2009 Computer Language Company Inc.  All rights reserved.  Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Interrupt request" Read more