
4.5 ATA Commands
4.5 ATA Commands
Table 4.17 lists supported ATA commands.
This section represents ODD registers as shown below.
Cylinders High/Low registers: CY
Sector register: SC
Device/Head register: DH
Sector Number register: SN
Features register: FR
Table 4.17 Command codes and parameters
Protocol | Command name | Command |
| Parameters used |
| Section | ||
|
| code |
|
|
|
|
|
|
|
| FR | SC | SN | CY | DH |
| |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
ND | CHECK POWER MODE | E5h |
| y |
|
| D | 4.5.1 |
|
|
|
|
|
|
|
|
|
ND | DEVICE RESET | 08h |
|
|
|
| D | 4.5.2 |
|
|
|
|
|
|
|
|
|
ND | EXECUTE DEVICE | 90h |
|
|
|
| D* | 4.5.3 |
| DIAGNOSTIC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ND | FLUSH CACHE | E7h |
| y | y | y | D | 4.5.4 |
|
|
|
|
|
|
|
|
|
ND | GET MEDIA STATUS | DAh |
|
|
|
| D | 4.5.5 |
|
|
|
|
|
|
|
|
|
PI | IDENTIFY PACKET DEVICE | A1h |
|
|
|
| D | 4.5.6 |
|
|
|
|
|
|
|
|
|
ND | IDLE IMMEDIATE | E1h |
|
|
|
| D | 4.5.7 |
|
|
|
|
|
|
|
|
|
ND | NOP | 00h |
|
|
|
| y | 4.5.8 |
|
|
|
|
|
|
|
|
|
∀ | PACKET | A0h | y | y | y | y | D | 4.5.9 |
|
|
|
|
|
|
|
|
|
ND | SET FEATURES | EFh | y | y |
|
| D | 4.5.10 |
|
|
|
|
|
|
|
|
|
ND | SLEEP | E6h |
|
|
|
| D | 4.5.11 |
|
|
|
|
|
|
|
|
|
ND | STANDBY IMMEDIATE | E0h |
|
|
|
| D | 4.5.12 |
|
|
|
|
|
|
|
|
|
∀∀ | RESERVED: Other codes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Notes: |
|
|
|
|
|
|
|
1.y - This register contains parameters effective to run the command.
D - Indicates that only the Device parameter is effective and the LUN parameter is ineffective.
D* - Device 0 is addressed, but both devices execute the command.
2.The protocol above indicates the command protocol used.