SanDisk SDCFH-004G Product Manual - Page 80

Table 5-38, Write Multiple Command

Page 80 highlights

ATA Command Description SanDisk CompactFlash Card OEM Product Manual DRQ qualification of the transfer is required only at the start of the data block, not on each sector. The block count of sectors to be transferred without intervening interrupts is programmed by the Set Multiple Mode command, which must be executed prior to the Write Multiple command. Table 5-38 Write Multiple Command Bit 7 6 5 4 3 2 1 0 Command (7) C5H C/D/H (6) X LBA X Drive Head Cyl High (5) Cylinder High Cyl Low (4) Cylinder Low Sec Num (3) Sector Number Sec Cnt (2) Sector Count Feature (1) X When the Write Multiple command is issued, the Sector Count Register contains the number of sectors (not the number of blocks or the block count) requested. If the number of requested sectors is not evenly divisible by the sector/block, as many full blocks as possible are transferred, followed by a final, partial block transfer. The partial block transfer is for n sectors, where: n = remainder (sector count/block count). If the Write Multiple command is attempted before the Set Multiple Mode command has been executed or when Write Multiple commands are disabled, the Write Multiple operation will be rejected with an aborted command error. Errors encountered during Write Multiple commands are posted after the attempted writes of the block or partial block transferred. The Write command ends with the sector in error, even if it is in the middle of a block. Subsequent blocks are not transferred in the event of an error. Interrupts are generated when DRQ is set at the beginning of each block or partial block. The Command Block registers contain the cylinder, head and sector number of the sector where the error occurred and the Sector Count Register contains the residual number of sectors that need to be transferred for successful completion of the command e.g., each block has 4 sectors, a request for 8 sectors is issued and an error occurs on the third sector. The Sector Count Register contains 6 and the address is that of the third sector. 02/07, Rev. 12.0 5-26 © 2007 SanDisk Corporation

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

ATA Command Description
SanDisk CompactFlash Card OEM Product Manual
DRQ qualification of the transfer is required only at the start of the data block, not on each
sector. The block count of sectors to be transferred without intervening interrupts is
programmed by the Set Multiple Mode command, which must be executed prior to the Write
Multiple command.
Table 5-38
Write Multiple Command
Bit
7
6
5
4
3
2
1
0
Command (7)
C5H
C/D/H (6)
X
LBA
X
Drive
Head
Cyl High (5)
Cylinder High
Cyl Low (4)
Cylinder Low
Sec Num (3)
Sector Number
Sec Cnt (2)
Sector Count
Feature (1)
X
When the Write Multiple command is issued, the Sector Count Register contains the number
of sectors (not the number of blocks or the block count) requested. If the number of requested
sectors is not evenly divisible by the sector/block, as many full blocks as possible are
transferred, followed by a final, partial block transfer. The partial block transfer is for n
sectors, where:
n = remainder (sector count/block count)
.
If the Write Multiple command is attempted before the Set Multiple Mode command has been
executed or when Write Multiple commands are disabled, the Write Multiple operation will be
rejected with an aborted command error.
Errors encountered during Write Multiple commands are posted after the attempted writes of
the block or partial block transferred. The Write command ends with the sector in error, even if
it is in the middle of a block. Subsequent blocks are not transferred in the event of an error.
Interrupts are generated when DRQ is set at the beginning of each block or partial block.
The Command Block registers contain the cylinder, head and sector number of the sector
where the error occurred and the Sector Count Register contains the residual number of sectors
that need to be transferred for successful completion of the command e.g., each block has 4
sectors, a request for 8 sectors is issued and an error occurs on the third sector. The Sector
Count Register contains 6 and the address is that of the third sector.
02/07, Rev. 12.0
5-26
© 2007 SanDisk Corporation