IRQ (interrupt request)

An IRQ (interrupt request) value often needs to be specified to your computer when you're attaching a new device to it. The interrupt request value is an assigned location where the computer can expect the new device to interrupt it when the device sends the computer signals about its operation. For example, when a printer has finished printing, it sends an interrupt signal to the computer. The signal momentarily interrupts the computer so that it can decide what processing to do next. Since multiple signals to the computer on the same interrupt line might not be understood by the computer, a unique value must be specified for each device and its path to the computer. Most devices provide explicit directions on how to assign IRQ values for it. If you don't know what IRQ value to specify, you'll probably save time by calling the technical support phone number for the device manufacturer and asking.

Interrupts

An interrupt is a signal from a device attached to a computer or from a program within the computer that causes the main program that operates the computer (the operating system) to stop and figure out what to do next. Almost all personal (or larger) computers today are interrupt-driven - that is, they start down the list of computer instructions in one program (perhaps an application such as a word processor) and keep running the instructions until either (A) they can't go any further or (B) an interrupt signal is sensed. After the interrupt signal is sensed, the computer either resumes running the program it was running or begins running another program. Basically, a single computer can perform only one computer instruction at a time. But, because it can be interrupted, it can take turns in which programs or sets of instructions that it performs. This is known as multitasking. It allows the user to do a number of different things at the same time. The computer simply takes turns managing the programs that the user effectively starts. Of course, the computer operates at speeds that make it seem as though all of the user's tasks are being performed at the same time. (The computer's operating system is good at using little pauses in operations and user think time to work on other programs.) An operating system usually has some code that is called an interrupt handler. The interrupt handler prioritizes the interrupts and saves them in a queue if more than one is waiting to be handled. The operating system has another little program, sometimes called a scheduler, that figures out which program to give control to next. An interrupt request (IRQ) will have a value associated with it that identifies it as a particular device.

 

Standard Computer IRQ Settings
IRQ #
Associated Device(s)
Comments
0
System Timer/BIOS
Not available for use
1
Keyboard
  Not available for use
2
Free
Cascaded w/ IRQ 9
3
Serial/COM Port 2
Often used by modems
4
Serial/COM Port 1
Often used by modems
5
LPT Port 2
Default IRQ for most sound cards.
6
Floppy Disk Controller
 Not available for use
7
LPT Port 1
Used for printers
8
Real Time Clock/BIOS
Not available for use
9
Free
Default for Network Interface Cards
10
Free
11
Free
Used by most gtraphics accelerators
12
Free
Used when PS/2 added
13
Math Coprocessor
Not available for use
14
Hard Disk Controller
Not available for use
15
Free
Used by second HD controller

 

Copyright 1998, "Team 16101", All Rights Reserved