Interrupts and Interrupts Handling
Interrupts and Interrupts Handling
Hardware Interrupt
A hardware interrupt is an electronic alerting signal sent to the processor
from an external device, like a disk controller or an external peripheral. For
example, when we press a key on the keyboard or move the mouse, they
trigger hardware interrupts which cause the processor to read the keystroke
or mouse position.
Software Interrupt
A software interrupt is caused either by an exceptional condition or a special
instruction in the instruction set which causes an interrupt when it is
executed by the processor. For example, if the processor's arithmetic logic
unit runs a command to divide a number by zero, to cause a divide-by-zero
exception, thus causing the computer to abandon the calculation or display
an error message. Software interrupt instructions work similar to subroutine
calls.
Polling
The state of continuous monitoring is known as polling. The microcontroller
keeps checking the status of other devices; and while doing so, it does no
other operation and consumes all its processing time for monitoring. This
problem can be addressed by using interrupts.
In the interrupt method, the controller responds only when an interruption
occurs. Thus, the controller is not required to regularly monitor the status
(flags, signals etc.) of interfaced and inbuilt devices.
Memory Bus
One relatively recent change in the bus architecture used with most personal
computers today is connecting the CPU directly to RAM. This change allows
for increased performance; the bus used to connect the CPU to RAM is
typically called the memory bus.
Front side Bus (FSB)
The front side bus (FSB) connects the CPU to the chipset—a set of chips that
connects the various buses together and connects the CPU to the rest of the
bus architecture. Because of the importance of the FSB connection, CPU
manufacturers typically use special high speed technologies; for instance,
Intel uses its Quick Path Interconnect (QPI) technology and AMD uses its
Hyper Transport Technology.
USB Bus
One of the more versatile bus architectures is the Universal Serial Bus (USB).
The USB standard allows 127 different devices to connect to a computer via a
single USB port on the computer’s system unit. At 12 Mbps (millions of bits
per second), the original USB 1.0 standard is slow. However, the newer USB
2.0 standard supports data transfer rates of 480 Mbps and the newest 4.8
Gbps USB 3.0 standard (also called SuperSpeed USB) is about 10 times as fast
as USB 2.0. The convenience and universal support of USB have made it one
of the most widely used standards for connecting peripherals (such as
keyboards, mice, printers, digital cameras, and storage devices) today.
Fire Wire Bus
FireWire (also known as IEEE 1394) is a high-speed bus standard developed
by Apple for connecting devices—particularly multimedia devices like digital
video cameras—to a computer. Like USB, FireWire can connect multiple
external devices via a single port.
Types of Computer Bus
There are a variety of buses found inside the computer.
Data Bus:
The data bus allows data to travel back and forth between
the microprocessor (CPU) and memory (RAM).
Address Bus:
The address bus carries information about the location of data in memory.
Control Bus:
The control bus carries the control signals that make sure everything is
flowing smoothly from place to place.