Interface
When the BSY bit is 1 or the DRQ bit is 1 (the device is requesting the data transfer) and the host system writes to the command register, the correct device operation is not guaranteed.
5.3.1 Command code and parameters
Table 5.3 lists the supported commands, command code and the registers that needed parameters are written.
Table 5.3 Command code and parameters (1 of 2)
Command name |
|
| Command code (Bit) |
|
|
| Parameters used |
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| 7 | 6 |
| 5 | 4 | 3 | 2 |
| 1 | 0 | FR | SC | SN | CY | DH | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
READ SECTOR(S) | 0 | 0 |
| 1 | 0 | 0 | 0 |
| 0 | R | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
READ MULTIPLE | 1 | 1 |
| 0 | 0 | 0 | 1 |
| 0 | 0 | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
READ DMA | 1 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | R | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
READ VERIFY SECTOR(S) | 0 | 1 |
| 0 | 0 | 0 | 0 |
| 0 | R | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WRITE MULTIPLE | 1 | 1 |
| 0 | 0 | 0 | 1 |
| 0 | 1 | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WRITE DMA | 1 | 1 |
| 0 | 0 | 1 | 0 |
| 1 | R | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WRITE VERIFY | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 0 | 0 | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WRITE SECTOR(S) | 0 | 0 |
| 1 | 1 | 0 | 0 |
| 0 | R | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RECALIBRATE | 0 | 0 |
| 0 | 1 | X | X |
| X | X | N |
| N | N | N |
| D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SEEK | 0 | 1 |
| 1 | 1 | X | X |
| X | X | N |
| N | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INITIALIZE DEVICE | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | N |
| Y | N | N |
| Y |
PARAMETERS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IDENTIFY DEVICE | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 0 | 0 | N |
| N | N | N |
| D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IDENTIFY DEVICE DMA | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 0 | 0 | N |
| N | N | N |
| D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET FEATURES | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | Y |
| N* | N | N |
| D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET MULTIPLE MODE | 1 | 1 |
| 0 | 0 | 0 | 1 |
| 1 | 0 | N |
| Y | N | N |
| D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXECUTE DEVICE DIAGNOSTIC | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 0 | N |
| N | N | N |
| D* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
READ LONG | 0 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | R | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WRITE LONG | 0 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | R | N |
| Y | Y | Y |
| Y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
READ BUFFER | 1 | 1 |
| 1 | 0 | 0 | 1 |
| 0 | 0 | N |
| N | N | N |
| D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WRITE BUFFER | 1 | 1 |
| 1 | 0 | 1 | 0 |
| 0 | 0 | N |
| N | N | N |
| D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IDLE | 1 | 0 |
| 0 | 1 | 0 | 1 |
| 1 | 1 | N |
| Y | N | N |
| D |
| 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|