K6610170
Rev.2
Dec 22, 2004
- 128 -
7.5.64. Write Sectors [30h, 31h]
Task
File
Registers
7 6 5 4 3 2 1 0
Command
30h or 31h
LBA High
L = 0: Cylinder number bit 15 - 8
L = 1: 28-bit LBA address bit 23 - 16
LBA Mid
L = 0: Cylinder number bit 7 - 0
L = 1: 28-bit LBA address bit 15 - 8
LBA Low
L = 0: Sector number
L = 1: 28-bit LBA address bit 7 - 0
Device/Head
X
L
X
DRV L = 0:
Head Number
L = 1:
28-bit LBA address
bit 27-24
Sector Count
Sector Count
Features
XX
The WRITE SECTORS command transfers one or more sectors from the host to the device. The data is
then written to the media, beginning at the specified in the LBA High (Cylinder High), LBA Mid (Cylinder Low)
and LBA Low (Sector Number) Registers.
At command completion, the Command Block Registers contain the cylinder, head, and sector numbers or
LBA address of the last sector written. If an error occurs during a write of more than one sector, writing
terminates at the sector where the error occurs. The Command Block Registers contain the cylinder, head,
and sector numbers or LBA address of the sector where the error occurred.