Advanced Technology Attachment
|
Advanced Technology Attachment (ATA) is a standard interface for connecting storage devices such as hard disks and CD-ROM drives inside personal computers. Many terms and synonyms for ATA exist, including abbreviations such as IDE, ATAPI, and UDMA. ATA standards only allow cable lengths in the range of 18 to 36 inches (450 to 900 mm), so the technology normally appears as an internal computer storage interface. It provides the most common and the least expensive interface for this application.
Contents |
History
ATA_on_mainboard.jpg
Although the standard has always had the official name "ATA", marketing dictates dubbed an early version of the standard Integrated Drive Electronics (IDE), and the one following it Enhanced IDE (EIDE). Although these new names originated in branding convention and not as an official standard, the terms EIDE or E-IDE often appear interchangeably with IDE and ATA. With the introduction of Serial ATA around 2003, this configuration was retroactively renamed to Parallel ATA (P-ATA), referring to the method in which data travels over wires in this interface.
The interface at first only worked with hard disks, but eventually an extended standard came to work with a variety of other devices -- generally those using removable media. Principally, these devices include CD-ROM drives, tape drives, and large-capacity floppy drives such as the Zip drive and SuperDisk drive. The extension bears the name Advanced Technology Attachment Packet Interface (ATAPI), with the full standard now known as ATA/ATAPI.
The movement from programmed input/output (PIO) to direct memory access (DMA) provided another important transition in the history of ATA. Of these methods for accessing and transferring data within computers, PIO proved inefficient, requiring a significant amount of oversight by the computer's CPU. This meant that systems based around ATA devices generally performed disk-related activities much more slowly than computers using SCSI or other interfaces. However, DMA (and later Ultra DMA or UDMA) greatly reduced the amount of processing time the CPU had to use in order to read and write the disks.
ATA devices have suffered from a number of "barriers" in terms of how much data they can handle. However, new addressing systems and programming techniques have broken most of these barriers. Some of the ATA-specific barriers included: 504 MB, 8GB, 32 GB, and 137 GB. A variety of other barriers have existed, usually due to poorly-written drivers and disk input/output layers in operating systems. Even the barriers listed above mostly came about due to poor BIOS implementations. In fairness, hard drive sizes progressed very slowly from 1GB - 8GB, with companies marketing drive models that differ in size by only 100MB. It was therefore not unreasonable to think that the 8GB limit would not be exceeded in the useful life of a controller. However, such an excuse is not really possible for the 32GB and 137GB limit.
Each block on the drive has a numerical address, these limitations come about because some part of the system is unable to deal with numbers above a certain value, where that value represents the limit, and therefore any addresses above that do not work. This may manifest itself in some cases by the system thinking a drive is only the limit value, or the system refusing to boot, hanging on the BIOS screen where drives are initialised. In some cases, a BIOS upgrade for the motherboard will resolve the problem. This problem still exists in some external Firewire disk enclosures sold today (early 2005), such as those based on the Oxford 911 chipset (the Oxford 922 resolves this problem), which are limited to 128GB.
Parallel ATA Interface
Nappe.png
Ribbon cable with two connectors
Until the introduction of Serial ATA, 40-pin connectors generally attached drives to a ribbon cable. Each cable has two or three connectors, one of which plugs into a controller that interfaces with the rest of the computer system. The remaining one or two connectors plug into drives. Parallel ATA cables transfer data 16 or 32 bits at a time. One occasionally finds cables that allow for the connection of three ATA devices onto one IDE channel, but in this case one drive remains read-only (this type of configuration virtually never occurs).
Pin | Function | Pin | Function |
---|---|---|---|
1 | Reset | 2 | Ground |
3 | Data 7 | 4 | Data 8 |
5 | Data 6 | 6 | Data 9 |
7 | Data 5 | 8 | Data 10 |
9 | Data 4 | 10 | Data 11 |
11 | Data 3 | 12 | Data 12 |
13 | Data 2 | 14 | Data 13 |
15 | Data 1 | 16 | Data 14 |
17 | Data 0 | 18 | Data 15 |
19 | Ground | 20 | Key |
21 | DDRQ | 22 | Ground |
23 | I/O Write | 24 | Ground |
25 | I/O Read | 26 | Ground |
27 | IOC HRDY | 28 | Cable Select |
29 | DDACK | 30 | Ground |
31 | IRQ | 32 | No Connect |
33 | Addr 1 | 34 | GPIO_DMA66_Detect |
35 | Addr 0 | 36 | Addr 2 |
37 | Chip Select 1P | 38 | Chip Select 3P |
39 | Activity | 40 | Ground |
For most of ATA's history, ribbon cables had 40 wires, but an 80-wire version appeared with the introduction of the Ultra DMA/66 standard. The 80-wire cable provides one ground wire to each signal wire. This reduces the effects of electromagnetic induction between neighboring wires and enables the 66 megabyte per second (MB/s) transfer rate of UDMA4. The faster UDMA5 and UDMA6 standards require 80-conductor cables. This was done to reduce crosstalk. Though the number of wires doubled, the number of connector pins remains the same as on 40-conductor cables. The physical connectors are identical between the two cable types.
With the release of successive high-speed versions of the ATA standard in the late 1990s, the original cable length specifications became much less generous. With a maximum length of just 18 inches (450 mm), difficulties can ensue in connecting drives within large computer cases, or when mounting several physical drives into one computer.
If two drives attach to a single cable, the configuration generally sees one as a master and the other as a slave. The master drive generally shows up ahead of the slave drive when the computer's operating system enumerates available drives. The master drive arbitrates access to devices on the channel. Because of this, latency-sensitive devices such as early CD-RW drives often benefitted from functioning as a master, and each channel must have a master in order to function properly.
Most systems configure a single drive as a master. However, some drives have a special setting called single for this mode of operation (the brand Western Digital, in particular, utilizes this additional setting). Also, depending on the hardware and software available, a single drive can operate as the slave drive.
A drive setting called cable select has also emerged. In this mode of operation, the drives automatically configure themselves as master or slave. This is achieved by cutting wire 28 (on 40 wire cables, or wires 56 and 57 on 80 wire cables) between the two HDD/CDROM connectors. Some newer cables have this done internally in the connectors. In this case, the two connectors are of different colours.
Note that the transfer rate for each UDMA mode gives its maximum theoretical transfer rate. Protocol overhead effectively reduces this value, and other factors such as PCI or interconnect bus congestion may reduce transfer rates even further. In addition, as of February 2004 no IDE hard drives exist capable of sustaining transfers at or above 50 MB/s, so these transfer limits only really affect performance when the hard drive operates in burst mode, which means that the requested data comes from its cache and the drive therefore does not have to read the data from its platters.
ATA Standards
Standard | Other Names | Transfer rates (MB/s) | New Features | ANSI Reference |
---|---|---|---|---|
ATA-1 | ATA, IDE | PIO 0,1,2: 3.3, 5.2, 8.3 Single-word DMA 0,1,2: 2.1, 4.2, 8.3 Multi-word DMA 0: 4.2 | up to 528 MB | X3.221-1994 (http://www.t13.org/project/d0791r4c-ATA-1.pdf) (obsolete since 1999) |
ATA-2 | EIDE, Fast ATA, Fast IDE, Ultra ATA | PIO 3,4: 11.1, 16.6 Multi-word DMA 1,2: 13.3, 16,6 | LBA (up to 8.4 GB) | X3.279-1996 (http://www.t13.org/project/d0948r4c-ATA-2.pdf) (obsolete since 2001) |
ATA-3 | EIDE | " | S.M.A.R.T., Security | X3.298-1997 (http://www.t13.org/project/d2008r7b-ATA-3.pdf) (obsolete since 2002) |
ATA-4 | ATAPI-4, ATA/ATAPI-4 | Ultra-DMA/33: UDMA 0,1,2: 16.7, 25.0, 33.3 | ATAPI packet command | NCITS 317-1998 |
ATA-5 | ATA/ATAPI-5 | Ultra-DMA/66: UDMA 3,4: 44.4, 66.7 | detect 80 wires cables | NCITS 340-2000 |
ATA-6 | ATA/ATAPI-6 | Ultra-DMA/100: UDMA 5: 100 | Automatic Acoustic Management | NCITS 347-2001 |
ATA-7 | ATA/ATAPI-7 | Ultra-DMA/133: UDMA 6: 133 | -- | NCITS 361-2002 |
ATA-8 | ATA/ATAPI-8 | -- | -- | in project |
See also
- Master/slave, a model for a communication protocol where one device or process has unidirectional control over another (or others).
External links
- Overview and History of the IDE/ATA Interface (http://www.pcguide.com/ref/hdd/if/ide/over-c.html)
- ATA/ATAPI history (http://www.ata-atapi.com/hist.htm)
- Enhanced IDE/Fast-ATA/ATA-2 FAQ (http://www.faqs.org/faqs/pc-hardware-faq/enhanced-IDE/part1/)
- Hard Drive Size Barriers (http://www.dewassoc.com/kbase/hard_drives/hard_drive_size_barriers.htm)
- T13 Technical Standards Group (http://www.t13.org/)de:ATA (Schnittstelle)
es:Integrated Drive Electronics fr:Integrated drive electronics it:Advanced Technology Attachment nl:Integrated Drive Electronics ja:Advanced Technology Attachment pl:ATA sk:ATA