NEW DATABASE - 350 MILLION DATASHEETS FROM 8500 MANUFACTURERS
HFDOM40KR016 HFDOM40KR032 HFDOM40KR064 HFDOM40KR096 HFDOM40KR128 HFDOM40KR192 - Datasheet Archive
HFDOM40KRxxx 40Pin Flash Disk Module Min.8MB ~ Max.1GB, True IDE Interface Mode, 3.3V / 5.0V Operating Part No. HFDOM40KRxxx 1.
HANBit HFDOM40KRxxx 40Pin Flash Disk Module Min.8MB ~ Max.1GB, True IDE Interface Mode, 3.3V / 5.0V Operating Part No. HFDOM40KRxxx 1. PRODUCT OVERVIEW GENERAL DESCRIPTION The HFDOM40KRxxx series 40Pin Flash Disk Module is a flash technology based with True IDE interface flash memory card. It is constructed with flash disk controller chip and NAND-type (Samsung) flash memory device. The HFDOM40KRxxx series operates in both 3.3-Volt and 5.0-Volt power supplies. It comes in capacity of 16, 32, 64, 128, 192, 256, 512 MB and up to 1GB MB formatted 40Pin type . By optimizing flash memory management, the life of this HFDOM40KRxxx series can be extended to its maximum level. Because the ECC function is included, the correctness of data transfer between the HFDOM40KRxxx series and a True IDE compatible interface device can be guaranteed. The HFDOM40KRxxx series is fully compatible with applications such as CPU card / board, set top box, industry / military PC / Notebook, security equipment, measuring instrument and embedded systems. FEATURES - ATA / True IDE compatible host interface ATA command set compatible Automatic sensing of PC Card ATA or true IDE host interface. Very high performance, very low power consumption Automatic error correction Auto Standby to save power consumption. Supports power down commands and sleep modes. Support for 8 or 16 bit host transfers 3.3V/5.0V operation voltage Host Interface bus width : 8/16 bit Access Flash Interface bus width : 8 bit Access Capacity : Min. 16MB ~ Max. 1GMB PRODUCT SPECIFICATIONS Capacities : 16, 32, 48, 64, 96, 128, 192, 256, 512 and up to 1GB (formatted) System Compatibility : Please refer to the compatibility list of index. Performance : Host Data Transfer Rates : up to 16.6 MB/sec, PIO mode 4; 16.6MB/sec, Multi-word DMA mode 2; 33MB/sec URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 1/1 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx Reliability : ECC :Error Correction of 1 Byte random error per 128 Bytes of data Operating Voltage : 3.3V / 5.0V 10% Power consumption : 3.3V ± 5% Read mode 7 6 5 4 Command(7) 3 2 1 0 98h or E5h C/D/H(6) X Drive X Cly High(5) X Cly Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Check Power Mode This command checks the power mode. f the CompactFlash Storage Card is in, going to, or recovering from the sleep mode, the CompactFlash Storage Card sets BSY, sets the Sector Count Register to 00h, clears BSY and generates an interrupt. If the CompactFlash Storage Card is in Idle mode, the CompactFlash Storage Card sets BSY, sets the Sector Count Register to FFh, clears BSY and generates an interrupt. Execute Drive Diagnostic 90h Bit-> 7 Command(7) URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 6 5 4 3 2 1 0 90h 14 / 14 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx C/D/H(6) X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Execute Drive Diagnostic This command performs the internal diagnostic tests implemented by the CompactFlash Storage Card. If in PCMCIA configuration this command runs only on the CompactFlash Storage Card which is addressed by the Drive/Head register when the diagnostic command is issued. This is because PCMCIA card interface does not allows for direct inter-drive communication (such as the ATA PDIAG and DASP signals). If in True IDE Mode the Drive bit is ignored and the diagnostic command is executed by both the Master and the Slave with the Master responding with status for both devices. The Diagnostic codes shown in Table 39 are returned in the Error Register at the end of the command. Diagnostic Codes Code ERROR TYPE 01h No Error Detected 02h Formatter Device Error 03h Sector Buffer Error 04h ECC Circuitry Error 05h Controlling Microprocessor Error 8Xh Slave Error in True IDE Mode Erase Sector(s) C0h Bit-> 7 6 5 4 Command(7) C/D/H(6) 3 2 1 0 C0h 1 LBA 1 Drive Head(LBA 27-24) Cyl High(5) Cylinder High (LBA 23-16) Cyl Low(4) Cylinder Low (LBA 15-8) Sec Num(3) Sector Number (LBA 7-0 ) Sec Cnt(2) Sector Count Feature(1) X Erase Sector This command is used to pre-erase and condition data sectors in advance of a Write without Erase or Write Multiple without Erase command. There is no data transfer associated with this command but a Write Fault error status can occur. Format Track - 50h Bit-> URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 7 6 5 4 15 / 15 3 2 1 0 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx Command(7) 50h 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 (LBA 15-8) Sec Num(3) X (LBA 7-0 ) Sec Cnt(2) Count (LBA mode only) Feature(1) X Format Track This command writes the desired head and cylinder of the selected drive with a vendor unique data pattern (typically FFh or 00h). To remain host backward compatible, the CompactFlash Storage Card expects a sector buffer of data from the host to follow the command with the same protocol as the Write Sector(s) command although the information in the buffer is not used by the CompactFlash Storage Card. If LBA=1 then the number of sectors to format is taken from the SecCnt register (0=256). The use of this command is not recommended. Identify Drive - ECh Bit-> 7 6 5 4 Command(7) C/D/H(6) 3 2 1 0 ECh X X X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Identify Drive The Identify Drive command enables the host to receive parameter information from the CompactFlash Storage Card. This command has the same protocol as the Read Sector(s) command. The parameter words in the buffer have the arrangement and meanings defined in Table . All reserved bits or words are zero. Table 40 is the definition for each field in the Identify Drive Information. Table: Identify Drive Information Word Default Total Address Value Bytes 0 848Ah 2 General configuration signature for the CompactFlash Storage Card 1 xxxxh 2 Default number of cylinders 2 0000h 2 Reserved 3 00xxh 2 Default number of heads 4 xxxxh 2 Number of unformatted bytes per track 5 xxxxh 2 Number of unformatted bytes per sector 6 xxxxh 2 Default number of sectors per track 7-8 xxxxh 4 Number of sectors per card (Word 7 = MSW , word 8 = LSW) URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) Data Field Type Information 16 / 16 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx 9 xxxxh 2 Vendor Unique 10-19 aaaa 20 Serial number in ASCII (Right Justified ) 20 xxxxh 2 Buffer type 21 xxxxh 2 Buffer size in 512 byte increments 22 0004h 2 # of ECC bytes passed on Read/Write Long Commands 23-26 aaaa 8 Firmware revision in ASCII. Big Endian Byte Order in Word 27-46 aaaa 40 Model number in ASCII (Left Justified) Big Endian Byte Order in Word 47 xxxxh 2 Maximum number of sectors on Read/Write Mutliple command 48 0000h 2 Double Word not supported 49 xx00h 2 Capabilities 50 0000h 2 Reserved 51 0x00h 2 PIO data transfer cycle timing mode 52 0000h 2 DMA data transfer cycle timing mode 53 0001h 2 Translation parameters are valid 54 Xxxxh 2 Current numbers of cylinders 55 xxxxh 2 Current numbers of heads 56 xxxxh 2 Current sectors per track 57-58 xxxxh 4 Current capacity in sectors(LBAs)(Word 57 = LSW , Word 58 = MSW) 59 010xh 2 Multiple sector setting 60-61 xxxxh 4 Total number of sectors addressable in LBA Mode 62-127 0000h 138 128 xxxxh 2 Security status 129-159 0000h 64 Vendor unique bytes 160 xxxxh 2 Power requirement description 161-255 0000h 170 Reserved Reserved Idle 97h or E3h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 97h or E3h X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) Timer Count (5 mess increments) Feature(1) X Idle This command causes the CompactFlash Storage Card to set BSY, enter the Idle mode, clear BSY and generate an interrupt. If the sector count is non-zero, it is interpreted as a timer count with each count URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 17 / 17 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx being 5 milliseconds and the automatic power down mode is enabled. If the sector count is zero, the automatic power down mode is disabled. Note that this time base (5msec) is different from the ATA specification. Idle Immediate 95h or E1h 7 Bit-> 6 5 Command(7) C/D/H(6) 4 3 2 1 0 95h or E1h X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Idle Immediate This command causes the CompactFlash Storage Card to set BSY, enter the Idle mode, clear BSY and generate an interrupt. Initialize Drive Parameters 91h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 91h X 0 X Drive Max Head(no. of heads-1) Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) Number of Sectors Feature(1) X Initialize Drive Parameters This command enables the host to set the number of sectors per track and the number of heads per cylinder. Only the Sector Count and the Card/Drive/Head registers are used by this command. Read Buffer E4h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 E4h X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Read Buffer URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 18 / 18 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx The Read Buffer command enables the host to read the current contents of the CompactFlash Storage Card's sector buffer. This command has the same protocol as the Read Sector(s) command. Read Multiple C4h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 C4h 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 Read Multiple The Read Multiple command performs similarly to the Read Sectors command. Interrupts are not generated on every sector, but on the transfer of a block which contains the number of sectors defined by a Set Multiple command. Command execution is identical to the Read Sectors operation except that the number of sectors defined by a Set Multiple command are transferred without intervening interrupts. 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 Read Multiple command. When the Read 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 block count, 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 Read Multiple command is attempted before the Set Multiple Mode command has been executed or when Read Multiple commands are disabled, the Read Multiple operation is rejected with an Aborted Command error. Disk errors encountered during Read Multiple commands are posted at the beginning of the block or partial block transfer, but DRQ is still set and the data transfer will take place as it normally would, including transfer of corrupted data, if any Interrupts are generated when DRQ is set at the beginning of each block or partial block. The error reporting is the same as that on a Read Sector(s) Command. This command reads from 1 to 256 sectors as specified in the Sector Count register. A sector count of 0 requests 256 sectors.The transfer begins at the sector specified in the Sector Number Register. At command completion, the Command Block Registers contain the cylinder, head and sector number of the last sector read. If an error occurs, the read terminates at the sector where the error occurred. The Command Block Registers contain the cylinder, head and sector number of the sector where the error occurred. The flawed data is pending in the sector buffer. Subsequent blocks or partial blocks are transferred only if the error was a correctable data error. All other errors cause the command to stop after transfer of the block which contained the error. Read Long Sector 22h or 23h 7 Bit-> 6 5 Command(7) C/D/H(6) 4 3 2 1 0 22h 23h 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) X Feature(1) X URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 19 / 19 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx Read Long Sector The Read Long command performs similarly to the Read Sector(s) command except that it returns 516 bytes of data instead of 512 bytes. During a Read Long command, the CompactFlash Storage Card does not check the ECC bytes to determine if there has been a data error. Only single sector read long operations are supported. The transfer consists of 512 bytes of data transferred in word mode followed by 4 bytes of ECC data transferred in byte mode. This command has the same protocol as the Read Sector(s) command. Use of this command is not recommended. Read Sector(s) 20h or 21h 7 Bit-> 6 5 Command(7) C/D/H(6) 4 3 2 1 0 20h 21h 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 Read Sector(s) This command reads from 1 to 256 sectors as specified in the Sector Count register. A sector count of 0 requests 256 sectors. The transfer begins at the sector specified in the Sector Number Register. When this command is issued and after each sector of data (except the last one) has been read by the host, the CompactFlash Storage Card sets BSY, puts the sector of data in the buffer, sets DRQ, clears BSY, and generates an interrupt. The host then reads the 512 bytes of data from the buffer. At command completion, the Command Block Registers contain the cylinder, head and sector number of the last sector read. If an error occurs, the read terminates at the sector where the error occurred. The Command Block Registers contain the cylinder, head, and sector number of the sector where the error occurred. The flawed data is pending in the sector buffer. Read Verify Sector(s) 40h or 41h 7 Bit-> 6 5 Command(7) C/D/H(6) 4 3 2 1 0 40h 41h 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 Read Verify Sector(s) This command is identical to the Read Sectors command, except that DRQ is never set and no data is transferred to the host. When the command is accepted, the CompactFlash Storage Card sets BSY. When the requested sectors have been verified, the CompactFlash Storage Card clears BSY and generates an interrupt. Upon command completion, the Command Block Registers contain the cylinder, head, and sector number of the last sector verified. If an error occurs, the verify terminates at the sector where the error occurs. The Command Block Registers contain the cylinder, head and sector number of the sector where the error occurred. The Sector Count Register URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 20 / 20 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx contains the number of sectors not yet verified. Recablibrate 1Xh 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 1Xh 1 LBA 1 Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Recalibrate This command is effectively a NOP command to the CompactFlash Storage Card and is provided for compatibility purposes. Request Sense 03h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 03h 1 LBA 1 Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Request Sense This command requests extended error information for the previous command. Table 41 defines the valid extended error codes for the CompactFlash Storage Card Series product. The extended error code is returned to the host in the Error Register. Extended Error Codes Extended Error Code Description 00h No Error Detected 01h Self Test OK ( No Error ) 09h Miscellaneous Error 20h Invalid Command 21h Invalid Address ( Requested Head or Sector Invalid ) 2Fh Address Overflow ( address Too Large ) 35h , 36h Supply or generated Voltage Out of Tolerance 11h Uncorrectable ECC Error URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 21 / 21 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx 18h Corrected ECC Error 05h , 30-34h , 37h ,3Eh Self Test or Diagnostic Failed 10h , 14h ID Not Found 3Ah Spare Sectors Exhausted 1Fh Data Transfer Error / Aborted Command 0Ch , 38h , 3Bh , 3Ch , 3Fh Corrupted Media Format 03h Write / Erase Failed 22h Power Level 1 Disabled Seek 7X h 7 Bit-> 6 5 4 3 Command(7) C/D/H(6) 2 1 0 7Xh 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) X (LBA 7 0) Sec Cnt(2) X Feature(1) X Seek This command is effectively a NOP command to the CompactFlash Storage Card although it does perform a range check of cylinder and head or LBA address and returns an error if the address is out of range. Set Features - EFh 7 Bit-> 6 5 4 3 2 1 0 Command(7) EFh C/D/H(6) X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) Configure Feature(1) Feature Set Features This command is used by the host to establish or select certain features. Table 45 defines all features that are supported. Feature Supported Feature Operation 01h Enable 8 bit data transfers 0Ah Enable Power Level 1 commands URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 22 / 22 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx 55h Disable Read Look Ahead 66h Disable Power on Reset(POR) establishment of defaults at Soft Reset 69h NOP Accepted for backward compatibility 81h Disable 8 bit data transfer 8Ah Disable Power Level 1 commands 96h NOP Accepted for backward compatibility 97h Accepted for backward compatibility . Use of this Feature is not recommended 9Ah Set the host current source capability. Allows tradeoff between current drawn and read/write speed. BBh 4 bytes of data apply on Read/Write Long commands CCh Enable Power on Reset (POR) establishment of defaults at Soft Reset Features 01h and 81h are used to enable and clear 8 bit data transfer modes in True IDE Mode. If the 01h feature command is issued all data transfers will occur on the low order D7D0 data bus and the IOIS16 IOIS16 signal will not be asserted for data register accesses. Features 0Ah and 8Ah are used to enable and disable Power Level 1 commands. Feature 0Ah is the default feature for the CompactFlash Storage Card with extended power. Features 55h and BBh are the default features for the CompactFlash Storage Card; thus, the host does not have to issue this command with these features unless it is necessary for compatibility reasons. Feature code 9Ah enables the host to configure the card to best meet the host system's power requirements. The host sets a value in the Sector Count register that is equal to one-fourth of the desired maximum average current (in mA) that the card should consume. For example, if the Sector Count register is set to 6, the card would be configured to provide the best possible performance without exceeding 24 mA. Upon completion of the command, the card responds to the host with the range of values supported by the card. The minimum value is set in the Cylinder Low register, and the maximum value is set in the Cylinder Hi register. The default value, after a power on reset, is to operate at the highest performance and therefore the highest current mode. The card will accept values outside this programmable range, but will operate either at the lowest power or highest performance as appropriate. Features 66h and CCh can be used to enable and disable whether the Power On Reset (POR) Defaults will be set when a soft reset occurs. The default setting is to revert to the POR defaults when a soft reset occurs. Set Multiple Mode C6h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 C6h X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) Sector Count Feature(1) X Set Multiple Mode This command enables the CompactFlash Storage Card to perform Read and Write Multiple operations and establishes the block count for these commands. The Sector Count Register is loaded with the number of sectors per block. Upon receipt of the command, the CompactFlash Storage Card sets BSY to 1 and checks the Sector Count Register. If the Sector Count Register contains a valid value and the block count is supported, the value is loaded for all subsequent Read Multiple and Write Multiple commands and execution of those commands is enabled. If a block count is not supported, an Aborted Command error is posted, and Read Multiple and Write Multiple commands are disabled. If the Sector Count Register contains 0 when the command is issued, Read and Write Multiple URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 23 / 23 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx commands are disabled. At power on, or after a hardware or (unless disabled by a Set Feature command) software reset, the default mode is Read and Write Multiple disabled. Set Sleep Mode 99h or E6h Bit-> 7 6 5 Command(7) 4 3 2 1 0 99h or E6h C/D/H(6) X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Set Sleep Mode This command causes the CompactFlash Storage Card to set BSY, enter the Sleep mode, clear BSY and generate an interrupt. Recovery from sleep mode is accomplished by simply issuing another command (a reset is permitted but not required). Sleep mode is also entered when internal timer expires so the host does not need to issue this command except when it wishes to enter Sleep mode immediately. The default value for the timer is 1.6 milliseconds. Note that this time base (1.6 msec) is different from the ATA Specification. Standby 96h or E2h Bit-> 7 6 5 Command(7) 4 3 2 1 0 96h or E2h C/D/H(6) X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Standby This command causes the CompactFlash Storage Card to set BSY, enter the Sleep mode (which corresponds to the ATA "Standby" Mode), clear BSY and return the interrupt immediately. Recovery from sleep mode is accomplished by simply issuing another command (a reset is not required). Standby Immediate 94h or E0h Bit-> 7 6 Command(7) C/D/H(6) 5 4 3 2 1 0 94h or E0h X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 24 / 24 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx Sec Cnt(2) X Feature(1) X Standby Immediate This command causes the CompactFlash Storage Card to set BSY, enter the Sleep mode (which corresponds to the ATA "Standby" Mode), clear BSY and return the interrupt immediately. Recovery from sleep mode is accomplished by simply issuing another command (a reset is not required). Translate Sector 87h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 87h 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) X Feature(1) X Translate Sector This command allows the host a method of determining the exact number of times a user sector has been erased and programmed. The controller responds with a 512 byte buffer of information containing the desired cylinder, head and sector, including its Logical Address, and the Hot Count, if available, for that sector. Table 46 represents the information in the buffer. Please note that this command is unique to the CompactFlash Storage Card. Address Information Information ADDRESS 00h 01h Cylinder MSB (00), Cylinder LSB (01) 02h Head 03h Sector 04h 06h LBA MSB (04) LSB (06) 07h 12h Reserved 13h Erased Flag (ffh) = Erased; 00h = Not Erased 14h 17h Reserved 18h 1Ah Hot Count MSB (18) LSB (1A) 1bh 1ffh Reserved Note 1: A value of 0 indicates Hot Count is not supported. Wear Level F5h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 F5h X URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) X X Drive 25 / 25 Flag HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) Completion Status Feature(1) X Wear Level For the CompactFlash Storage Cards that do not support security mode feature set, this command is effectively a NOP command and only implemented for backward compatibility. The Sector Count Register will always be returned with a 00h indicating Wear Level is not needed. If the CompactFlash Storage Card supports security mode feature set, this command shall be handled as Security Freeze Lock. Write Buffer E8h 7 Bit-> 6 5 4 Command(7) 3 2 1 0 E8h C/D/H(6) X Drive X Cyl High(5) X Cyl Low(4) X Sec Num(3) X Sec Cnt(2) X Feature(1) X Write Buffer The Write Buffer command enables the host to overwrite contents of the CompactFlash Storage Card's sector buffer with any data pattern desired. This command has the same protocol as the Write Sector(s) command and transfers 512 bytes. Write Long Sector 32h or 33h 7 Bit-> 6 5 Command(7) C/D/H(6) 4 3 2 1 0 32h or 33h 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) X Feature(1) X Write Long Sector This command is similar to the Write Sector(s) command except that it writes 516 bytes instead of 512 bytes. Only single sector Write Long operations are supported. The transfer consists of 512 bytes of data transferred in word mode followed by 4 bytes of ECC transferred in byte mode. Because of the unique nature of the solid-state CompactFlash Storage Card, the four bytes of ECC transferred by the host may be used by the CompactFlash Storage Card. The CompactFlash Storage Card may discard these four bytes and write the sector with valid ECC data. This command has the same protocol as the Write Sector(s) command. Use of this command is not URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 26 / 26 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx recommended. Write Multiple Command C5h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 C5h 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 Command Note: The current revision of the CompactFlash Storage Card only supports a block count of 1 as indicated in the Identify Drive Command information. This command is provided for compatibility with future products which may support a larger block count. This command is similar to the Write Sectors command. The CompactFlash Storage Card sets BSY within 400 nsec of accepting the command. Interrupts are not presented on each sector but on the transfer of a block which contains the number of sectors defined by Set Multiple. Command execution is identical to the Write Sectors operation except that the number of sectors defined by the Set Multiple command is transferred without intervening interrupts. 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. 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. Write Multiple without Erase CDh 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 CDh 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 URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 27 / 27 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx 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 7 Bit-> 6 5 Command(7) C/D/H(6) 4 3 2 1 0 30h or 31h 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 which time BSY is cleared and an interrupt is generated. 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 number of the sector where the error occurred. The host may then read the command block to determinem what error has occurred, and on which sector. Write Sector(s) without Erase 38h 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 38h 1 LBA 1 Drive Head(LBA 27 24) Cyl High(5) Cylinder High (LBA 23 16) Cyl Low(4) LBA(15 8) Sec Num(3) Sector Number (LBA 7 0) Sec Cnt(2) Sector Count Feature(1) X Write Sector(s) without Erase This command is similar to the Write Sector(s) command with the exception that an implied erase before write operation is not performed. This command has the same protocol as the Write Sector(s) command. The sectors should be pre-erased with the Erase Sector(s) command before this command is issued. If the sector is not preerased with the Erase Sector(s) command, a normal write sector operation will occur. Write Verify 3Ch URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 28 / 28 HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx 7 Bit-> 6 5 4 Command(7) C/D/H(6) 3 2 1 0 3Ch 1 LBA 1 Drive Head(LBA 27 24) Cyl High(5) Cylinder High (LBA 23 16) Cyl Low(4) LBA(15 8) Sec Num(3) Sector Number (LBA 7 0) Sec Cnt(2) Sector Count Feature(1) X Write Verify This command is similar to the Write Sector(s) command, except each sector is verified immediately after being written. This command has the same protocol as the Write Sector(s) command. Summaries of the valid status and error value for all the ATA Command set Error and Status Register Error Register Command BBk UNC Status Register IDNF ABRT AMNF DRDY DWF CheckPowerMode ExecuteDriveDiagnostic V V V V DSC CORR ERR V V V V V Erase Sector(s) V V V V V V Format Track V V V V V V Identify Drive V V V V V Idle V V V V V Idle Immediate V V V V V V V V InitializeDriveParameter V Read Buffer V V V V V V V V V V V V V V V Read Multiple V Read Long Sector V Read Sector(s) V V V V V V V V V Read Verify Sectors V V V V V V V V V Recalibrate V V V V V Request Sense V V V V V V V V Set Features V V V V V Set Multiple Mode V V V V V Set Sleep Mode V V V V V Stand By V V V V V Stand By Immediate V V V V V V V V V V V V V Seek V Translate Sector V Wear Level V URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) V 29 / 29 V V V V V V V HANBit Electronics Co., Ltd. HANBit HFDOM40KRxxx Write Buffer V V V V V V V V Write Long Sector V V V Write Multiple V V V V V V V Write Multiple w/o Erase V V V V V V V Write Sector(s) V V V V V V V Write Sector(s) w/o V V V V V V V V V V V V V V V V V V V Erase Write Verify Sector(s) Invalid Command Code V = Valid on this command Ordering Infomation NO Parts Capacity Media transfer mode Operation Mode 1 DOM40KR016 DOM40KR016 16Mbyte BYTE True IDE 2 DOM40KR0032 DOM40KR0032 32Mbyte BYTE True IDE 3 DOM40KR064 DOM40KR064 64Mbyte BYTE True IDE 4 DOM40KR096 DOM40KR096 96Mbyte BYTE True IDE 5 DOM40KR128 DOM40KR128 128Mbyte BYTE True IDE 6 DOM40KR192 DOM40KR192 192Mbyte BYTE True IDE 7 DOM40KR256 DOM40KR256 256Mbyte BYTE True IDE 8 DOM40KR384 DOM40KR384 384Mbyte BYTE True IDE 9 DOM40KR512 DOM40KR512 512Mbyte BYTE True IDE 10 DOM40KR1G DOM40KR1G 1Gbyte BYTE True IDE URL:www.hbe.co.kr Rev. 1.2 (Decemver. 2003) 30 / 30 HANBit Electronics Co., Ltd.