Flux rss
Bookmark Bookmark & Share
Interruzioni hardware (IRQ) e conflitti Interrupções materiais (IRQ) e conflitos Unterbrechungsanforderungen (IRQ) und Konflikte Interruptions matérielles (IRQ) et conflits Interrupciones (IRQ) y conflictos del hardware

The Concept of Interrupts

Because the processor cannot simultaneously process several pieces of information (it processes one piece of information at a time), a program being run can, thanks to an interrupt request, be momentarily suspended while an interrupt takes place. The interrupted program can then continue running. There are 256 different interrupt addresses.

An interrupt becomes a hardware interrupt when it is requested by one of the computer's hardware components. There are many peripherals in a computer. These peripherals generally need to use the system resources if only to communicate with the system itself.

When a peripheral wants to access a resource, it sends an interrupt request to the processor in order to get its attention. The peripherals have an interrupt number that is called an IRQ (Interruption ReQuest. It is as if each peripheral pulls a "string" that is attached to a bell in order to tell the computer that it wants the computer to pay attention to it.

This "string" is in fact a physical line that links each expansion slot as well as each I/O interface to the motherboard. For an 8-bit ISA slot, for example, there are 8 IRQ lines that link the 8-bit ISA slots to the motherboard (IRQ0 to IRQ7). These IRQs are controlled by an "interrupt controller" that is in charge of allowing the IRQ with the greatest priority "to speak".

When 16-bit slots were introduced, IRQs 8 to 15 were added, as was a second interrupt controller. The two groups of interrupts are linked by IRQ 2 which is connected (or "cascaded") to IRQ 9. In a way, this cascade "inserts" IRQs 8 to 15 between IRQs 1 and 3:

IRQ2 - Cascade

Given that priority goes from lowest to highest IRQ, and IRQs 8 to 15 are inserted between IRQs 1 and 3, the order of priority is as follows:

0 > 1 > 8 > 9 > 10 > 11 > 12 > 13 > 14 > 15 > 3 > 4 > 5 > 6 > 7

DMA

The peripherals regularly need to "borrow memory" from the system in order to use it as a buffer zone, i.e. a temporary storage area that allows I/O data to be quickly saved.

Thus, a direct memory access channel, called a DMA (Direct Memory Access was defined as a solution to this.

The DMA channel indicates an access to one of the computer's random access memory (RAM) slots, located by a "RAM Start Address" and an "end address". This method allows a peripheral to borrow special channels that give it direct access to the memory, without the intervention of the microprocessor, in order to unload these tasks.

A PC has 8 DMA channels. The first four DMA channels have an 8-bit bandwidth while DMAs 4 to 7 have a 16-bit bandwidth.

The DMA channels are generally assigned as follows:

  • DMA0 - free
  • DMA1 - (sound card)/ free
  • DMA2 - floppy disk controller
  • DMA3 - parallel port (printer port)
  • DMA4 - direct memory access (DMA) controller
    (connected to DMA0)
  • DMA1 - (sound card)/ free
  • DMA6 - (SCSI)/ free
  • DMA7 - available

Base Addresses

Sometimes peripherals need to exchange information with the system, which is why memory addresses were assigned to them for the sending and receiving of data. These addresses are called "base addresses" (the following terms are also sometimes used: "input/output ports", "I/O ports", "I/O addresses", "I/O port addresses", or "base ports").

It is by using this base address that the peripheral can communicate with the operating system. Therefore, there is only one unique base address for each peripheral.

Here is a list of some common base addresses:

  • 060h - keyboard
  • 170h/376h - secondary IDE controller
  • 1F0h/3F6h - primary IDE controller
  • 220h - sound card
  • 300h - network card
  • 330h - SCSI adapter card
  • 3F2h - disk drive controller
  • 3F8h - COM1
  • 2F8h - COM2
  • 3E8h - COM3
  • 2E8h - COM4
  • 378h - LPT1
  • 278h - LPT2

However, all of these elements are user-transparent, i.e. users do not have to worry about them.

Hardware Conflicts

An interrupt is a line that links the peripheral to the processor. An interrupt is a hardware interrupt when it is requested by one of the PC's hardware components. For example, this is the case when a key is touched and the keyboard wants to get the processor's attention for this event. However, all 256 interrupts cannot be requested as hardware interrupts and different peripherals always make very specific interrupts.

Thus, when expansion boards are installed, you must make sure during configuration that the same interrupt is not used for two different peripherals. If this were to happen, a "hardware conflict" would occur and neither peripheral would function.

Indeed, if two peripherals use the same interrupt, the system will not know how to distinguish between them. A hardware conflict does not only occur when two peripherals have the same hardware. A conflict can also occur when two peripherals have the same I/O address or use the same DMA channels.

IRQ Configuration

The IRQ of an expansion board can be modified in order to assign it an IRQ number that is not being used by another peripheral.

  • On older peripherals, this IRQ number is attached to jumpers that are on the board.
  • On recent boards (that have a BIOS Plug & Play), resource (IRQ, DMA, I/O addresses) parametering is automatic. It can also be carried out by the OS or with the help of utilities provided with the expansion board. The plug & play mode must sometimes be deactivated in order to be able to modify the parameters manually.
It is still not easy to find available resources for all peripherals. Here then is a non-exhaustive list of resources that are generally used, which therefore cannot be assigned manually:

IRQ Peripheral
0 Internal Clock
1 keyboard
2 programmable interrupt controller
Cascade to IRQs 8 to 15
3 COM2/COM4 communications port
4 COM1/COM3 communications port
5 free
6 floppy disk controller
7 LPT1 printer port
8 CMOS (Real-time clock)
9 free
10 free
11 free
12 PS2 mouse port/free
13 numeric data processor (math coprocessor)
14 primary hard drive controller (IDE)
15 secondary hard drive controller (IDE)

The COM1 and COM4 ports as well as the COM2 and COM3 ports use the same interrupts. This may seem illogical in that the same interrupt cannot be used by two peripherals. In reality, it is possible to use the COM1 port as well as the COM4 port (as well as the COM2 port and the COM3 port) so long as the are not active at the same time. Otherwise, the computer might freeze or function abnormally.

Resolving Hardware Conflicts

If you have a hardware problem, first try to isolate the problem in order to determine which peripheral is causing the problem. This means that you must attempt to eliminate as many variables as possible until you discover which element is responsible:

  • by opening the computer casing and removing one by one the elements that might have caused the conflict
  • by deactivating the software in the OS in order to deactivate the peripherals


Last update on Thursday October 16, 2008 02:43:13 PM.This document entitled « Hardware Interrupts (IRQ) and Conflicts » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Hardware interrupts (IRQ) and conflicts What is an interrupt? Since the processor cannot process multiple pieces of data at the same time (it processes one piece of data a time, multitasking is actually the alternation of instruction snippets from several different tasks), a currently... en.kioskea.net/contents/repar/irq.php3
Download Notebook Hardware Control Notebook Hardware Control is acomponent control tool of your Notebook. - It controls your system power management. - It personalizes Notebook (open source). - It prolongs the life time of the battery. - It cools down the system by reducing the... en.kioskea.net/telecharger/telecharger-1679-notebook-hardware-control
Safely remove hardware icon lost Safely remove hardware icon lost You are using your USB flash drive but u can’t remove it because the safely remove icon has disappeared. Sometimes Windows accidentally hides this icon all you have to do now: • Right click on the... en.kioskea.net/faq/sujet-2501-safely-remove-hardware-icon-lost
EVEREST- Identify your hardware devices and driversEVEREST- Identify your hardware devices and drivers Everest is a common software used nowadays to identify hardware devices and helps to search for the right driver.. If you have installed windows and you’ve lost your motherboard... en.kioskea.net/faq/sujet-2604-everest-identify-your-hardware-devices-and-drivers
Conflicts between WiFi agentConflicts between WiFi agent Symptoms Conclusion Symptoms You just installed your WiFi hardware on Windows XP / Vista and you have configured it with the CD supplied by the manufacturer or your ISP: everything works fine. You restart... en.kioskea.net/faq/sujet-2145-conflicts-between-wifi-agent
Hosting Virtual machinesHosting Virtual machines Intro Hosting Virtual machines Advantages Disadvantages Hosting Intro A virtual machine is remote replica of a real machine, meaning that they have no direct relationship to any piece real hardware. Virtual... en.kioskea.net/faq/sujet-1291-hosting-virtual-machines
Hardware Graphic AcceleratorHello,i've been having some problems with my computer. Anytime i run games on my system they do not play, sometimes they just appear black. The very few that do play show a command prompt tellin me-"Hardware acceleration is either disabled or not... en.kioskea.net/forum/affich-87426-hardware-graphic-accelerator
Problem installing new hardware deviceHello, I am using Windows XP Pro on my desktop. My computer has difficulty in installing new hardware. For instance, I just installed software (Dazzle DVD recorder) to be able to burn VHS video onto DVDs. I first installed the software and restarted... en.kioskea.net/forum/affich-10598-problem-installing-new-hardware-device
Acer 3620 Bluetooth hardwareHello, I have acer aspire 3620 model labtop. When i reinstall XP on it my bluetooth is not working. I try to install driver but it says hardware missing. I had same problem on wireless network also and i try to install acer wireless driver but it... en.kioskea.net/forum/affich-62452-acer-3620-bluetooth-hardware
Download OptimizeXP Hardware EditionOptimizeXP Hardware Edition will allow you to optimize and adjust the hardware settings in Windows XP. The program offers over 20 improvements and enhancements including online support. Advantage You can disable the automatic connection of the... en.kioskea.net/telecharger/telecharger-3760-optimizexp-hardware-edition
Download Norton Removal ToolNorton Removal Tool (SymNRT) is a program which allows to abolish Norton applications of your computer. Application can be used if you have already tried to uninstall Norton programs by using application uninstall Windows without results.Norton... en.kioskea.net/telecharger/telecharger-395-norton-removal-tool
Download Debut Video Capture SoftwareDebut Video Captures Software package a program is which allows you to perform a video recording thanks to a webcam simple or quite other peripheral video connected up on your computer.The feature of it postage paid is that he can also record all that... en.kioskea.net/telecharger/telecharger-780-debut-video-capture-software
ADOBE Creative Suite 3 Master Collection Edition Full Version for Mac 19280033ADOBE Creative Suite 3 Master Collection Edition Full Version for Mac 19280033 Best Prices for Computer Accessories Computer Supplies and Computer Hardware from the Newest Computer Shop on the Net : ITDirect2U en.kioskea.net/guide/639721408-adobe-creative-suite-3-master-collection-edition-full-version-for-mac-19280033
Nokia E75E 75, Talk time: 5.4, standby time: 280, Camera: Yes, Integrated, 139 gram, WAP, GPRS, MP3 en.kioskea.net/guide/1214430-nokia-e75
Man held in China for posting conflict rumours: reportA Chinese man surfs the Internet in Beijing. A man who allegedly spread rumours online about ethnic conflict in a restive, Muslim-majority region of China has been arrested and detained, state media said. A man who allegedly spread rumours online... en.kioskea.net/actualites/man-held-in-china-for-posting-conflict-rumours-report-12312-actualite.php3
Network topologyWhat does "topology" mean? A computer network is made of computers which are linked to one another with communication lines (network cables, etc.) and hardware elements (network adapters, as well as other equipment for ensuring that data travels... en.kioskea.net/contents/initiation/topologi.php3
Network equipment - Bridge/routersIntroduction to bridge/routers A bridge/router is a hybrid element that joins the features of a router and those of a bridge. Therefore, this kind of hardware is used for transferring non-routable protocols from one network to another, and to route... en.kioskea.net/contents/lan/brouteurs.php3
Operating systemDescription of the operating system For a computer to be able to operate a computer programme (sometimes known as application or software), the machine must be able to perform a certain number of preparatory operations to ensure exchange between... en.kioskea.net/contents/systemes/sysintro.php3