15.36 Write DMA (CAh/CBh)
see belowStatus1 1 0 0 1 0 1 RCommand
- - - -
H H H H
Device/Head1 L 1 D H H H HDevice/Head
V V V V V V V VCylinder HighV V V V V V V VCylinder High
V V V V V V V VCylinder LowV V V V V V V VCylinder Low
V V V V V V V VSector NumberV V V V V V V VSector Number
V V V V V V V VSector CountV V V V V V V VSector Count
see belowError
- - - - - - - -
Feature
- - - - - - - -
Data
- - - - - - - -
Data
7 6 5 4 3 2 1 0Register7 6 5 4 3 2 1 0Register
Command Block Input RegistersCommand Block Output Registers
V
-
0
-
VVV000V0V00V
ERRIDXCORDRQDSCDFRDYBSYAMNT0NABT0IDN0UNCCRC
0123456701234567
Status RegisterError Register
Figure 136. Write DMA Command (CAh/CBh)
The Write DMA command transfers one or more sectors of data from the host to the device. The data is
then written to the disk media.
The sectors of data are transferred through the Data Register 16 bits at a time.
The host initializes a slave-DMA channel prior to issuing the command. Data transfers are qualified by
DMARQ and are performed by the slave-DMA channel. The device issues only one interrupt per
command to indicate that the data transfer has terminated and the status is available.
If an uncorrectable error occurs, the write will be terminated at the failing sector.
Output parameters to the device
Sector Count
The number of continuous sectors to be transferred. If 0 is specified, then
256 sectors will be transferred.
Sector Number
The sector number of the first sector to be transferred. (L=0)
In LBA mode this register contains LBA bits 0–7. (L=1)
Cylinder High/Low
The cylinder number of the first sector to be transferred. (L=0)
In LBA mode this register contains LBA bits 8–15 (Low), 16–23 (High). (L=1)
H
The head number of the first sector to be transferred. (L=0)
In LBA mode this register contains LBA bits 24–27. (L=1)
Deskstar 60 GXP Hard disk drive specification
179