English
Language : 

HFDOM40S6RXXX Datasheet, PDF (27/30 Pages) Hanbit Electronics Co.,Ltd – 40Pin Flash Disk Module Min.128MB ~ Max.4G, True IDE Interface
HANBit
HFDOM40S6Rxxx
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.
Write Multiple without Erase – CDh
Bit->
7
6
5
4
3
2
1
0
Command(7)
CDh
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
Write Multiple without Erase
This command is similar to the Write Multiple command with the exception that an implied erase before write
operation is not performed. The sectors should be pre-erased with the Erase Sector(s) command before this
command is issued.
Write Sector(s) – 30h or 31h
Bit->
7
6
5
4
3
2
1
0
Command(7)
30h or 31h
C/D/H(6)
1
LBA
1
Drive
Head(LBA 27 – 24)
Cyl High(5)
Cylinder High (LBA 23 – 16)
Cyl Low(4)
Cylinder Low (15 – 8)
Sec Num(3)
Sector Number (LBA 7 – 0)
Sec Cnt(2)
Sector Count
Feature(1)
X
Write Sector(s)
This command writes from 1 to 256 sectors as specified in the Sector Count Register. A sector count of zero
requests 256 sectors. The transfer begins at the sector specified in the Sector
Number Register. When this command is accepted, the CompactFlash Storage Card sets BSY,then sets DRQ and
clears BSY, then waits for the host to fill the sector buffer with the data to be written. No interrupt is generated to
start the first host transfer operation. No data should be transferred by the host until BSY has been cleared by the
host.
For multiple sectors, after the first sector of data is in the buffer, BSY will be set and DRQ will be cleared. After the
next buffer is ready for data, BSY is cleared, DRQ is set and an interrupt is generated. When the final sector of
data is transferred, BSY is set and DRQ is cleared. It will remain in this state until the command is completed at
URL:www.hbe.co.kr
Rev. 1.1 (August, 2005)
27 / 30
HANBit Electronics Co., Ltd.