📅  最后修改于: 2023-12-03 15:18:16.480000             🧑  作者: Mango
PATA (Parallel Advanced Technology Attachment) is a type of computer interface used to connect storage devices, such as hard disk drives or optical drives, to a computer's motherboard. It was the standard interface for connecting storage devices in personal computers before being replaced by SATA (Serial ATA).
PATA provides a parallel interface for data transfer between the storage device and the computer, allowing for high-speed data transfer rates. It uses a 40-pin flat ribbon cable to connect the storage device to the motherboard.
The following table shows the pinout diagram for a typical PATA connector:
| Pin | Name | Description | | --- | -------- | --------------------------------------------------------------- | | 1 | Reset | Used to reset the storage device | | 2 | Ground | Ground connection | | 3 | Data 7 | Data bit 7 | | 4 | Data 8 | Data bit 8 | | 5 | Data 6 | Data bit 6 | | 6 | Data 9 | Data bit 9 | | 7 | Data 5 | Data bit 5 | | 8 | Data 10 | Data bit 10 | | 9 | Data 4 | Data bit 4 | | 10 | Data 11 | Data bit 11 | | 11 | Data 3 | Data bit 3 | | 12 | Data 12 | Data bit 12 | | 13 | Data 2 | Data bit 2 | | 14 | Data 13 | Data bit 13 | | 15 | Data 1 | Data bit 1 | | 16 | Data 14 | Data bit 14 | | 17 | Data 0 | Data bit 0 | | 18 | Data 15 | Data bit 15 | | 19 | Ground | Ground connection | | 20 | Key | Key pin to prevent incorrect insertion of the cable | | 21 | Reserved | Reserved for future use | | 22 | Reserved | Reserved for future use | | 23 | Reserved | Reserved for future use | | 24 | Reserved | Reserved for future use | | 25 | Reserved | Reserved for future use | | 26 | Reserved | Reserved for future use | | 27 | Reserved | Reserved for future use | | 28 | Reserved | Reserved for future use | | 29 | Reserved | Reserved for future use | | 30 | Reserved | Reserved for future use | | 31 | Cable Sel| Used to select a device when two devices are connected on one cable| | 32 | Drive 1 | Drive select signal for device 1 | | 33 | Drive 0 | Drive select signal for device 0 | | 34 | Active | Active signal indicating that transfer is in progress | | 35 | Write | Signal used to write data to the storage device | | 36 | Read | Signal used to read data from the storage device | | 37 | IO CHRDY | Input/output channel ready signal | | 38 | IO CS16 | Input/output chip select signal for a 16-bit data transfer | | 39 | IO CS8 | Input/output chip select signal for an 8-bit data transfer | | 40 | Ground | Ground connection |
PATA is an older computer interface that was widely used before the introduction of SATA. It provides a parallel interface for high-speed data transfer between storage devices and the computer's motherboard. The pinout diagram provided above can help programmers and hardware enthusiasts understand how the PATA connector is wired.