System Resource
System Resource
System Resource
Purpose of IRQ
• An Interrupt Request is necessary for things like keyboard presses, mouse
movements, printer actions, and more. When the request is made by a
device to momentarily stop the processor, the computer is then able to
give the device some time to run its own operation.
IRQ continue..
• For example, each time you press a key on the keyboard, an interrupt
handler tells the processor that it needs to stop what it's currently doing so
that it can handle the keystrokes.
• Each device communicates the request over a unique data line called a
channel. Most of the time you see IRQ referenced, it's alongside this
channel number, also called an IRQ number. For example, IRQ 4 might be
used for one device and IRQ 7 for another.
IRQ Errors
• Errors related to Interrupt Request are usually only seen when installing
new hardware or changing the settings in existing hardware. Here are
some IRQ errors you might see:
Continue..
IRQL_NOT_DISPATCH_LEVEL
IRQL_NOT_GREATER_OR_EQUAL
STOP: 0x00000008
STOP: 0x00000009
• While it's possible for the same IRQ channel to be used for more than one
device (so long as both aren't actually being used at the same time), it's
normally not the case. An IRQ conflict most likely occurs when two pieces
of hardware are attempting to use the same channel for an interrupt
request.
• Since the Programmable Interrupt Controller (PIC) doesn't support this, the
computer might freeze up or the devices will stop working as expected (or
stop working entirely).
Continue…
Back in the early Windows days, IRQ errors were common
and it took a lot of troubleshooting to fix them. This was
because it was more common to set IRQ channels manually,
like with DIP switches, which made it more likely that more
than one device was using the same IRQ line.
However, IRQs are handled much better in newer versions of
Windows that use plug and play, so you'll rarely see an IRQ
conflict or other IRQ issue.
Viewing and Editing IRQ Settings
The easiest way to view IRQ information in Windows is with
Device Manager. Change the View menu option to Resources
by type to see the Interrupt request (IRQ) section.
You can also use System Information. Execute the
msinfo32.exe command from the Run dialog box (WIN+R),
and then navigate to Hardware Resources > IRQs.
• Linux users can run the cat /proc/interrupts command to view IRQ mappings.
• You might need to change the IRQ line for a specific device if it's using the same
IRQ as another, though it's usually unnecessary since system resources are
automatically allocated for newer devices. It's only older Industry Standard
Architecture (ISA) devices that might need manual IRQ adjustments.
• The following are the lists of IRQ numbers specifies what of each of
the 16 IRQ lines are used for:-
IRQ Typical used Description
number
IRQ 0 System timer Reserved for internal system timer.
It is never available to peripherals or other device.
IRQ 1 Keyboard Reserved for keyboard controller, even devices without a keyboard
(exclusively for keyboard input).
IRQ 2 Cascade interrupt for IRQs 8- Cascades the second interrupt controller to the first.
15
IRQ 3 Second serial port (COM2) For second serial port and often the default interrupt for the fourth
serial port (COM4)
IRQ 4 First serial port (COM1) This interrupt is normally used for the first serial port. On devices that
do not use a PS/2 mouse, this interrupt is almost always used by the
serial mouse. This is also the default interrupt for the third serial port
(COM3).
IRQ 5 Sound card This interrupt is the first choice that most sound cards make when
looking for an IRQ setting.
IRQ 6 Floppy disk controller This interrupt is reserved for the floppy disk controller.
IRQ 7 First parallel port This interrupt is normally reserved for the use of the printer. If a printer
is not being used, this interrupt can be used for other devices that use
parallel ports
IRQ 8 Real-time clock This interrupt is reserved for the system’s real-time clock timer and
can not be used for any other purpose.
IRQ 9 Open interrupt This interrupt is typically left open on devices for the use of peripherals.
IRQ 10 Open interrupt This interrupt is typically left open on devices for the use of peripherals.
IRQ 11 Open interrupt This interrupt is typically left open on devices for the use of peripherals.
IRQ 12 PS/2 mouse This interrupt is reserved for the PS/2 mouse on machines that use one.
If a PS/2 mouse is not used, the interrupt can be used for other
peripherals, such as network card.
IRQ 13 Floating point unit/coprocessor This interrupt is reserved for the integrated floating point unit. It is never
available to peripherals or other devices as it is used exclusively for
internal signaling.
IRQ 14 Primary IDE channel This interrupt is reserved for use by the primary IDE controller. On
systems that do not use IDE devices, the IRQ can be used for another
purpose.
IRQ 15 Secondary IDE channel This interrupt is reserved for use by the secondary IDE controller.
DIRECT MEMORY ACCESS (DMA)
Direct Memory Access is a hardware mechanism that allows peripheral components to
transfer their I/O data directly to and from main memory without the need to involve the
system processor. OR we can say that;
DMA is a capability provided by some computer bus architectures, including PCI, PCMCIA
and Card Bus, which allows data to be sent directly from an attached device to the
memory on the host, freeing the CPU from involvement with the data transfer and thus
improving the host's performance.
Advantage: Use of this mechanism can greatly increase throughput to and from a device,
because a great deal of computational overhead is eliminated. This involves enabling a
device to transfer data without exposing the CPU to a work overload.
Disadvantage: cache coherence problems. This is whereby cache and the main memory
may have inconsistent copies of the same object.
Types of Direct Memory Access (DMA)
Third Party DMA – This is sometimes called standard DMA. This refers to the fact that the
system DMA controller is actually doing the transfer (The first two parties are the sender
and the receiver of the transfer).
Limitations of standard DMA: standard DMA (DMA on ISA bus) is insufficient in transferring
multiple megabytes per second for modern GB hard disks. It has stuck on the same
performance level for over ten years, as from time of usage of old 10 MB XT hard disks.
First Party DMA – This is the type of DMA in which the peripheral doing the transfer
actually takes control of the system bus to perform the transfer. This is also called bus
mastering. Bus mastering provides much better performance than regular DMA because
modern devices have much smarter and faster DMA circuitry built into them than exists in
the old standard ISA DMA controller. Newer DMA modes are now available such as Ultra
DMA (mode 3 or DMA-33) that provide very high transfer rates.
DMA CONTROLLERS
DMA controller refers to the hardware device built into the system chipset on modern PCs
that manages the standard DMA transfers. The terminologies DMA and DMA controller are
very different whereas DMA is a mechanism of data transfer while DMA controller is the
hardware unit responsible for data transfer. The original PC and XT had one of these
controllers and supported 4 DMA channels, 0 to 3.
Burst mode – In this mode DMA controller hand over buses to CPU only after
completion of whole data transfer.
Cycle stealing mode – In this mode DMA gives control of buses to CPU after transfer of
every byte.
Transparent mode – Here the DMA transfers data only when CPU is executing the
instruction which does not require the use of buses.
DIRECT MEMORY ACCESS (DMA) CHANNELS
Direct Memory Access (DMA) channels are system pathways used by many devices to
transfer information directly to and from memory. DMA channels are not nearly as famous
as IRQs (Interrupt Requests) as system sources go. This is mostly for a good reason. There
are fewer of them and they are used by very fewer devices, and hence they usually cause
fewer problems with system setup. However, conflicts on DMA channels can cause very
strange system problems and can be very difficult to diagnose. DMAs are used most
commonly today by floppy disk drives, tape drives, Hard disks and sound cards.
As known, the processor is the brain of the computer, and in early machines the processor
really did almost everything. In addition to running programs it was also responsible for
transferring data to and from peripherals. Unfortunately, having the processor perform
these transfers is very inefficient, because it then is unable to do anything else.
Why DMA channels were invented for data transfer?
(CONT)
The invention of DMA enabled the devices to cut out the “middle man”, allowing the
processor to do other work and the peripherals to transfer data them selves, leading to
increased performance. Special channels were created, along with circuitry to control
them, that allowed the transfer of information without the processor controlling every
aspect of the transfer. This circuitry is normally part of the system chipset on the
motherboard.
NB: DMA channels are only on the Industrial Standard Architecture (ISA) bus. PCI devices
do not use standard DMA channels at all.
The table below provides summary information about the 8 DMA channel numbers in a typical PC.
You may find this table useful when considering how to configure your system, or for resolving DMA
conflicts. For an explanation of the categories, along with more detailed descriptions, see here.
DMA channel usage organized by device instead of DMA number, see this device resource summary.
Channel number: The number of the DMA channel from 0 to 7.
Bus line: Indicates whether or not this DMA channel is available to expansion devices on the
system bus . This will say “8/16 bit” for DMA accessible by all expansion devices, “16 bit only”
for a channel available only to 16 bit cards, or “NO” for a channel reserved for use only by
system devices.
Typical Default use: Description of the device or function that normally uses this DMA channel in
a regular modern PC.
Other common uses: This is a list of other devices that commonly either use this channel or
offer the use of this channel as one of their options. This list isn’t exhaustive because there are
a lot of odd ball cards out there that may use unusual DMAs.
Description: A description of the channel and how it is used, along with any relevant or
interesting points about it or its history.
Conflicts: A discuss of the likelihood of conflicts with this DMA channel and what are likely
causes.
GROUP NO: 24 MEMBERS
In the past, hardware conflicts were more common than they are today because each
hardware device required the user to configure the hardware resources
using jumpers or dip switches. Today, hardware conflicts are avoided using plug and
play, which manages each of the hardware devices installed in the computer for the
user.
A problem that occurs when two programs cannot run in the same computer at the
same time. It is generally due to a programming bug and typically manifests when
two programs compete for the same resource (memory, peripheral device, register,
etc.). Not often, but possible, intermittent hardware failures can cause two programs
to conflict.
The resources in a system are limited. Unfortunately, the demands on those
resources seem to be unlimited. As you add more and more adapter cards to your
system, you will find that the potential for resource conflicts increases. If your
system is fully PnP-compatible, potential conflicts should be resolved automatically,
but often are not.
How do you know whether you have a resource conflict? Typically, one of the
devices in your system stops working. Resource conflicts can exhibit themselves in
other ways, though. Any of the following events could be diagnosed as a resource
conflict:
RESOURCE CONFLICTS EXAMPLES
• A device transfers data inaccurately.
• Your system frequently locks up.
• Your sound card doesn't sound quite right.
• Your mouse doesn't work.
• Garbage appears on your video screen for no apparent reason.
• Your printer prints gibberish.
• You can't format a floppy disk.
• The PC starts in Safe mode (Windows 9x/Me) or can start only in Last Known
Good Configuration (Windows 2000/XP).
How to view Resources With conflict, missing driver, etc.), Windows
Windows 2000/XP automatically expands the branch that
• To view system resources with Windows 2000 contains that device and flags the device with
• In the past, the only way to resolve conflicts manually was to take the cover off your system and
start changing switches or jumper settings on the adapter cards. Fortunately, this is a bit easier
with plug-and-play because all the configuration is done via the Device Manager software
included in the operating system. Although some early plug-and-play cards also had jumper
switches or setup options to enable them to be configured manually, this feature was found
primarily on ISA PnP-compatible cards.
• Be sure you write down or print out your current system settings before you start making
changes. That way, you will know where you began and can go back to the original
configuration (if necessary).
IS 158 :System Resource
Members GROUP 25:
S/N NAME REGISTRATION PROGRAM
• "Out of Memory"
GROUP NO. 27
S/N NAME REGISTRATION NO. DEGREE PROGRAMME
A Port is a physical docking point which an external device can be connected to the
computer.
• It can also be programmatic docking point through which information flows a
program to the computer or over the internet.
Characteristics of ports
• external devices are connected to a computer using cables and ports.
• ports are slots on the motherboard into which cable of external device is plugged in.
• examples of external devices attached via ports are the mouse , keyboard, monitor ,
microphone , speakers , etc.
Types of ports
(i) Serial ports
• used for external modems and older computer mouse
• Two versions -9 pin and 25 pin model
(ii) Parallel port
• used for scanners and printers , also called printer port
• 25 pin model, IEEE 1284 compliant Centronics port
(iii) PS/2 port
• used for old computer keyboard and mouse , also called mouse port
• most of the old computers provide two PS/2 port, each for the mouse and keyboard
• IEEE 1284- compliant Centronics port
(iv) Universal Serial Bus (USB)
• it can connect all kinds of external USB devices such as hard disk , printer, scanner, mouse, keyboard etc.
• it was introduced in 1997, data travels at 12 megabits per seconds
• USB compliant devices can get power from a USB port.
(v) VGA (Video Graphics Array) port
• it has 15 holes, connects monitor to a computer’s video card
• similar to the serial port connector . However serial port connector has pins , VGA has holes
(vi) Firewire port
• transfers large amount of data at a very fast speed, data travels at 400 to 800 megabits per seconds
• Invented by Apple, has three variants-4 pin Firewire 400 connector, 6-pin Firewire 400 connector and 9-pin Firewire 800
connector
(vii) Ethernet port
• connects to a network and high speed internet, Data travels at 10 megabits to 1000 megabits per seconds depending upon the
network bandwidth.
(viii)Digital Video Interface, DVI port
• connects Flat panel LCD monitor to the computer’s high end video graphics cards
• very popular among video card manufactures.
(ix) Sockets
• connects the microphone and speakers to the sound card of the computer.
(x) MODEM port
(xi) Game port
(xii) Power connector
(xiii) HDMI port
Importance of I/O ports
(i) Connects controller devices such as joysticks , mouse ,keyboard and others.
(ii) Enables us to get hardcopy documents via parallel ports(printer ports)
(iii) Enables faster transfer of data into and from the computer i.e USB ports and firewire
port, whereby via USB can have a transfer rate of up to 480Mbps for USB(2.0) and 4.8Gbps
for USB(3.0).
(iv) Enables video output on a computer via a Video Graphics Array(VGA) port.
(v) Enables power to enter the computer , powering the on the computer through power
connector ports .
(vi) Enables computer connection with network(internet) through ethernet and telephone
networks via modem port
(vii) Enables the use of speakers and microphones through computer by using socker ports.
(viii) I/O ports allow connection to hardware , this hardware could be internal or external .
The ports are associated with copper circuits and memory ranges that allow the
communication of data between the CPU, RAM, and the port themselves.
PLUG AND PLAY
GROUP 29
• To use Plug and Play devices, turn on the computer and wait for it to
load the operating system. Then, connect the cable provided with the
device to appropriate port or connect under computer.
• When you connect your device to your computer the device identifies
itself to the computer. This identification process is called Plug and
Play, ideally you connect a device and it simplifies work.
HOW PLUG AND PLAY FUNCTIONS
• For Plug and Play to work, a system must have three-way compatibility between
the operating system, the BIOS, and the Plug and Play component.
• Plug and Play works in such a way all of the configurations are invisible to the
user. One simply have to plug in a new device, and it starts working right away.
• The operating system automatically detects device pluged in, and the system
examines hardware's information to see what it is.
• Once the hardware type is identified, the system loads appropriate software
(called device drivers) to make it work. It then allocates resources, resolves
conflicts, configures settings, and notifies other drivers or applications of the new
device so that everything works together. All this is done with minimal, if any,
user involvement.
• Some hardware, such as mice and keyboards, can be fully-functional through
Plug and Play. Others, such as sound cards and video graphics cards, require
installing the product's included software to complete the auto-configuration.
This usually involves a few clicks to start the installation process, followed by a
moderate wait for it to finish.
EXAMPLES OF PLUG AND PLAY DEVICES
• Computer monitors are considered plug and play devices and use a VGA, DVI or
HDMI cable to connect while others use USB cable and some eSATA.
• For plug and play to operate correctly on IBM compatible computers they must
have:
1. A BIOS that supports PnP
2. Windows 95 or later or another OS supporting PnP
3. A peripheral device designed to support PnP
EXAMPLES OF PLUG AND PLAY DEVICES