|
The Bus, I/O and System Resources SYSTEM RESOURCES - Very A+ By definition a resource is a supply or store of something. The system has a finite supply of the following resources, thus resource management is an important concept. Luckily (or not) the system tries to manage these for you and it is (usually) pretty good at it.
INTERRUPT REQUEST (IRQ) Since the CPU has no control over when an input event may occur, IBM system designers designed PCs to be interrupt driven. Interrupt driven means that when a peripheral device needs to send its data to the system, it must first notify the CPU that it has something for it. The CPU will then stop what it is doing and tend to the device that interrupted it. So an Interrupt is like a doorbell for the CPU!
Bad News / Good News!
In the original PC, this IRQ manager was called the 8259 PIC (Programmable Interrupt Controller) chip. This chip could accept eight interrupt request (IRQ) wires, six of which were connected to peripheral devices through the ISA bus slots another two were wired directly to the system. IBM System designers soon realized that eight wasn't enough so they added a 2nd 8259 PIC. This chip is wired to (or cascades) the original PIC. By cascading them in this manner we are left with a total of 15 useable interrupt lines.
IRQ summary
A Standard IRQ table - Very A+
You should note that IRQs 0, 1, 8 and 13 connect to the devices they service directly and are not available to the bus system - thus they can not be made available to peripheral devices. Notice also that devices can use either IRQ 2 OR IRQ 9 as designated interrupts. Because they cascade together, your devices may use one or the other but not both. In addition to the numerical order of IRQs, there are important priority issues to consider. To resolve any conflicts due to simultaneous door-bell ringing, the following priorities are observed: 0, 1, 2, 8, 9, 10, 11, 12, 13, 14, 15, 3, 4, 5, 6, 7, 8.
DMA (Direct Memory Access) Generally when a byte of data is moved either from one place to another in the system's main memory or from main memory to an I/O port, it is moved in two steps.
This is a bit inefficient. First, while the CPU is busy moving bytes it cant be doing anything else. Second, it takes two steps, one to move bytes in and one to move bytes out. System designers recognized this bottleneck early and added another special controller chip to the system's circuitry. This chip was the 8237 DMA (Direct Memory Access) Controller chip. DMA allows I/O to memory and memory to memory moves without bothering the CPU. The CPU does do the "setup" and the data is sent via the ISA bus. Standard DMA Table - Very A+
I/O Address - its two, two memories in one Peripheral devices need a way "into" computer memory. Your PC uses the first 64K of memory address numbers as "portals" into and out of RAM. BEWARE - these memory addresses have "dual roles" depending on if they are acting as just normal memory or as I/O memory. These are the addresses we see in the device manager. The device manager alerts us when more than one device tries to use the same I/O address space. There are 64K of these ports, and each hardware device may use a range of them. Some are input only, some are output only and some are input/output depending on hardware. No two devices may share the same port, so ranges must not overlap. I/O addresses to know and love - Very A+ The A+ test expects you to KNOW the following devices STANDARD BASE I/O address:
Can you think of a way to help you remember this? Managing resources The Device Manager - Very A+
The yellow exclamation point tells us that a device has conflicts.
The red X tells us that a device is disabled - When a recognized device has no resources allocated to it, Windows marks the device as disabled.
We may be able to change settings
Bus systems that move data around inside a PC include:
The Extremely Simplified Bus
The way-back machine Historically we would need to add four more buses to our data-transportation list. These four buses include:
If we include buses that dont stop at the edge of the case we can also include:
And if we include special buses for mobile computers we would add:
16-bit ISA
PCI
AGP
In Depth: AGP - "Accelerated Graphics Port" - a dedicated point-to-point channel so that the graphics controller can directly access main memory. The AGP channel is 32 bits wide and runs at 66 MHz. This translates into a total bandwidth of 266 MBps, double that of the PCI bandwidth of 133 MBps. AGP also supports three optional faster modes (x 2, x 4 and x 8), with throughputs of 533 MBps, 1.07 GBps and 2 GBps. In addition, AGP allows 3-D textures to be stored in main memory rather than video memory. This enables the card to utilize its own memory for processing the display output, resulting in faster video display. AGP has a couple of important system requirements. The chipset must support AGP and the motherboard must be equipped with an AGP bus slot or must have a built-in AGP graphics system. Note that there are at least 6 different footprints for AGP cards. One important change in AGP was the drop from 3.3V to 1.5V. Cards are keyed to prevent incorrect voltages and added features.
Additional busses - Very A+ CNR Communications Network Riser Because CPUs are getting faster and more powerful, some digital processing jobs can be implemented in main chipset and share CPU power. The analog functions of the expansion component are then placed on a small (riser) card that is inserted into a special slot on the motherboard. /P> Supports V.90 analog modem, multi-channel audio, phone-line based networking, and 10/100 Ethernet based networking. Replaced AMR Audio Modem Riser
Firewire - Very A+ Developed by Apple, Firewire (IEEE1394a) is a high-speed input/output technology for connecting peripheral devices to a computer or to each other.
The end is near!
4, 6 and 9-pin cables. Only 6 and 9-pin carry power USB - Very A+ The Universal Serial Bus is a connectivity standard enabling simple Plug and Play connections to devices such as modems, digital cameras, keyboards, and mice.
The end is here!
A and B cables ends. B cable ends (the square ones) go on devices that do not have permanently attached cables. The A cable are for devices with permanently attached cables. TO REVIEW it seems like such a long time ago IRQ When an I/O device wants notify the system that there is some data that needs to be "let in", it uses an interrupt request (or IRQ). An interrupt is like a doorbell for your system. Generally, each device must have its own doorbell. Know: ALL standard IRQs I/O The system then lets the data in through a memory location called an I/O Address (or Port). A memory address from 0 to 64K can EITHER act as a standard memory location OR a Port, depending on the command that is used to access that location. Know: the I/O addresses for all COM, LPT and IDE ports DMA Usually the CPU must move every bit of data from a location, into the CPUs registers, and then to some other location like into an I/O address. DMA (Direct Memory Access) uses a chip (a special-purpose processor) that facilitates this data movement. That way the CPU can work on more important things while data transfer is done in the "background". Know: The DMA channel for the floppy controller |
Edited (2003) By Vlad Magero