IDE CONTROLLER WORKS
Most personal computers have one or more of the following storage devices:
- Floppy drive
- Hard drive
- CD-ROM drive
Drives that use the interface officially known as AT Attachment or ATA are also often called something else entirely: Integrated Drive Electronics or IDE drives. In fact, the term "IDE" is probably more widely used than the correct name for the interface! (This is changing, however, as new terms such as "Ultra ATA" grow in popularity.) IDE can be considered the unofficial "overall name" for this hard disk interface; it has been used since the earliest days of these drives, and will probably always be used by a large segment of the industry.
The reason for the name, of course, is that the IDE interface was the first where the logic board was integrated on the hard disk itself. As described in some detail in the overview and history of the interface, drives prior to this point had the hard drive control logic on a separate controller card that plugged in a system bus slot. This led to a number of compatibility and reliability problems that were corrected by mating the logic board to the hard disk itself.
The name "IDE" really reflects this design decision and has nothing to do with the interface per se. Today, all drives have integrated logic boards, including those that use interfaces quite different from ATA, such as SCSI or USB. However, habits are hard to break in the computer world, and use of the name persists. This has the potential for confusion, though most people today know that "IDE" refers to the IDE/ATA interface specifically. (One of the reasons that the name "IDE" was never adopted for the formal standards is that the developers of the standards considered it confusing.)
It's important to remember that today, being told that a particular drive is an "IDE drive" tells you only that it uses some variant of the IDE/ATA interface. "IDE" by itself is a generic term that does not tell you anything about the drive, such as what modes it supports or what official standard it adheres to. You need to find out more about the drive to understand the details of its interface.
IDE Evolution
IDE was created as a way to standardize the use of hard drives in computers. The basic concept behind IDE is that the hard drive and the controller should be combined. The controller is a small circuit board with chips that provide guidance as to exactly how the hard drive stores and accesses data. Most controllers also include some memory that acts as a buffer to enhance hard drive performance.
Before IDE, controllers and hard drives were separate and often proprietary. In other words, a controller from one manufacturer might not work with a hard drive from another manufacturer. The distance between the controller and the hard drive could result in poor signal quality and affect performance. Obviously, this caused much frustration for computer users
The birth of the IDE interface led to combining a controller like this one with a hard drive
While the IDE interface was originally developed for connecting hard drives, it has evolved into the universal interface for connecting internal floppy drives, CD-ROM drives and even some tape backup drives. Although it is very popular for internal drives, IDE is rarely used for attaching an external device.
There are several variations of ATA, each one adding to the previous standard and maintaining backward compatibility.
The standards include:
- ATA-1 - The original specification that Compaq included in the Deskpro 386. It instituted the use of a master/slave configuration. ATA-1 was based on a subset of the standard ISA 96-pin connector that uses either 40 or 44 pin connectors and cables. In the 44-pin version, the extra four pins are used to supply power to a drive that doesn't have a separate power connector. Additionally, ATA-1 provides signal timing for direct memory access (DMA) and programmed input/output (PIO) functions. DMA means that the drive sends information directly to memory, while PIO means that the computer's central processing unit (CPU) manages the information transfer. ATA-1 is more commonly known as IDE.
- ATA-2 - DMA was fully implemented beginning with the ATA-2 version. Standard DMA transfer rates increased from 4.16 megabytes per second (MBps) in ATA-1 to as many as 16.67 MBps. ATA-2 provides power management, PCMCIA card support and removable device support. ATA-2 is often called EIDE (Enhanced IDE), Fast ATA or Fast ATA-2. The total hard drive size supported increased to 137.4 gigabytes. ATA-2 provided standard translation methods for Cylinder Head Sector (CHS) for hard drives up to 8.4 gigabytes in size. CHS is how the system determines where the data is located on a hard drive. The reason for the big discrepancy between total hard drive size and CHS hard drive support is because of the bit sizes used by the basic input/output system (BIOS) for CHS. CHS has a fixed length for each part of the address.
- ATA-3 - With the addition of Self-Monitoring Analysis and Reporting Technology (SMART), IDE drives were made more reliable. ATA-3 also adds password protection to access drives, providing a valuable security feature.
- ATA-4 - Probably the two biggest additions to the standard in this version are Ultra DMA support and the integration of the AT Attachment Program Interface (ATAPI) standard. ATAPI provides a common interface for CD-ROM drives, tape backup drives and other removable storage devices. Before ATA-4, ATAPI was a completely separate standard. With the inclusion of ATAPI, ATA-4 immediately improved the removable media support of ATA. Ultra DMA increased the DMA transfer rate from ATA-2's 16.67 MBps to 33.33 MBps. In addition to the existing cable that uses 40 pins and 40 conductors (wires), this version introduces a cable that has 80 conductors. The other 40 conductors are ground wires interspersed between the standard 40 conductors to improve signal quality. ATA-4 is also known as Ultra DMA, Ultra ATA and Ultra ATA/33.
- ATA-5 - The major update in ATA-5 is auto detection of which cable is used: the 40-conductor or 80-conductor version. Ultra DMA is increased to 66.67 MB/sec with the use of the 80-conductor cable. ATA-5 is also called Ultra ATA/66.
Cable Key
IDE devices use a ribbon cable to connect to each other. Ribbon cables have all of the wires laid flat next to each other instead of bunched or wrapped together in a bundle. IDE ribbon cables have either 40 or 80 wires. There is a connector at each end of the cable and another one about two-thirds of the distance from the motherboard connector. This cable cannot exceed 18 inches (46 cm) in total length (12 inches from first to second connector, and 6 inches from second to third) to maintain signal integrity. The three connectors are typically different colors and attach to specific items:
- The blue connector attaches to the motherboard.
- The black connector attaches to the primary (master) drive.
- The grey connector attaches to the secondary (slave) drive.
Masters and Slaves
To allow for two drives on the same cable, IDE uses a special configuration called master and slave. This configuration allows one drive's controller to tell the other drive when it can transfer data to or from the computer. What happens is the slave drive makes a request to the master drive, which checks to see if it is currently communicating with the computer. If the master drive is idle, it tells the slave drive to go ahead. If the master drive is communicating with the computer, it tells the slave drive to wait and then informs it when it can go ahead.
The computer determines if there is a second (slave) drive attached through the use of Pin 39 on the connector. Pin 39 carries a special signal, called Drive Active/Slave Present (DASP), that checks to see if a slave drive is present.
Although it will work in either position, it is recommended that the master drive is attached to the connector at the very end of the IDE ribbon cable. Then, a jumper on the back of the drive next to the IDE connector must be set in the correct position to identify the drive as the master drive. The slave drive must have either the master jumper removed or a special slave jumper set, depending on the drive. Also, the slave drive is attached to the connector near the middle of the IDE ribbon cable. Each drive's controller board looks at the jumper setting to determine whether it is a slave or a master. This tells them how to perform. Every drive is capable of being either slave or master when you receive it from the manufacturer. If only one drive is installed, it should always be the master drive.
This is nice and useful post, have very interesting points. Keep sharing like that.
ReplyDeleterepair pst files