4.5 ATA Commands
4.5.5 EXECUTE DEVICE DIAGNOSTIC (90h)
| Table 4.24 EXECUTE DEVICE DIAGNOSTIC command |
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Bit |
|
|
| |
|
|
|
|
|
|
|
|
|
|
| 7 | 6 | 5 | 4 |
| 3 | 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
|
CM | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | |
|
|
|
|
|
|
|
|
|
|
DH | X | X | X | X |
| X | X | X | X |
|
|
|
|
|
|
|
|
|
|
CH | X | X | X | X |
| X | X | X | X |
|
|
|
|
|
|
|
|
|
|
CL | X | X | X | X |
| X | X | X | X |
|
|
|
|
|
|
|
|
|
|
SN | X | X | X | X |
| X | X | X | X |
|
|
|
|
|
|
|
|
|
|
SC | X | X | X | X |
| X | X | X | X |
|
|
|
|
|
|
|
|
|
|
FR | X | X | X | X |
| X | X | X | X |
|
|
|
|
|
|
|
|
|
|
When the ODD receives this command, it recognizes
When the ODD receives this command, it responds to the command regardless of the DEV bit value; this means that the drive is unit 0 or 1.
When the ODD is device 0 (master), its response after the command is received depends on whether device 1 (slave) is connected.
When no device 1 is connected
The ODD sets 01h in the Error register and terminates the command.
When device 1 is connected
The ODD monitors the PDIAG- signal sent from device 1 for six seconds. If device 1 asserts the PDIAG- signal within this time, the ODD recognizes that the device 1
When the ODD is device 1
The ODD asserts the PDIAG- signal within five seconds. It sets 01h in the Error register and ends the command.