5.3 Host Commands
5.3 Host Commands
The host system issues a command to the device by writing necessary parameters
in related fields in the shadow block registers and writing a command code i
Command field of the shadow block registe
n the
rs.
tatus).
reset.
ata
ck
d.
The device can accept the command when the BSY bit is 0 (the device is not in
the busy s
The host system can halt the uncompleted command execution only at execution
of COMRESET or software
When the BSY bit is 1 or the DRQ bit is 1 (the device is requesting the PIO d
transfer) and the host system writes to the command field of the shadow blo
register, the correct device operation is not guarantee
5.3.1 Command code and parameters
Table 5.5 lists the supported commands, command code and the related fields to
be written necessary parameters at command execution.
Table 5.5 Command code and parameters (1/3)
COMMAND CODE (Bit)
PARAMETER USED
COMMAND NAME
7 6 5 4 3 2 1 0 FR
SC
SN
CY
DH
RECALIBRATE
0 0 0 1 X X X X N N N N D
READ
SECTOR(S)
0 0 1 0 0 0 0 R N Y Y Y Y
WRITE
SECTOR(S)
0 0 1 1 0 0 0 R N Y Y Y Y
WRITE
VERIFY
0 0 1 1 1 1 0 0 N Y Y Y Y
READ
VERIFY
SECTOR(S)
0 1 0 0 0 0 0 R N Y Y Y Y
SEEK
0 1 1 1 X X X X N N Y Y Y
EXECUTE
DEVICE
DIAGNOSTIC 1 0 0 1 0 0 0 0 N N N N N
INITIALIZE
DEVICE
PARAMETERS
1 0 0 1 0 0 0 1 N Y N N Y
DOWNLOAD
MICROCODE
1 0 0 1 0 0 1 0 Y Y Y N D
STANDBY IMMEDIATE
1
1
0
1
0
1
1
0
0
0
1
0
0
0
0
0
N N N N D
IDLE IMMEDIATE
1
1
0
1
0
1
1
0
0
0
1
0
0
0
1
1
Y N Y Y D
UNLOAD IMMEDIATE
1
1
0
1
0
1
1
0
0
0
1
0
0
0
1
1
Y N Y Y D
STANDBY
1
1
0
1
0
1
1
0
0
0
1
0
1
1
0
0
N Y N N D
C141-E269
5-27
Summary of Contents for MHY2040BS
Page 4: ...This page is intentionally left blank ...
Page 12: ...This page is intentionally left blank ...
Page 19: ...Contents Glossary GL 1 Acronyms and Abbreviations AB 1 Index IN 1 C141 E269 xv ...
Page 24: ...This page is intentionally left blank ...
Page 42: ...This page is intentionally left blank ...
Page 46: ...This page is intentionally left blank ...
Page 58: ...This page is intentionally left blank ...
Page 78: ...This page is intentionally left blank ...
Page 266: ...This page is intentionally left blank ...
Page 288: ...This page is intentionally left blank ...
Page 304: ...This page is intentionally left blank ...
Page 308: ...This page is intentionally left blank ...
Page 310: ...This page is intentionally left blank ...
Page 318: ...This page is intentionally left blank ...
Page 320: ......
Page 321: ......
Page 322: ......