Текст страницы
12.73 Write Sector(s) (30h/31h)
The Write Sector(s) command transfers one or more sectors from the host to the device, and then the data is written
to the disk media.
The sectors are transferred through the Data Register 16 bits at a time.
If an uncorrectable error occurs, the write will be terminated at the failing sector.
Table 262 Write Sector(s) Command (30h/31h)
Command Input
Field
Description
FEATURE
Reserved
COUNT
The number of logical sectors to be transferred. A value of 0000h
indicates that 65 536 logical sectors are to be transferred
LBA
LBA of first logical sector to be transferred
DEVICE
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
Command
7:0 30h or 31h
Output Parameters To The Device
Sector Count
The number of continuous sectors to be transferred. If zero is specified, then 256 sectors
will be transferred.
Sector Number
This register contains LBA bits 0 - 7.
Cylinder High/Low
This register contains LBA bits 8 - 15 (Low), 16 - 23 (High).
H
This register contains LBA bits 24 - 27.
R
The retry bit, but this bit is ignored.
Input Parameters From The Device
Sector Count
The number of requested sectors not transferred. This will be zero unless an unrecoverable
error occurs.
Sector Number
This register contains current LBA bits 0 - 7.
Cylinder High/Low
This register contains current LBA bits 8 - 15 (Low), 16 - 23 (High).
H
This register contains current LBA bits 24 - 27.
Normal Outputs
See Normal Outputs in Section 12.8 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in Section 12.65 Write DMA FUA Ext (3Dh)
342
Hard Disk Drive Specification