0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
SFCF64GBH2BU4TO-C-NU-527-STD

SFCF64GBH2BU4TO-C-NU-527-STD

  • 厂商:

    SWISSBIT

  • 封装:

    -

  • 描述:

    MEM CARD COMPACTFLASH 64GB SLC

  • 数据手册
  • 价格&库存
SFCF64GBH2BU4TO-C-NU-527-STD 数据手册
Product data sheet Industrial CompactFlashTM Card C-440 Series up to UDMA6 / MDMA4 / PIO6 B U: Fl a sh Pr od u ct s Date : Fe b ru ar y 0 6 , 2 0 14 Re vi si o n: 1 . 23 Fi le : C - 44 0_ da ta_ s he e t_ C F - H x B U_Re v 1 23 . doc Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 1 of 106 C-440 Series – Industrial UDMA CompactFlash™ Card, 2GByte up to 64GByte, 3.3/5V Supply 1 Main Features                  Highly-integrated memory controller o CompactFlashTM specification 4.1, compatible with specification 5.0 o PCMCIA specification 2.1 (chapter CF-ATA Registers) & PC Card ATA Interface Specification 8, 7, 6, and 5 o True IDE mode compatible, up to UDMA6 / MDMA4 / PIO6 supported o Fix drive (IDE mode) & removable drive (PC card mode) as default in the same card o Hot swappable in PC card modes o Signal termination resistors to improve signal quality o LBA48 address support (LBA28 limitation on request) o Fix drive (IDE mode) & removable drive (PC card mode) as default configuration Small form factor o CFC Type I: 36.4mm x 42.8mm x 3.3mm Low-power CMOS technology 3.3V or 5.0V power supply, card drives bus with 3.3V, inputs 5V compatible Power saving mode (with automatic wake-up) S.M.A.R.T. support and extended vendor information Wear Leveling: equal wear leveling of static and dynamic data The wear leveling assures that dynamic data as well as static data is balanced evenly across the memory. With that the maximum write endurance of the device is guaranteed. Data Retention: 10 year (JESD47) Patented power-off reliability o No data loss of older sectors o Max. 32 sectors data loss (old data kept) High reliability o MTBF >3,000,000 hours o Data reliability: < 1 non-recoverable error per 1014 bits read o Number of connector insertions/removals: >10,000 o 24bit per double sector ECC capability o Near Miss ECC handling at read (refresh and correct data, if multiple correctable errors detected) o Read Disturb Management (RDM, refresh and correct data after a certain number of read commands per block) High performance o Up to 133MB/s burst transfer rate in UDMA6 o Sustained Write performance: up to 40MB/s (UDMA6 untrimmed) o Sustained Read Performance: up to 65MB/s (UDMA6) o Trim command supported to increase random write performance o Up to 300 IOPS with Trim Support (4k random write) and up to 32 IOPS untrimmed Available densities o up to 64GBytes (SLC NAND Flash) Operating System support o Standard Software Drivers operation CompactFlashTM 2 Temperature ranges o Commercial Temperature range 0 … +70°C o Industrial Temperature range -40 … +85°C Life Cycle Management Controlled BOM RoHS compatible Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 2 of 106 2 Table of Contents 1 MAIN FEATURES ..................................................................................................................................................................... 2 2 TABLE OF CONTENTS ............................................................................................................................................................... 3 3 ORDER INFORMATION............................................................................................................................................................. 6 3.1 STANDARD PART NUMBERS............................................................................................................................................................... 6 3.2 SUPPORTED FEATURES .................................................................................................................................................................... 6 3.3 OFFERED OEM OPTIONS ON REQUEST ................................................................................................................................................ 6 3.4 OFFERED LBA28 OPTIONS ON REQUEST ............................................................................................................................................. 7 4 PRODUCT SPECIFICATION ........................................................................................................................................................ 8 4.1 SYSTEM PERFORMANCE ................................................................................................................................................................... 8 4.2 ENVIRONMENTAL SPECIFICATIONS...................................................................................................................................................... 9 4.3 PHYSICAL DIMENSIONS ................................................................................................................................................................. 10 4.4 RELIABILITY ............................................................................................................................................................................... 10 4.5 DRIVE GEOMETRY / CHS PARAMETER ............................................................................................................................................. 10 4.6 PHYSICAL DESCRIPTION ................................................................................................................................................................ 11 5 ELECTRICAL INTERFACE ......................................................................................................................................................... 12 5.1 ELECTRICAL DESCRIPTION ............................................................................................................................................................... 12 5.2 ELECTRICAL SPECIFICATION............................................................................................................................................................. 17 5.3 ADDITIONAL REQUIREMENTS FOR COMPACTFLASHTM ADVANCED TIMING MODE .......................................................................................... 18 6 COMMAND INTERFACE .......................................................................................................................................................... 19 6.1 ATTRIBUTE MEMORY READ AND WRITE ............................................................................................................................................ 19 6.2 COMMON MEMORY READ AND WRITE ............................................................................................................................................. 20 6.3 I/O READ AND WRITE .................................................................................................................................................................. 22 6.4 TRUE IDE MODE ........................................................................................................................................................................ 23 6.5 ULTRA DMA MODE .................................................................................................................................................................... 25 7 CARD CONFIGURATION ......................................................................................................................................................... 44 7.1 CONFIGURATION OPTION REGISTER (200H IN ATTRIBUTE MEMORY) ....................................................................................................... 44 7.2 COMPACTFLASHTM MEMORY CARD CONFIGURATIONS............................................................................................................................ 45 7.3 PIN REPLACEMENT REGISTER (204H IN ATTRIBUTE MEMORY) .............................................................................................................. 45 7.4 ATTRIBUTE MEMORY FUNCTION ...................................................................................................................................................... 46 7.5 I/O TRANSFER FUNCTION .............................................................................................................................................................. 47 7.6 COMMON MEMORY TRANSFER FUNCTION.......................................................................................................................................... 47 7.7 TRUE IDE MODE I/O FUNCTION...................................................................................................................................................... 47 7.8 HOST CONFIGURATION REQUIREMENTS FOR MASTER/SLAVE OR NEW TIMING MODES ................................................................................ 48 8 SOFTWARE INTERFACE .......................................................................................................................................................... 49 8.1 CF-ATA DRIVE REGISTER SET DEFINITION AND PROTOCOL................................................................................................................... 49 8.2 MEMORY MAPPED ADDRESSING .................................................................................................................................................... 49 8.3 CONTIGUOUS I/O MAPPED ADDRESSING .......................................................................................................................................... 50 8.4 I/O PRIMARY AND SECONDARY ADDRESS CONFIGURATIONS ................................................................................................................. 51 8.5 TRUE IDE MODE ADDRESSING ...................................................................................................................................................... 51 9 CF-ATA REGISTERS ............................................................................................................................................................... 52 9.1 DATA REGISTER ........................................................................................................................................................................... 52 9.2 ERROR REGISTER ........................................................................................................................................................................ 52 9.3 FEATURE REGISTER ...................................................................................................................................................................... 53 9.4 SECTOR COUNT REGISTER .............................................................................................................................................................. 53 9.5 SECTOR NUMBER (LBA 7:0) REGISTER ........................................................................................................................................... 53 9.6 CYLINDER LOW (LBA 15:8) REGISTER ............................................................................................................................................ 53 9.7 CYLINDER HIGH (LBA 23:16) REGISTER ......................................................................................................................................... 53 9.8 DRIVE/HEAD (LBA 27:24) REGISTER............................................................................................................................................. 54 9.9 STATUS & ALTERNATE STATUS REGISTERS ........................................................................................................................................ 55 9.10 DEVICE CONTROL REGISTER ......................................................................................................................................................... 55 9.11 CARD (DRIVE) ADDRESS REGISTER ................................................................................................................................................. 56 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 3 of 106 10 CF-ATA COMMAND DESCRIPTION ......................................................................................................................................... 57 10.1 CHECK POWER MODE (98H OR E5H) ............................................................................................................................................ 59 10.2 DATA SET MANAGEMENT (06H) TRIM .......................................................................................................................................... 59 10.3 ERASE SECTOR(S) (C0H) ............................................................................................................................................................. 59 10.4 EXECUTE DRIVE DIAGNOSTIC (90H) .............................................................................................................................................. 59 10.5 FLUSH CACHE (E7H) .................................................................................................................................................................. 60 10.6 FLUSH CACHE EXT (EAH) 48BIT LBA............................................................................................................................................ 60 10.7 FORMAT TRACK (50H) ................................................................................................................................................................ 61 10.8 IDENTIFY DEVICE (ECH) .............................................................................................................................................................. 61 10.9 IDLE (97H OR E3H) ................................................................................................................................................................... 71 10.10 IDLE IMMEDIATE (95H OR E1H).................................................................................................................................................. 71 10.11 INITIALIZE DRIVE PARAMETERS (91H) ........................................................................................................................................... 71 10.12 NOP (00H) ........................................................................................................................................................................... 72 10.13 READ BUFFER (E4H) ................................................................................................................................................................ 72 10.14 READ DMA (C8H)................................................................................................................................................................... 72 10.15 READ DMA EXT (25H) 48BIT LBA ............................................................................................................................................. 73 10.16 READ MULTIPLE (C4H) ............................................................................................................................................................. 73 10.17 READ MULTIPLE EXT (29H) 48BIT LBA ....................................................................................................................................... 74 10.18 READ SECTOR(S) (20H OR 21H) .................................................................................................................................................. 75 10.19 READ SECTORS EXT (24H) 48BIT LBA ......................................................................................................................................... 75 10.20 READ VERIFY SECTOR(S) (40H).................................................................................................................................................. 75 10.21 READ VERIFY EXT (42H) 48BIT LBA ........................................................................................................................................... 76 10.22 RECALIBRATE (1XH) .................................................................................................................................................................. 76 10.23 REQUEST SENSE (03H) ............................................................................................................................................................. 76 10.24 SEEK (7XH) ............................................................................................................................................................................ 77 10.25 SECURITY DISABLE PASSWORD (F6H) .......................................................................................................................................... 77 10.26 SECURITY ERASE PREPARE (F3H) ................................................................................................................................................ 78 10.27 SECURITY ERASE UNIT (F4H) ...................................................................................................................................................... 78 10.28 SECURITY FREEZE LOCK (F5H) .................................................................................................................................................... 78 10.29 SECURITY SET PASSWORD (F1H) ................................................................................................................................................. 78 10.30 SECURITY UNLOCK (F2H) .......................................................................................................................................................... 79 10.31 SET FEATURES (EFH) ................................................................................................................................................................ 80 10.32 SET MULTIPLE MODE (C6H) ...................................................................................................................................................... 81 10.33 SET SLEEP MODE (99H OR E6) ................................................................................................................................................. 82 10.34 S.M.A.R.T. (B0H) ................................................................................................................................................................ 82 10.35 STANDBY (96H OR E2) ............................................................................................................................................................ 83 10.36 STANDBY IMMEDIATE (94H OR E0H) .......................................................................................................................................... 83 10.37 TRANSLATE SECTOR (87H).......................................................................................................................................................... 83 10.38 WRITE BUFFER (E8H) ............................................................................................................................................................. 84 10.39 WRITE DMA (CAH) ................................................................................................................................................................. 84 10.40 WRITE DMA EXT (35H) 48BIT LBA .......................................................................................................................................... 84 10.41 WRITE MULTIPLE COMMAND (C5H) ............................................................................................................................................. 85 10.42 WRITE MULTIPLE EXT (39H) 48BIT LBA ..................................................................................................................................... 85 10.43 WRITE MULTIPLE WITHOUT ERASE (CDH) ..................................................................................................................................... 86 10.44 WRITE SECTOR(S) (30H OR 31H) ................................................................................................................................................ 86 10.45 WRITE SECTOR(S) EXT (34H) 48BIT LBA .................................................................................................................................... 87 10.46 WRITE SECTOR(S) WITHOUT ERASE (38H) .................................................................................................................................... 87 10.47 WRITE VERIFY (3CH) ................................................................................................................................................................ 87 11 S.M.A.R.T FUNCTIONALITY ................................................................................................................................................... 88 11.1 S.M.A.R.T. ENABLE / DISABLE OPERATIONS ................................................................................................................................... 88 11.2 S.M.A.R.T. ENABLE / DISABLE ATTRIBUTE AUTOSAVE ...................................................................................................................... 88 11.3 S.M.A.R.T. READ DATA ............................................................................................................................................................. 88 11.4 S.M.A.R.T. READ ATTRIBUTE THRESHOLDS .................................................................................................................................... 93 11.5 S.M.A.R.T. RETURN STATUS ....................................................................................................................................................... 94 12 CIS INFORMATION (TYPICAL)................................................................................................................................................. 95 13 PACKAGE MECHANICAL ......................................................................................................................................................... 99 14 DECLARATION OF CONFORMITY........................................................................................................................................... 100 15 ROHS AND WEEE UPDATE FROM SWISSBIT ........................................................................................................................ 101 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 4 of 106 16 PART NUMBER DECODER .................................................................................................................................................... 103 16.1 MANUFACTURER....................................................................................................................................................................... 103 16.2 MEMORY TYPE ........................................................................................................................................................................ 103 16.3 PRODUCT TYPE ........................................................................................................................................................................ 103 16.4 DENSITY ................................................................................................................................................................................ 103 16.5 PLATFORM ............................................................................................................................................................................. 103 16.6 PRODUCT GENERATION ............................................................................................................................................................. 103 16.7 MEMORY ORGANIZATION ........................................................................................................................................................... 103 16.8 CONTROLLER TYPE .................................................................................................................................................................... 103 16.9 NUMBER OF FLASH CHIP .......................................................................................................................................................... 103 16.10 FLASH CODE ......................................................................................................................................................................... 103 16.11 TEMP. OPTION ....................................................................................................................................................................... 104 16.12 DIE CLASSIFICATION ................................................................................................................................................................ 104 16.13 PIN MODE ........................................................................................................................................................................... 104 16.14 COMPACT FLASH XYZ .............................................................................................................................................................. 104 16.15 OPTION ................................................................................................................................................................................ 104 17 SWISSBIT CF LABEL SPECIFICATION .................................................................................................................................... 105 17.1 FRONT SIDE LABEL..................................................................................................................................................................... 105 17.2 BACK SIDE LABEL...................................................................................................................................................................... 105 18 REVISION HISTORY .............................................................................................................................................................. 106 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 5 of 106 3 Order Information 3.1 Standard part numbers IDE-FIX & PC card-Removable / PIO, DMA & UDMA support Density Part Number 2GB SFCF2048HxBU2TO-t-MS-5y7-STD 4GB SFCF4096HxBU4TO-t-MS-5y7-STD 8GB SFCF8192HxBU2TO-t-QT-5y7-STD 16GB SFCF16GBHxBU4TO-t-QT-5y7-STD 32GB SFCF32GBHxBU4TO-t-QT-5y7-STD 64GB SFCF64GBHxBU4TO-t-NU-5y7-STD Table 1: Product list for standard product variations X = depends on product generation; y = depends on latest FW revision t = C: commercial temperature; I: industrial temperature 3.2 Supported Features            MDMA/UDMA also in PC card mode SMART Feature Set with additional life time information TRIM command 48bit Address Feature Set Security Mode Feature Set Power Management Feature Set Write Cache Write_Buffer Command Read_Buffer Command NOP_Command Flush_Cache_EXT 3.3 Offered OEM options on request          Write Protect switch Disabling MDMA and/or UDMA modes Customer specified card size and card geometry (C/H/S – cylinder/head/sector) Customer specified CIS and drive ATA-ID strings Preload service (also images with any file system) Customized label ROM mode (write protected with preloaded software) Special Firmware solutions for additional customer requirements … Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 6 of 106 3.4 Offered LBA28 options on request To be compatible to dedicated host systems, cards with the part number suffix “-L28” only support LBA28 commands but don’t support LBA48 commands (extended) including the TRIM command are available on request. 3.4.1 Commands not supported in LBA28 cards The following commands are not supported in “-L28” cards: Table 2: CF-ATA Command Set (1) Class 2 1 1 1 1 1 2 3 2 1. Command Data Set Management Flush cache Ext Read DMA Ext Read Multiple Ext Read Sector(s) Ext Read Verify Sector(s) Ext Write DMA Ext Write Multiple Ext Write Sector(s) Ext Code 06h EAh 25h 29h 24h 42h 35h 39h 34h FR(1) SC(2) YY SN(3) CY(5:4) YY YY YY YY YY YY YY YY YY YY YY YY YY YY YY YY YY YY YY YY YY DH(6) D D D D D D D D D LBA(5:3) YY YY YY YY YY YY YY YY FR = Features Register (1), SC = Sector Count Register (2), SN = Sector Number Register (3), CY = Cylinder Registers (5:4), DH = Card/Drive/Head Register (6), LBA = Logical Block Address Mode Supported (see command descriptions for use), Y – The register contains a valid parameter for this command. For the Drive/Head Register Y means both the CompactFlash TM Memory Card and head parameters are used. YY – registers must be written twice for 48bit LBA commands D – only the Compact Flash Memory Card parameter is valid and not the head parameter C – the register contains command specific data (see command descriptors for use). Data Set Management is used for the TRIM command. 3.4.2 Differences in the ATAID Following Information are different in the ATAID compared with standard cards: Table 3: Identify Device Information Word Address STD Value aaaa* -STD L28 Value aaaa* -L28 Total Bytes 83 7405h* 5005h* 2 86 3405h* 1005h* 2 105 169 0001h 0001h 0000h 0000h 2 2 27-46 * XXXX 40 Data Field Type Information Model number in ASCII (right justified) Big Endian Byte Order in Word (“SFCFxxxxHxBUxTO-x-xx-xxx-xxx”) Features/command sets supported Bit10 48bit address feature set supported Bit13 48bit address feature set incl Flush Cache EXT supported Features/command sets enabled Bit10 48bit address feature set enabled Bit13 48bit address feature set incl Flush Cache EXT enabled Number of sectors per Data Set Management command Trim bit in Data Set Management not supported Standard values for full functionality, depending on configuration Depending on card capacity and drive geometry Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 7 of 106 4 Product Specification The CompactFlashTM is a small form factor non-volatile memory card which provides high capacity data storage. Its aim is to capture, retain and transport data, audio and images, facilitating the transfer of all types of digital information between a large variety of digital systems. The Card operates in three basic modes:  PC card ATA I/O mode  PC card ATA memory mode  True IDE mode The CompactFlashTM also supports Advanced Timing modes. Advanced Timing modes are ATA I/O modes that are 100ns or faster, ATA Memory modes that are 100ns or 80ns. Standard cards are shipped as max. UDMA6 (30ns) and PIO6/MDMA4 (80ns). If the cards should be used in extended speed modes, they should be qualified on the target system and the system should fulfill the requirements listed below. It conforms to the PCMCIA Card Specification 2.1 when operating in the ATA I/O mode, and in the ATA Memory mode (Personal Computer Memory Card International Association standard, JEIDA in Japan), and to the ATA specification when operating in True IDE Mode. CompactFlashTM Cards can be used with passive adapters in a PC-Card Type I, II, or Type III socket. The Card has an internal intelligent controller which manages interface protocols, data storage and retrieval as well as hardware BCH-code Error Correction Code (ECC), defect handling, diagnostics and clock control. The wear leveling mechanism assures an equal usage of the Flash memory cells to extend the life time. Once the Card has been configured by the host, it behaves as a standard ATA (IDE) disk drive. The hardware ECC mechanism allows to detect and correct 6 bit per sector or 24 bit per double sector, depending on the flash. The Card has a voltage detector and a powerful power-loss management feature to prevent data corruption after power-down. The specification has been realized and approved by the CompactFlashTM Association (CFA). This non-proprietary specification enables users to develop CF products that function correctly and are compatible with future CF design. The system highlights are shown in Table 4 … Table 10. Related Documentation      CF+ and CompactFlashTM Specification Revision 4.1, 5.0 AT Attachment Interface Document, American National Standards Institute, ATA-7, 2005 PCMCIA PC Card Standard, 1995 PCMCIA PC Card ATA Specification 7 ATA Command Set 2 (ACS-2) for TRIM command 4.1 System Performance Table 4: System Performance System Performance Sleep to write Sleep to read Power up to Ready Reset to Ready (PC card/IDE Master ) Data transfer Rate (UDMA6 burst) (1, 3) Sustained Read (measured) 2 channel 4k (1, 3) Sustained Write (measured) 2 channel 4k (1, 3) Sustained Read (measured) 2 channel 8k (1, 3) Sustained Write (measured) 2 channel 8k Random Write 4k(measured) Random Write 4k(measured) Command to DRQ Access Time 2 channel 4k 2GB-16GB 2GB-16GB 32GB-64GB 32GB-64GB 59 31 58 31 Max. 5 5 1000 500 133 65 35 65 35 (1, 2) 2GB-16GB 32 170 (300) (1, 2) 32GB-64GB 27 100 30 0.22 160 (300) 250000 500 2 channel 8k Typ. 3,000,000 hours (1) > 10,000 14 < 1 Non-Recoverable Error per 10 bits Read (1) 10 years (JESD47) (1) Dependent on final system qualification data. 4.5 Drive Geometry / CHS Parameter Table 11: CF capacity specification Capacity 2GB 4GB 8GB 16GB 32GB 64GB Cylinders 3,970 7,964 15,880 (1) 16,383 (1) 16,383 (1) 16,383 Heads 16 16 16 16 16 16 Sectors / track 63 63 63 63 63 63 Sectors 4,001,760 8,027,712 16,007,040 31,717,728 64,028,160 125,313,024 Total addressable capacity (Byte) 2,048,901,120 4,110,188,544 8,195,604,480 16,239,476,736 32,782,417,920 64,160,268,288 (1) The CHS addressing is limited to about 8GB. Larger drives should be used in LBA mode. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 10 of 106 4.6 Physical description The CompactFlashTM Memory Card contains a single chip controller and Flash memory module(s). The controller interfaces with a host system allowing data to be written to and read from the Flash memory module(s). Figure 1 shows the Block Diagram of the CompactFlashTM Memory Card. The Card is offered in a Type I package with a 50-pin connector consisting of two rows of 25 female contacts on 50 mil (1.27mm) centers. Figure 21 shows Type I Card Dimensions. Figure 1: CompactFlashTM Memory Card Block Diagram Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 11 of 106 5 Electrical interface 5.1 Electrical description The CompactFlashTM Memory Card operates in three basic modes:  PC Card ATA using I/O Mode  PC Card ATA using Memory Mode  True IDE Mode with MWDMA and UDMA, which is compatible with most disk drives The signal/pin assignments are listed in Table 12 Low active signals have a ‘-’ prefix. Pin types are Input, Output or Input/Output. The configuration of the Card is controlled using the standard PC card configuration registers starting at address 200h in the Attribute Memory space of the memory card. Table 13 describes the I/O signals. Inputs are signals sourced from the host while Outputs are signals sourced from the Card. The signals are described for each of the three operating modes. All outputs from the Card are totem pole except the data bus signals that are bi-directional tri-state. Refer to the section titled “Electrical Specifications” for definitions of Input and Output type. Table 12: Pin Assignment and Pin Type Pin Num PC Card Memory Mode Signal Pin In, Out Name Type Type 1 GND 2 D3 PC Card I/O Mode Signal Pin In, Out Name Type Type Ground GND I/O I1Z,OZ3 D3 (4) True IDE Mode Signal Pin In, Out Name Type Type Ground GND Ground I/O I1Z,OZ3 D3 I/O I1Z,OZ3 3 D4 I/O I1Z,OZ3 D4 I/O I1Z,OZ3 D4 I/O I1Z,OZ3 4 D5 I/O I1Z,OZ3 D5 I/O I1Z,OZ3 D5 I/O I1Z,OZ3 5 D6 I/O I1Z,OZ3 D6 I/O I1Z,OZ3 D6 I/O I1Z,OZ3 6 D7 I/O I1Z,OZ3 D7 I/O I1Z,OZ3 D7 I/O I1Z,OZ3 7 -CE1 I I3U -CE1 I I3U -CS0 I I3Z (2) I I1Z 8 A10 I I1Z A10 I I1Z (1) -OE I I3U -OE I I3U A9 I I1Z A9 I I1Z 9 10 11 A8 12 A7 13 Vcc 14 A6 15 A5 I I I I I1Z A8 I1Z A7 Power Vcc I1Z A6 I1Z I I1Z I I1Z Power I A5 I1Z I I1Z A10 -ATASEL I I3U (2) I I1Z (2) I I1Z (2) I A9 A8 A7 Vcc I1Z Power (2) I I1Z (2) I I1Z (2) I I1Z (2) I I1Z A2 I I1Z A6 A5 16 A4 I I1Z A4 I I1Z A4 17 A3 I I1Z A3 I I1Z A3 18 A2 I I1Z A2 I I1Z A1 I I1Z A1 I I1Z A1 I I1Z I I1Z I I1Z A0 I I1Z D0 I/O I1Z,OZ3 D0 I/O I1Z,OZ3 D0 I/O I1Z,OZ3 22 D1 I/O I1Z,OZ3 D1 I/O I1Z,OZ3 D1 I/O I1Z,OZ3 23 D2 I/O I1Z,OZ3 D2 I/O I1Z,OZ3 D2 I/O I1Z,OZ3 O OT3 -IOIS16 O ON3 19 20 21 (11) A0 24 WP O OT3 (11) A0 -IOIS16 (10) 25 -CD2 O Ground -CD2 O Ground -CD2 O Ground 26 -CD1 O Ground -CD1 O Ground -CD1 O Ground 27 (1) (1) I/O I1Z,OZ3 (1) I/O I1Z,OZ3 (1) I/O I1Z,OZ3 (1) I/O I1Z,OZ3 D11 D11 I/O I1Z,OZ3 D12 (1) I/O I1Z,OZ3 D13 D12 29 D13 D14 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland I1Z,OZ3 (1) 28 30 I/O (1) (1) I/O I1Z,OZ3 I/O I1Z,OZ3 D11 (1) I/O I1Z,OZ3 D12 (1) I/O I1Z,OZ3 D13 D14 (1) I/O I1Z,OZ3 D14 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 12 of 106 Pin Num PC Card Memory Mode Signal Pin In, Out Name Type Type (1) 31 D15 32 -CE2 (1) PC Card I/O Mode Signal Pin In, Out Name Type Type (1) I/O I1Z,OZ3 D15 I I3U -CE2 (1) (4) True IDE Mode Signal Pin In, Out Name Type Type (1) I/O I1Z,OZ3 (1) I I3Z O Ground I I3Z I I3Z I I3U O I/O I1Z,OZ3 D15 I I3U -CS1 33 -VS1 O Ground -VS1 O Ground 34 -IORD I I3U -IORD I I3U 35 -IOWR I I3U -IOWR I I3U 36 -WE I I3U -WE I I3U -VS1 (7) -IORD (8) HSTROBE (9) -HDMARDY (7) -IOWR (8)(9) STOP (3) -WE O OT1 -IREQ O Power Vcc 37 READY 38 Vcc 39 -CSEL I I2Z 40 -VS2 O 41 RESET I 42 -WAIT 43 -INPACK (5) (5) OT1 INTRQ Power Vcc OZ1 -CSEL I I2U Power -CSEL I I2Z OPEN -VS2 O OPEN -VS2 O OPEN I2U RESET I I2U I I2U O OT1 -WAIT O OT1 O ON1 O OT1 -INPACK O OT1 -RESET (7) IORDY (8) -DDMARDY (9) DSTROBE DMARQ O OZ1 I I3U 44 -REG I I3U -REG I I3U -DMACK (6) 45 BVD2 I/O I1U,OT1 -SPKR I/O I1U,OT1 -DASP I/O I1U,ON1 46 BVD1 I/O I1U,OT1 -STSCHG I/O I1U,OT1 -PDIAG I/O I1U,ON1 47 D8 (1) D8 (1) I/O I1Z,OZ3 48 D9 (1) I/O I1Z,OZ3 D9 (1) I/O I1Z,OZ3 49 D10 (1) I/O I1Z,OZ3 D10 (1) I/O I1Z,OZ3 50 GND Ground GND 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. I/O I1Z,OZ3 D8 (1) I/O I1Z,OZ3 (1) I/O I1Z,OZ3 D9 (1) I/O I1Z,OZ3 D10 Ground GND Ground These signals are required only for 16 bit accesses and not required when installed in 8 bit systems. Devices should allow for 3-state signals not to consume current. The signal should be grounded by the host. The signal should be tied to VCC by the host. The mode is required for CompactFlashTM Storage Cards. The –CSEL signal is ignored by the card in PC Card modes. However, because it is not pulled up on the card in these modes, it should not be left floating by the host in PC Card modes. In these modes, the pin should be connected by the host to PC Card A25 or grounded by the host. If DMA operations are not used, the signal must be held high or tied to VCC by the host, also for read registers. Signal usage in True IDE Mode except when Ultra DMA mode protocol is active. Signal usage in True IDE Mode when Ultra DMA mode protocol DMA Write is active. Signal usage in True IDE Mode when Ultra DMA mode protocol DMA Read is active. The signal should be grounded by the host. In PC-Card mode, the IOIS16 signal does not work as fully specified. If a host uses this signal, this may result in 16 bit accesses being changed to two 8 bit accesses. Depending on the address, this may result in an incompatibility with the host controller. In PC-Card mode (memory and I/O), 16 bit ATA register file accesses (i.e. both -CE1 and -CE2 asserted) do not work as fully specified if A0 is high. If you have host-card incompatibilities please contact Swissbit. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 13 of 106 Table 13: Signal Description Signal Name Dir. A10 to A0 (PC Card Memory Mode) I Pin Description These address lines along with the –REG signal are used to select the following: The I/O port address registers within the CompactFlashTM Storage Card, the memory mapped port address registers within the CompactFlashTM Storage Card, a byte in the card’s information structure and its configuration control and status registers. In PC-Card mode, 16 bit ATA register file accesses (i.e. both -CE1 and -CE2 low) 8,10,11,12, do not work if A0 is high. A simple test will show the C-400 compatibility to a 14,15,16,17, certain host. If the C-400 cards can be recognized (Identify Device and MBR 18,19,20 data is read out successfully), then this PC card issue will likely not affect the operation in this host. (1) A10 to A0 (PC Card I/O Mode) A2 to A0 (True IDE Mode) BVD1 (PC Card Memory Mode) –STSCHG (PC Card I/O Mode) –PDIAG (True IDE Mode) BVD2 (PC Card Memory Mode) –SPKR (PC Card I/O Mode) –DASP (True IDE Mode) This signal is the same as the PC Card Memory Mode signal. In True IDE Mode, only A[2:0] are used to select the one of eight registers in the Task File, the remaining address lines should be grounded by the host. This signal is asserted high, as BVD1 is not supported. I/O This signal is asserted low to alert the host to changes in the READY and Write Protect states, while the I/O interface is configured. Its use is controlled by the Card Config and Status Register. In the True IDE Mode, this input / output is the Pass Diagnostic signal in the Master / Slave handshake protocol. This signal is asserted high, as BVD2 is not supported. I/O D15-D0 (PC Card Memory Mode) D15-D0 (PC Card I/O Mode) 46 I/O D15-D0 (True IDE Mode) GND (PC Card Memory Mode) GND (PC Card I/O Mode) GND (True IDE Mode) –INPACK (PC Card Memory Mode) This line is the Binary Audio output from the card. If the Card does not support the Binary Audio function, this line should be held negated. In the True IDE Mode, this input/output is the Disk Active/Slave Present signal in the Master/Slave handshake protocol. These lines carry the Data, Commands and Status information between the host 31, 30, 29, and the controller. D0 is the LSB of the Even Byte of the Word. D8 is the LSB of 28, 27, 49, the Odd Byte of the Word. 48, 47, 6, This signal is the same as the PC Card Memory Mode signal. 5, 4, 3, 2, In True IDE Mode, all Task File operations occur in byte mode on the low order 23, 22, 21 bus D[7:0] while all data transfers are 16 bit using D[15:0]. 45 Ground. 1, 50 Same for all modes. Same for all modes. This signal is not used in this mode. –INPACK (PC Card I/O Mode) The Input Acknowledge signal is asserted by the CompactFlashTM Storage Card when the card is selected and responding to an I/O read cycle at the address that is on the address bus. This signal is used by the host to control the enable of any input data buffers between the CompactFlashTM Storage Card and the CPU. DMARQ (True IDE Mode) This signal is a DMA Request that is used for DMA data transfers between host and device. It shall be asserted by the device when it is ready to transfer data to or from the host. For Multiword DMA transfers, the direction of data transfer is controlled by –IORD and –IOWR. This signal is used in a handshake manner with –DMACK, i.e., the device shall wait until the host asserts –DMACK before negating DMARQ, and reasserting DMARQ if there is more data to transfer. DMARQ shall not be driven when the device is not selected. While a DMA operation is in progress, -CS0 and –CS1 shall be held negated and the width of the transfers shall be 16 bits. If there is no hardware support for DMA mode in the host, this output signal is not used and should not be connected at the host. In this case, the BIOS must report that DMA mode is not supported by the host so that device drivers will not attempt DMA mode. A host that does not support DMA mode and implements both PC card and True-IDE modes of operation need not alter the PC card mode connections while in True-IDE mode as long as this does not prevent proper operation in any mode. O Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 43 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 14 of 106 Signal Name –IORD (PC Card Memory Mode) Dir. Pin This signal is not used in this mode. –IORD (PC Card I/O Mode) –IORD (True IDE Mode) -HDMARDY (True IDE Mode – In Ultra DMA Protocol DMA Read) HSTROBE (True IDE Mode – In Ultra DMA Protocol DMA Write) I 34 O 26, 25 –CD1, –CD2 (PC Card Memory Mode) –CD1, –CD2 (PC Card I/O Mode) –CD1, –CD2 (True IDE Mode) I 7, 32 I 39 –IOWR (PC Card Memory Mode) I 35 The I/O Write strobe pulse is used to clock I/O data on the Card Data bus into the CompactFlashTM Storage Card controller registers when the CompactFlashTM Storage Card is configured to use the I/O interface. The clocking shall occur on the negative to positive edge of the signal (trailing edge). In True IDE Mode, while Ultra DMA mode protocol is not active, this signal has the same function as in PC Card I/O Mode. When Ultra DMA mode protocol is supported, this signal must be negated before entering Ultra DMA mode protocol. In True IDE Mode, while Ultra DMA mode protocol is active, the assertion of this signal causes the termination of the Ultra DMA burst. –OE (PC Card Memory Mode) Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland This signal is not used for this mode, but should be connected by the host to PC Card A25 or grounded by the host. This signal is not used for this mode, but should be connected by the host to PC Card A25 or grounded by the host. This internally pulled up signal is used to configure this device as a Master or a Slave when configured in the True IDE Mode. When this pin is grounded, this device is configured as a Master. When the pin is open, this device is configured as a Slave. This signal is not used in this mode. –IOWR (PC Card I/O Mode) –OE (PC Card I/O Mode) –ATASEL (True IDE Mode) These input signals are used both to select the card and to indicate to the card whether a byte or a word operation is being performed. –CE2 always accesses the odd byte of the word. -CE1 accesses the even byte or the Odd byte of the word depending on A0 and –CE2. A multiplexing scheme based on A0, -CE1, -CE2 allows 8 bit hosts to access all data on D0-D7. See Table 33, Table 40, Table 41, Table 42, and Table 43. In the True IDE Mode, -CS0 is the chip select for the task file registers while –CS1 is used to select the Alternate Status Register and the Device Control Register. While –DMACK is asserted, -CS0 and –CS1 shall be held negated and the width of the transfers shall be 16 bits. –CSEL (True IDE Mode) -IOWR (True IDE Mode – Except Ultra DMA Protocol Active) STOP (True IDE Mode – Ultra DMA Protocol Active) This signal is the same for all modes. This signal is the same as the PC Card Memory Mode signal. –CS0, –CS1 (True IDE Mode) –CSEL (PC Card Memory Mode) –CSEL (PC Card I/O Mode) This is an I/O Read strobe generated by the host. This signal gates I/O data onto the bus from the CompactFlashTM Storage Card when the card is configured to use the I/O interface. In True IDE Mode, while Ultra DMA mode is not active, this signal has the same function as in PC Card I/O Mode. In True IDE Mode when Ultra DMA mode DMA Read is active, this signal is asserted by the host to indicate that the host is read to receive Ultra DMA datain bursts. The host may negate -HDMARDY to pause an Ultra DMA transfer. In True IDE Mode when Ultra DMA mode DMA Write is active, this signal is the data out strobe generated by the host. Both the rising and falling edge of HSTROBE cause data to be latched by the device. The host may stop generating HSTROBE edges to pause an Ultra DMA data-out burst. These Card Detect pins are connected to ground on the CompactFlashTM Storage Card. They are used by the host to determine that the CompactFlashTM Storage Card or is fully inserted into its socket. This signal is the same for all modes. –CE1, –CE2 (PC Card Memory Mode) –CE1, –CE2 (PC Card I/O Mode) Description I 9 This is an Output Enable strobe generated by the host interface. It is used to read data from the CompactFlashTM Storage in Memory Mode and to read the CIS and configuration registers. In PC Card I/O Mode, this signal is used to read the CIS and configuration registers. To enable True IDE Mode this input should be grounded by the host. Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 15 of 106 Signal Name Dir. Pin O 37 READY (PC Card Memory Mode) –IREQ (PC Card I/O Mode) INTRQ (True IDE Mode) In True IDE Mode signal is the active high Interrupt Request to the host. –REG (PC Card Memory Mode) –REG (PC Card I/O Mode) I 44 I 41 –DMACK (True IDE Mode) RESET (PC Card Memory Mode) RESET (PC Card I/O Mode) –RESET (True IDE Mode) Vcc (PC Card Memory Mode) Vcc (PC Card I/O Mode) Vcc (True IDE Mode) This signal is used during Memory Cycles to distinguish between Common Memory and Register (Attribute) Memory accesses. High for Common Memory, Low for Attribute Memory. The signal shall also be active (low) during I/O Cycles when the I/O address is on the Bus. This is a DMA Acknowledge signal that is asserted by the host in response to DMARQ to initiate DMA transfers. The –DMACK signal must be high except during the execution of DMA commands. (1) If DMA operation is not supported by a True IDE Mode only host, this signal should be driven high or connected to VCC by the host. A host that does not support DMA mode and implements both PC card and True-IDE modes of operation need not alter the PC card mode connections while in True-IDE mode as long as this does not prevent proper operation all modes. The CompactFlashTM Storage Card is Reset when the RESET pin is high with the following important exception: The host may leave the RESET pin open or keep it continually high from the application of power without causing a continuous Reset of the card. Under either of these conditions, the card shall emerge from power-up having completed an initial Reset. The CompactFlashTM Card is also Reset when the Soft Reset bit in the Card Configuration Option Register is set. This signal is the same as the PC Card Memory Mode signal. In the True IDE Mode, this input pin is the active low hardware reset from the host. +5V, +3.3V power. 13, 38 Same for all modes. Same for all modes. Voltage Sense Signals. –VS1 is grounded on the Card and sensed by the Host so that the CompactFlashTM Storage Card CIS can be read at 3.3 volts and –VS2 is reserved by PCMCIA for a secondary voltage and is not connected on the Card. –VS1, –VS2 (PC Card Memory Mode) –VS1, –VS2 (PC Card I/O Mode) Description In Memory Mode, this signal is set high when the CompactFlashTM Storage Card is ready to accept a new data transfer operation and is held low when the card is busy. At power up and at Reset, the READY signal is held low (busy) until the CompactFlashTM Storage Card has completed its power up or reset function. No access of any type should be made to the CompactFlashTM Storage Card during this time. Note, however, that when a card is powered up and used with RESET continuously disconnected or asserted, the Reset function of the RESET pin is disabled. Consequently, the continuous assertion of RESET from the application of power shall not cause the READY signal to remain continuously in the busy state. I/O Operation – After the CompactFlashTM Storage Card has been configured for I/O operation, this signal is used as -Interrupt Request. This line is strobed low to generate a pulse mode interrupt or held low for a level mode interrupt. O 33, 40 This signal is the same for all modes. –VS1, –VS2 (True IDE Mode) This signal is the same for all modes. –WAIT (PC Card Memory Mode) The –WAIT signal is driven low by the CompactFlashTM Storage Card to signal the host to delay completion of a memory or I/O cycle that is in progress. –WAIT (PC Card I/O Mode) IORDY (True IDE Mode – Except Ultra DMA Mode) Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland O 42 This signal is the same as the PC Card Memory Mode signal. In True IDE Mode, except in Ultra DMA modes, this output signal may be used as IORDY. Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 16 of 106 Signal Name Dir. Pin I 36 -DDMARDY (True IDE Mode – Ultra DMA Write Mode) DSTROBE (True IDE Mode – Ultra DMA Read Mode) –WE (PC Card Memory Mode) –WE (PC Card I/O Mode) –WE (True IDE Mode) WP (PC Card Memory Mode) O –IOIS16 (PC Card I/O Mode) 24 –IOCS16 (True IDE Mode) 1) Description In True IDE Mode, when Ultra DMA mode DMA Write is active, this signal is asserted by the host to indicate that the device is read to receive Ultra DMA data-in bursts. The device may negate –DDMARDY to pause an Ultra DMA transfer. In True IDE Mode, when Ultra DMA mode DMA Write is active, this signal is the data out strobe generated by the device. Both the rising and falling edge of DSTROBE cause data to be latched by the host. The device may stop generating DSTROBE edges to pause an Ultra DMA data-out burst. This is a signal driven by the host and used for strobing memory write data to the registers of the CompactFlashTM Storage when the card is configured in the memory interface mode. It is also used for writing the configuration registers. In PC Card I/O Mode, this signal is used for writing the configuration registers. In True IDE Mode, this input signal is not used and should be connected to VCC by the host. Memory Mode – The CompactFlashTM Storage Card does not have a write protect switch. This signal is held low after the completion of the reset initialization sequence. I/O Operation – When the CompactFlashTM Storage Card is configured for I/O Operation Pin 24 is used for the –I/O Selected is 16 Bit Port (-IOIS16) function. A Low signal indicates that a 16 bit or odd byte only operation can be performed at the addressed port. In PC-Card mode, the IOIS16 signal does not work correctly. If a host uses this signal, this may result in 16 bit accesses being changed to two 8 bit accesses. Depending on the address, this may fail. A simple test will show the C-400 compatibility to a certain host. If the C-400 cards can be recognized (Identify Device and MBR data is read out successfully), then this PC card issue will likely not affect the operation in this host. (1) In True IDE Mode this output signal is asserted low when this device is expecting a word data transfer cycle. If you have host-card incompatibilities please contact Swissbit. 5.2 Electrical Specification Table 14 defines the DC Characteristics for the CompactFlashTM Memory Card. Unless otherwise stated, conditions are:  Vcc = 5V ± 10%  Vcc = 3.3V ± 10%  0 °C to +85 °C The card interface is driven with 3.3V. The input pins are 5V tolerant. The High-Speed IDE lines are terminated with serial resistors as specified in the ATA specification to improve the signal quality. Table 14 shows that the Card operates correctly in both the voltage ranges and that the current requirements must not exceed the maximum limit shown. The current is measured by connecting an amp meter in series with the Vcc supply. The meter should be set to the 2A scale range, and have a fast current probe with an RC filter with a time constant of 0.1ms. Current measurements are taken while looping on a data transfer command with a sector count of 128. Current consumption values for both read and write commands are not to exceed the Maximum Average RMS Current specified in Table 14. Table 15 shows the Input Leakage Current, Table 16 the Input Characteristics, Table 17 the Output Drive Type and Table 18 the Output Drive Characteristics. Table 14: Absolute Maximum Conditions Parameter Input Power Voltage on any pin except VCC with respect to GND Symbol VCC V Conditions -0.3V to 6.5V -0.5V to 6.5V Table 15: Input Leakage current (1) Type IxZ IxU IxD Parameter Input Leakage Current (if not pulled up or down) Pull Up Resistor Pull Down Resistor Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Symbol IL RPU1 RPD1 Conditions VIH =Vcc VIL = GND Vcc = 5.0V Vcc = 5.0V Min. Typ. Max. Units -10 10 µA 50 50 500 500 kOhm kOhm Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 17 of 106 x refers to the characteristics described in Table characteristic. 1. 16 For example, I1U indicates a pull up resistor with a type 1 input Table 16: Input characteristics Type Parameter Symbol 1 Input Voltage CMOS 2 Input Voltage CMOS 3 Input Voltage CMOS Schmitt Trigger VIH VIL VIH VIL VTH VTL Min. 2.0 -0.3 2.0 -0.3 2.0 -0.3 Typ. Max. Vcc = 3.3V 5.5 0.8 5.5 0.8 5.5 0.8 Min. Typ. Max. Vcc = 5.0V 2.0 5.5 -0.3 0.8 2.0 5.5 -0.3 0.8 2.0 5.5 -0.3 0.8 Units V V V Table 17: Output Drive Type (1) Type Otx Ozx Opx Onx Output Type Totempole Tri-State N-P Channel P-Channel Only N-Channel Only x refers to the characteristics described in Table characteristic. 1. Valid Conditions IOH & IOL IOH & IOL IOH only IOL only 16 For example, OT3 refers to totem pole output with a type 3 output drive Table 18: Output Drive Characteristics Type 1 2 3 X Parameter Output Voltage Output Voltage Output Voltage Tri-State Leakage Current Symbol VOH VOL VOH VOL VOH VOL IOZ Conditions IOH= -1mA IOL = 4mA IOH = -1mA IOL = 4mA IOH= -1mA IOL = 4mA VOL= GND VOH = Vcc Min. 2.4 Max. 0.45 2.4 0.45 2.4 0.45 -10 10 Units V V V µA 5.3 Additional requirements for CompactFlashTM Advanced Timing mode When operating in a CompactFlashTM Advanced timing mode (PIO5, 6 or MDMA 3, 4), the following conditions must be respected:  Only one CompactFlashTM Card must be connected to the CompactFlashTM bus.  The load capacitance (cable included) for all signals must be lower than 40pF.  The cable length must be lower than 0.15m (6 inches). The cable length is measured from the Card connector to the host controller. 0.46m (18 inches) cables are not supported. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 18 of 106 6 Command Interface There are two types of bus cycles and timing sequences that occur in the PC card type interface, direct mapped I/O transfer and memory access. Two types of bus cycles are also available in True IDE interface type: PIO transfer and Multi-Word DMA transfer. Table 19, Table 20, Table 21, Table 22, Table 23, Table 24, Table 25, and Table 26 show the read and write timing parameters. Figure 2, Figure 3, Figure 4, Figure 5, Figure 6, Figure 7, and Figure 8 and Figure 9 show the read and write timing diagrams. In order to set the card mode, the –OE (-ATASEL) signal must be set and kept stable before applying VCC until the reset phase is completed. To place the card in Memory mode or I/O mode, -OE (-ATASEL) must be driven High, while it must be driven Low to place the card in True IDE mode. 6.1 Attribute Memory Read and Write Figure 2: Attribute Memory Read waveforms Table 19: Attribute Memory Read timing Speed version Item Symbol Read Cycle Time tcI Address Access Time ta(A) Card Enable Access Time ta(CE) Output Enable Access Time ta(OE) Output Disable Time from CE tdis(CE) Output Disable Time from OE tdis(OE) Output Enable Time from CE ten(CE) Output Enable Time from OE ten(OE) Data Valid from Address Change tv(A) Address Setup Time tsu(A) Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland IEEEE Symbol tAVAV tAVQV tELQV tGLQV tEHQZ tGHQZ tELQNZ tGLQNZ tAXQX tAVWL 300ns Min. (ns) Max. (ns) 250 250 250 125 100 100 5 5 0 30 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 19 of 106 Figure 3: Configuration Register (Attribute Memory) Write waveforms 1 DIN signifies data provided by the system to the CompactFlashTM Card. Table 20: Configuration Register (Attribute Memory) Write timing Speed Version Item Symbol IEEEE Symbol Write Cycle Time tc(W) tAVAV Write Pulse Width tw(WE) tWLWH Address Setup Time tsu(A) tAVWL Data Setup Time for WE tsu(D-WEH) tDVWH Data Hold Time th(D) tWMDX Write Recovery Time trec(WE) tWMAX Min. (ns) 250 150 30 80 30 30 250ns Max. (ns) 6.2 Common Memory Read and Write Figure 4: Common Memory Read waveforms 1 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland DOUT means data provided by the CompactFlashTM Memory Card to the system. Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 20 of 106 Table 21: Common Memory Read timing (1) Cycle Time Mode Item 250ns IEEEE Min Max Symbol (ns) (ns) Output Enable Access Time ta(OE) tGLQV 125 Output Disable Time from OE tdis(OE) tGHQZ 100 Address Setup Time tsu(A) tAVGL 30 Address Hold Time th(A) tGHAX 20 CE Setup before OE tsu(CE) tELGL 0 CE Hold following OE th(CE) tGHEH 20 1 Swissbit CF does not assert the WAIT signal. Symbol 120ns Min Max (ns) (ns) 60 60 15 15 0 15 100ns Min Max (ns) (ns) 50 50 10 15 0 15 Min (ns) 80ns Max (ns) 45 45 10 10 0 10 Figure 5: Common Memory Write Waveforms Table 22: Common Memory Write Timing(1) Cycle Time Mode 250ns Item Symbol IEEEE Min Max Symbol (ns) (ns) Data Setup before WE tsu(D-WEH) tDVWH 80 Data Hold following WE th(D) tIWMDX 30 WE Pulse Width tw(WE) tWLWH 150 Address Setup Time tsu(A) tAVWL 30 CE Setup before WE tsu(CE) tELWL 0 Write Recovery Time trec(WE) tWMAX 30 Address Hold Time th(A) tGHAX 20 CE Hold following WE th(CE) tGHEH 20 1 Swissbit CF does not assert the WAIT signal. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 120ns Min Max (ns) (ns) 50 15 70 15 0 15 15 15 100ns Min Max (ns) (ns) 40 10 60 10 0 15 15 15 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com 80ns Min Max (ns) (ns) 30 10 55 10 0 15 10 10 Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 21 of 106 6.3 I/O Read and Write Figure 6: I/O Read waveforms 1 DOUT signifies data provided by the CompactFlashTM Memory Card or to the system. Table 23: I/O Read timing(1) Cycle Time Mode Item Symbol IEEEE Symbol tIGLQV tIGHQX tIGLIGH tAVIGL tIGHAX tELIGL tIGHEH tRGLIGL tIGHRGH tIGLIAL Data Delay after IORD td(IORD) Data Hold following IORD th(IORD) IORD Width Time tw(IORD) Address Setup before IORD tsuA(IORD) Address Hold following IORD thA(IORD) CE setup before IORD tsuCE(IORD) CE Hold following IORD thCE(IORD) REG setup before IORD tsuREG(IORD) REG Hold following IORD thREG(IORD) INPACK Delay Falling from tdfINPACK(IORD) IORD NPACK Delay Rising from IORD tdrINPACK(IORD) tIGHIAH IOIS16 Delay Falling from tdfIOIS16(ADR) tAVISL Address IOIS16 Delay Rising from tdrIOIS16(ADR) tAVISH Address 1. This Swissbit CF card does not assert the WAIT signal. 2. –IOIS16 is not supported in this mode. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 250ns Min Max (ns) (ns) 100 0 165 70 20 5 20 5 0 0 45 45 35 120ns Min Max (ns) (ns) 50 5 70 25 10 5 10 5 0 0 NA(2) 100ns Min Max (ns) (ns) 50 5 65 25 10 5 10 5 0 0 NA(2) 80ns Min Max (ns) (ns) 45 5 55 15 10 5 10 5 0 0 NA(2) NA(2) NA(2) NA(2) 35 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 22 of 106 Figure 7: I/O Write waveforms Table 24: I/O write timing Cycle Time Mode Symbol Item Data Setup before IOWR Data Hold following IOWR IOWR Width Time Address Setup before IOWR Address Hold following IOWR CE setup before IOWR CE Hold following IOWR REG setup before IOWR REG Hold following IOWR IOIS16 Delay Falling from Addr. IOIS16 Delay Rising from Addr. 1. 2. tsu(IOWR) th(IOWR) tw(IOWR) tsuA(IOWR) thA(IOWR) tsuCE(IOWR) thCE(IOWR) tsuREG(IOWR) thREG(IOWR) tdfIOIS16(ADR) tdrIOIS16(ADR) IEEEE Symbol tDVIWH tIWHDX tIWLIWH tAVIWL tIWHAX tELIWL tIWHEH tRGLIWL tIWHRGH tAVISL tAVISH 250ns Min Max (ns) (ns) 60 30 165 70 20 5 20 5 0 35 35 120ns Min Max (ns) (ns) 20 10 70 25 20 5 20 5 0 (2) NA (2) NA 100ns Min Max (ns) (ns) 20 5 65 25 10 5 10 5 0 (2) NA (2) NA 80ns Min Max (ns) (ns) 15 5 55 15 10 5 10 5 0 (2) NA (2) NA DIN signifies data provided by the system to the CompactFlashTM Memory Card. –IOIS16 and –INPACK are not supported in this mode. 6.4 True IDE Mode The timing waveforms for True IDE mode and True IDE DMA mode of operation in this section are drawn using the conventions in the ATA-4 specification, which are different than the conventions used in the PCMCIA specification and earlier versions of this specification. Signals are shown with their asserted state as High regardless of whether the signal is actually negative or positive true. Consequently, the –IORD, the -IOWR and the –IOCS16 signals are shown in the waveforms inverted from their electrical states on the bus. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 23 of 106 Figure 8: True IDE PIO mode Read/Write waveforms 1. 2. 3. The device addresses consists of –CS0, −CS1, and A2-A0. The Data I/O consist of D15-D0 (16-bit) or D7-D0 (8 bit). –IOCS16 is shown for PIO modes 0, 1 and 2. For other modes, this signal is ignored. Table 25: True IDE PIO mode Read/Write timing (1) Parameter Cycle time (min) Address Valid to –IORD/-IOWR setup (min) -IORD/-IOWR (min) -IORD/-IOWR (min) Register (8 bit) -IORD/-IOWR recovery time (min) -IOWR data setup (min) -IOWR data hold (min) -IORD data setup (min) -IORD data hold (min) -IORD data tri-state (max) Address valid to –IOCS16 assertion (max) Address valid to –IOCS16 released (max) -IORD/-IOWR to address valid hold 1. 2. 3. 4. Symbol (2) t0 t1 (2) t2 (2) t2 (2) t2i t3 t4 t5 (3) t6z (4) t7 (4) t8 t7 t9 Mode 0 (ns) 600 70 165 290 60 30 50 5 30 90 60 20 1 (ns) 383 50 125 290 45 20 35 5 30 50 45 15 2 (ns) 240 30 100 290 30 15 20 5 30 40 30 10 3 (ns) 180 30 80 80 70 30 10 20 5 30 NA NA 10 4 (ns) 120 25 70 70 25 20 10 20 5 30 NA NA 10 5(5) (ns) 100 15 65 65 25 20 5 15 5 20 NA NA 10 6(5) (ns) 80 10 55 55 20 15 5 10 5 20 NA NA 10 The maximum load on –IOCS16 is 1 LSTTL with a 50pF total load. t0 is the minimum total cycle time, t2 is the minimum command active time, and t2i is the minimum command recovery time or command inactive time. The actual cycle time equals the sum of the actual command inactive time. The three timing requirements of t0, t2, and t2i have to be met. The requirement is greater than the sum of t2 and t2i. This means a host implementation can ensure that t0 is equal to or greater than the value reported in the devices identify drive Card implementation should support any legal host implementation. This parameter specifies the time from the falling edge of –IORD to the moment when the CompactFlashTM Memory Card (tri-state). t7 and t8 apply only to modes 0, 1 and 2. The –IOCS16 signal is not valid for other modes. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 24 of 106 Figure 9: True IDE Multi-Word DMA Mode Read/Write waveforms –DMARQ –DMACK Table 26: True IDE Multi-Word DMA Mode Read/Write timing Parameter Symbol Mode 0 (ns) 1 (ns) 2 (ns) 3 (ns) 4 (ns) (1) Cycle time (min) 480 150 120 100 80 t0 (1) -IORD / -IOWR asserted width (min) 215 80 70 65 55 tD -IORD data access (max) 150 60 50 50 45 tE -IORD data hold (min) 5 5 5 5 5 tF -IORD/-IOWR data setup (min) 100 30 20 15 10 tG -IOWR data hold (min) 20 15 10 5 5 tH DMACK to –IORD/-IOWR setup (min) 0 0 0 0 0 tI -IORD / -IOWR to –DMACK hold (min) 20 5 5 5 5 tJ (1) -IORD Low width (min) 50 50 25 25 20 tKR (1) -IOWR Low width (min) 215 50 25 25 20 tKW -IORD to DMARQ delay (max) 120 40 35 35 35 tLR -IOWR to DMARQ delay (max) 40 40 35 35 35 tLW CS(1:0) valid to –IORD / -IOWR (min) 50 30 25 10 5 tM CS(1:0) hold (min) 15 10 10 10 10 tN -DMACK (max) 20 25 25 25 25 tZ 1. t0 is the minimum total cycle time. TD is the minimum command active time. TKR and tKW are the minimum command recovery time or command inactive time for input and output cycles, respectively. The actual cycle time is the sum of the actual command active time and the actual command inactive time. The timing requirements of t0, tD, tKR, and tKW must be respected. T0 is higher than tD + tKR or tD + tKW, for input and output cycles respectively. This means the host can lengthen either tD or tKR/tKW, or both, to ensure that t0 is equal to or higher than the value reported in the devices identify device data. A CompactFlashTM Storage Card implementation shall support any legal host implementation. 6.5 Ultra DMA Mode 6.5.1 Ultra DMA Overview Ultra DMA is an optional data transfer protocol used with the READ DMA, and WRITE DMA, commands. When this protocol is enabled, the Ultra DMA protocol shall be used instead of the Multiword DMA protocol when these commands are issued by the host. This protocol applies to the Ultra DMA data burst only. When this protocol is used there are no changes to other elements of the ATA protocol (e.g., Command Block Register access). Ultra DMA operations can take place in any of the three basic interface modes: PC Card Memory mode, PC Card I/O mode, and True IDE (the original mode to support UDMA). The usage of signals in each of the modes is shown in Table 27. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 25 of 106 Table 27: Ultra DMA Signal Usage in Each Interface Mode UDMA Signal Type Pin # (Non UDMA PC CARD MEM MEM MODE) MODE UDMA PC CARD IO MODE UDMA TRUE IDE MODE UDMA DMARQ DMACK STOP HDMARDYI HSTROBE(W) Output Input Input Input -DMARQ DMACK 1 STOP 1, 2 -HDMARDYI 1, 3, 4 HSTROBE(W) DMARQ -DMACK 1 STOP 1, 2 -HDMARDYI 1, 3, 4 HSTROBE(W) DDMARDY(W) DSTROBEI Output 42 (-WAIT) -DDMARDY(W) 1. 2. 4 DSTROBEI DATA ADDRESS CSEL INTRQ Card Select Bidir (D[15:0]) Input (A[10:0]) Input 39 (-CSEL) Output 37 (READY) Input 7 (-CE1) 31 (-CE2) D[15:0] A[10:0] -CSEL READY -CE1 -CE2 43 (-INPACK) 44 (-REG) 35 (-IOWR) 34 (-IORD) -DMARQ -DMACK 1 STOP 1, 2 -HDMARDYI 1, 3, 4 HSTROBE(W) 1, 3 -DDMARDY(W) 1. 2. 4 DSTROBEI 1, 3 D[15:0] A[10:0] -CSEL -INTRQ -CE1 -CE2 -DDMARDY(W) 1. 2. 4 DSTROBEI 1, 3 D[15:0] 5 A[02:0] -CSEL INTRQ -CS0 -CS1 Notes: 1. The UDMA interpretation of this signal is valid only during an Ultra DMA data burst. 2. The UDMA interpretation of this signal is valid only during and Ultra DMA data burst during a DMA Read command. 3. The UDMA interpretation of this signal is valid only during an Ultra DMA data burst during a DMA Write command. 4. The HSTROBE and DSTROBE signals are active on both the rising and the falling edge. 5. Address lines 03 through 10 are not used in True IDE mode. Several signal lines are redefined to provide different functions during an Ultra DMA burst. These lines assume these definitions when: 1. an Ultra DMA mode is selected, and 2. a host issues a READ DMA, or a WRITE DMA command requiring data transfer, and 3. the device asserts (-)DMARQ, and 4. the host asserts –DMACK. These signal lines revert back to the definitions used for non-Ultra DMA transfers upon the negation of –DMACK by the host at the termination of an Ultra DMA burst. With the Ultra DMA protocol, the STROBE signal that latches data from D[15:0] is generated by the same agent (either host or device) that drives the data onto the bus. Ownership of D[15:0] and this data strobe signal are given either to the device during an Ultra DMA data-in burst or to the host for an Ultra DMA data-out burst. During an Ultra DMA burst a sender shall always drive data onto the bus, and, after a sufficient time to allow for propagation delay, cable settling, and setup time, the sender shall generate a STROBE edge to latch the data. Both edges of STROBE are used for data transfers so that the frequency of STROBE is limited to the same frequency as the data. Words in the IDENTIFY DEVICE data indicate support of the Ultra DMA feature and the Ultra DMA modes the device is capable of supporting. The Set transfer mode subcommand in the SET FEATURES command shall be used by a host to select the Ultra DMA mode at which the system operates. The Ultra DMA mode selected by a host shall be less than or equal to the fastest mode of which the device is capable. Only one Ultra DMA mode shall be selected at any given time. All timing requirements for a selected Ultra DMA mode shall be satisfied. Devices supporting any Ultra DMA mode shall also support all slower Ultra DMA modes. An Ultra DMA capable device shall retain the previously selected Ultra DMA mode after executing a software reset sequence or the sequence caused by receipt of a DEVICE RESET command if a SET FEATURES disable reverting to defaults command has been issued. The device may revert to a Multiword DMA mode if a SET FEATURES enable reverting to default has been issued. An Ultra DMA capable device shall clear any previously selected Ultra DMA mode and revert to the default non-Ultra DMA modes after executing a power-on or hardware reset. Both the host and device perform a CRC function during an Ultra DMA burst. At the end of an Ultra DMA burst the host sends its CRC data to the device. The device compares its CRC data to the data sent from the host. If the two values do not match, the device reports an error in the error register. If an error occurs during one or more Ultra DMA bursts for any one command, the device shall report the first error that occurred. If the device detects that a CRC error has occurred before data transfer for the command is complete, the device may complete the transfer and report the error or abort the command and report the error. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 26 of 106 NOTE – If a data transfer is terminated before completion, the assertion of INTRQ should be passed through to the host software driver regardless of whether all data requested by the command has been transferred. 6.5.2 Restrictions and Considerations during Ultra DMA Commands There are number of important restrictions and considerations for the implementation and use of Ultra DMA commands in CompactFlashTM devices. These are highlighted in the subsections below. Additional restrictions on specific modes of operation are given in sections 5.3 and 6.5.3 6.5.2.1 System Restrictions for Ultra DMA modes 3 and above Ultra DMA modes 3 and above are valid only for systems that meet the requirements of section 5.3 6.5.2.2 UDMA Address and Card Enable Signals The Card Enable signals (-CE1 / -CS0 and –CE2 / -CS1) shall remain negated during Ultra DMA data bursts. The Address bus (A[10:0]) shall not transition unnecessarily during the UDMA command and shall remain fixed during an Ultra DMA data burst. In True IDE mode, the address lines (A[2:0]) shall be held to all zeros. This will reduce unnecessary noise during the UDMA command. 6.5.2.3 Task File registers shall not be written during an Ultra DMA command The task file registers shall not be written after an Ultra DMA command is issued by the host and before the command completes. Writing to the device control register is permitted between bursts, but is expected to occur only to reset the card after an unrecoverable protocol error. 6.5.2.4 Ultra DMA transfers shall be 16 bits wide All transfers during an Ultra DMA data burst are 16 bit wide transfers. The Set Features command that controls the bus width for PIO transfers does not affect the width of Ultra DMA transfers. 6.5.2.5 No Access to Memory or I/O Space during an Ultra DMA Data Burst No access to common or attribute memory or to I/O space on the device is permitted during an Ultra DMA data burst. 6.5.3 Specific rules for PC Card Memory Mode Ultra DMA In addition to the general restrictions for all Ultra DMA operations, these additional considerations exist for PC Card Memory Mode Ultra DMA operations. 6.5.3.1 No Access to Attribute Memory during PC Card Memory Mode DMA Commands The host shall not attempt to access Attribute Memory space during a PC Card Memory Mode DMA command either before, between or within Ultra DMA data bursts. 6.5.3.2 READY signal handling during DMA commands in PC Card Memory Mode In PC Card Memory Mode, the READY signal shall be negated (made BUSY) by the device upon receipt of a DMA command and shall remain negated until the command has completed at which time it shall be re-asserted. This treatment allows the host to receive a single interrupt at the end of the command and avoids the extra overhead that would be associated with processing busy to ready transitions for each sector transferred as is the case when the READY toggles at the end of every sector of PIO Memory Mode transfers. The BSY bit in the status register is permitted to be negated in the status register at any time that the DRQ bit in the status register is asserted. The only restriction is that either DRQ or BSY or both must remain asserted while the command is in progress. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 27 of 106 6.5.4 Ultra DMA Phases of Operation An Ultra DMA data transfer is accomplished through a series of Ultra DMA data-in or data-out bursts. Each Ultra DMA burst has three mandatory phases of operation: the initiation phase, the data transfer phase, and the Ultra DMA burst termination phase. In addition, an Ultra DMA burst may be paused during the data transfer phase (see: 6.5.4.4 , for the detailed protocol descriptions for each of these phases. Table 28: Ultra DMA Data Burst Timing Requirements and Table 29: Ultra DMA Data Burst Timing Descriptions define the specific timing requirements). In the following rules –DMARDY is used in cases that could apply to either –DDMARDY or –HDMARDY, and STROBE is used in cases that could apply to either DSTROBE or HSTROBE. The following are general Ultra DMA rules. 1. An Ultra DMA burst is defined as the period from an assertion of –DMACK by the host to the subsequent negation of –DMACK. 2. When operating in Ultra DMA modes 2, 1, or 0 a recipient shall be prepared to receive up to two data words whenever an Ultra DMA burst is paused. When operating in Ultra DMA modes 6, 5, 4, or 3 a recipient shall be prepared to receive up to three data words whenever an Ultra DMA burst is paused. 6.5.4.1 Ultra DMA Burst Initiation Phase Rules 1. 2. 3. 4. 5. 6. 7. An Ultra DMA burst initiation phase begins with the assertion of DMARQ by a device and ends when the sender generates a STROBE edge to transfer the first data word. An Ultra DMA burst shall always be requested by a device asserting DMARQ. When ready to initiate the requested Ultra DMA burst, the host shall respond by asserting –DMACK. A host shall never assert –DMACK without first detecting that DMARQ is asserted. For Ultra DMA data-in bursts: a device may begin driving D[15:00] after detecting that –DMACK is asserted, STOP negated, and –HDMARDY is asserted. After asserting DMARQ or asserting –DDMARDY for an Ultra DMA data-out burst, a device shall not negate either signal until the first STROBE edge is generated. After negating STOP or asserting –HDMARDY for an Ultra DMA data-in burst, a host shall not change the state of either signal until the first STROBE edge is generated. 6.5.4.2 Ultra DMA Data transfer phase rules 1. 2. The data transfer phase is in effect from after Ultra DMA burst initiation until Ultra DMA burst termination. A recipient pauses an Ultra DMA burst by negating –DMARDY and resumes an Ultra DMA burst by reasserting –DMARDY. 3. A sender pauses an Ultra DMA burst by not generating STROBE edges and resumes by generating STROBE edges. 4. A recipient shall not signal a termination request immediately when the sender stops generating STROBE edges. In the absence of a termination from the sender the recipient shall always negate –DMARDY and wait the required period before signaling a termination request. 5. A sender may generate STROBE edges at greater than the minimum period specified by the enabled Ultra DMA mode. The sender shall not generate STROBE edges at less than the minimum period specified by the enabled Ultra DMA mode. A recipient shall be able to receive data at the minimum period specified by the enabled Ultra DMA mode. 6.5.4.3 Ultra DMA Burst Termination Phase Rules 1. 2. 3. 4. 5. 6. 7. 8. 9. Either a sender or a recipient may terminate an Ultra DMA burst. Ultra DMA burst termination is not the same as command completion. If an Ultra DMA burst termination occurs before command completion, the command shall be completed by initiation of a new Ultra DMA burst at some later time or aborted by the host issuing a hardware or software reset or DEVICE RESET command if implemented by the device. An Ultra DMA burst shall be paused before a recipient requests a termination. A host requests a termination by asserting STOP. A device acknowledges a termination request by negating DMARQ. A device requests a termination by negating DMARQ. A host acknowledges a termination request by asserting STOP. Once a sender requests a termination, the sender shall not change the state of STROBE until the recipient acknowledges the request. Then, if STROBE is not in the asserted state, the sender shall return STROBE to the asserted state. No data shall be transferred on this transition of STROBE. A sender shall return STROBE to the asserted state whenever the sender detects a termination request from the recipient. No data shall be transferred nor CRC calculated on this edge of DSTROBE. Once a recipient requests a termination, the responder shall not change DMARDY from the negated state for the remainder of an Ultra DMA burst. A recipient shall ignore a STROBE edge when DMARQ is negated or STOP is asserted. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 28 of 106 6.5.4.4 Ultra DMA Data Transfers Timing Table 28 and Table 29 define the timings associated with all phases of Ultra DMA bursts. Table 28: Ultra DMA Data Burst Timing Requirements Name UDMA UDMA UDMA UDMA UDMA Mode 0 Mode 1 Mode 2 Mode 3 Mode 4 (ns) (ns) (ns) (ns) (ns) Min Max Min Max Min Max Min Max Min Max 240 160 120 90 60 t2CYCTYP 112 73 54 39 25 tCYC 230 153 115 86 57 t2CYC 15.0 10.0 7.0 7.0 5.0 tDS 5.0 5.0 5.0 5.0 5.0 tDH 70.0 48.0 31.0 20.0 6.7 tDVS 6.2 6.2 6.2 6.2 6.2 tDVH 15.0 10.0 7.0 7.0 5.0 tCS 5.0 5.0 5.0 5.0 5.0 tCH 70.0 48.0 31.0 20.0 6.7 tCVS 6.2 6.2 6.2 6.2 6.2 tCVH 0 0 0 0 0 tZFS 70.0 48.0 31.0 20.0 6.7 tDZFS 230 200 170 130 120 tFS 0 150 0 150 0 150 0 100 0 100 tLI 20 20 20 20 20 tMLI 0 0 0 0 0 tUI 10 10 10 10 10 tAZ 20 20 20 20 20 tZAH 0 0 0 0 0 tZAD 20 70 20 70 20 70 20 55 20 55 tENV 75 70 60 60 60 tRFS 160 125 100 100 100 tRP 20 20 20 20 20 tIORDYZ 0 0 0 0 0 tZIORDY 20 20 20 20 20 tACK 50 50 50 50 50 tSS UDMA UDMA Measurement Mode 5 Mode 6 location (ns) (ns) (See Note 2) Min Max Min Max 40 16.8 38 4.0 4.6 4.8 4.8 5.0 5.0 10.0 10.0 35 25.0 0 20 0 24 13 29 2.6 3.5 4.0 4.0 5.0 5.0 10.0 10.0 25 17.5 90 75 0 20 0 10 20 0 20 50 50 85 80 60 10 20 0 20 50 50 85 20 0 20 50 20 0 20 50 Sender Note 3 Sender Recipient Recipient Sender Sender Device Device Host Host Device Sender Device Note 4 Host Host Note 5 Host Device Host Sender Recipient Device Device Host Sender Notes: 1. 2. 3. 4. 5. 6. All timing measurement switching points (low to high and high to low) shall be taken at 1.5 V. All signal transitions for a timing parameter shall be measured at the connector specified in the measurement location column. For example, in the case of tRFS, both STROBE and –DMARDY transitions are measured at the sender connector. The parameter tCYC shall be measured at the recipient’s connector farthest from the sender. The parameter tLI shall be measured at the connector of the sender or recipient that is responding to an incoming transition from the recipient or sender respectively. Both the incoming signal and the outgoing response shall be measured at the same connector. The parameter tAZ shall be measured at the connector of the sender or recipient that is driving the bus but must release the bus the allow for a bus turnaround. See the AC Timing requirements in Table 29: Ultra DMA Data Burst Timing Descriptions. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 29 of 106 Table 29: Ultra DMA Data Burst Timing Descriptions Name Comment Notes t2CYCTYP Typical sustained average two cycle time tCYC Cycle time allowing for asymmetry and clock variations (from STROBE edge to STROBE edge) t2CYC Two cycle time allowing for clock variations (from rising edge to next rising edge or from falling edge to next falling edge of STROBE) tDS Data setup time at recipient (from data valid until STROBE edge) tDH Data hold time at recipient (from STROBE edge until data may become invalid) tDVS Data valid setup time at sender (from data valid until STROBE edge) tDVH Data valid hold time at sender (from STROBE edge until data may become invalid) tCS CRC word setup time at device tCH CRC word hold time device tCVS CRC word valid setup time at host (from CRC valid until –DMACK negation) tCVH CRC word valid hold time at sender (from –DMACK negation until CRC may become invalid) tZFS Time from STROBE output released-to-driving until the first transition of critical timing. TDZFS Time from data output released-to-driving until the first transition of critical timing. TFS First STROBE time (for device to first negate DSTROBE from STOP during a data in burst) tLI Limited interlock time tMLI Interlock time with minimum tUI Unlimited interlock time tAZ Maximum time allowed for output drivers to release (from asserted or negated) tZAH Minimum delay time required for output tZAD drivers to assert or negate (from released) tENV Envelope time (from –DMACK to STOP and –HDMARDY during data in burst initiation and from DMACK to STOP during data out burst initiation) tRFS Ready-to-final-STROBE time (no STROBE edges shall be sent this long after negation of -DMARDY) tRP Ready-to-pause time (that recipient shall wait to pause after negating –DMARDY) tIORDYZ Maximum time before releasing IORDY tZIORDY Minimum time before driving IORDY tACK Setup and hold times for –DMACK (before assertion or negation) tSS Time from STROBE edge to negation of DMARQ or assertion of STOP (when sender terminates a burst) Notes: 2, 5 2, 5 3 3 2 2 3 3 1 1 1 4 1. The parameters tUI, tMLI (in Figure 13: Ultra DMA Data-In Burst Device Termination Timing and Figure 14: Ultra DMA Data-In Burst Host Termination Timing), and tLI indicate sender-to-recipient or recipient-tosender interlocks, i.e., one agent (either sender or recipient) is waiting for the other agent to respond with a signal before proceeding. TUI is an unlimited interlock that has no maximum time value. TMLI is a limited time-out that has a defined minimum. TLI is a limited time-out that has a defined maximum. 2. 80-conductor cabling shall be required in order to meet setup (tDS, tCS) and hold (tDH, tCH) times in modes greater than 2. 3. Timing for tDVS, tDVH, tCVS and tCVH shall be met for lumped capacitive loads of 15 and 40 pF at the connector where the Data and STROBE signals have the same capacitive load value. Due to reflections on the cable, these timing measurements are not valid in a normally functioning system. 4. For all modes the parameter tZIORDY may be greater than tENV due to the fact that the host has a pull-up on IORDY- giving it a known state when released. 5. The parameters tDS, and tDH for mode 5 are defined for a recipient at the end of the cable only in a configuration with a single device located at the end of the cable. This could result in the minimum values for tDS and tDH for mode 5 at the middle connector being 3.0 and 3.9 ns respectively. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 30 of 106 Table 30: Ultra DMA Sender and Recipient IC Timing Requirements Name Comments UDMA UDMA UDMA Mode 0 Mode 1 Mode 2 (ns) (ns) (ns) Min Min Min tDSIC tDHIC tDVSIC tDVHIC Notes: 1. 2. 3. Recipient IC data setup time (from data valid until STROBE edge) (see note 2) Recipient IC data hold time (from STROBE edge until data may become invalid) (see note 2) Sender IC data valid setup time (from data valid until STROBE edge) (see note 3) Sender IC data valid hold time (from STROBE edge until data may become invalid) (see note 3) UDMA Mode4 (ns) Min UDMA Mode 5 (ns) Min UDMA Mode6 (ns) Min 14.7 9.7 6.8 6.8 4.8 2.3 2.3 4.8 4.8 4.8 4.8 4.8 2.8 2.8 72.9 50.9 33.9 22.6 9.5 6.0 5.2 9.0 9.0 9.0 9.0 9.0 6.0 5.2 All timing measurement switching points(low to high and high to low) shall be taken at 1.5 V. The correct data value shall be captured by the recipient given input data with a slew rate of 0.4 V/ns rising and falling and the input STROBE with a slew rate of 0.4 V/ns rising and falling at t DSIC and tDHIC timing (as measured through 1.5 V). The parameters tDVSIC and tDVHIC shall be met for lumped capacitive loads of 15 and 40 pF at the IC where all signals have the same capacitive load value. Noise that may couple onto the output signals from external sources has not been included in these values. Table 31: Ultra DMA AC Signal Requirements Name Comment SRISE SFALL Note: 1. UDMA Mode 3 (ns) Min Min [V/ns] Rising Edge Slew Rate for any signal Falling Edge Slew Rate for any signal Max [V/ns] Notes 1.25 1.25 1 1 The sender shall be tested while driving an 18 inch long, 80 conductor cable with PVC insulation material. The signal under test shall be cut at a test point so that it has not trace, cable or recipient loading after the test point. All other signals should remain connected through to the recipient. The test point may be located at any point between the sender’s series termination resistor and one half inch or less of conductor exiting the connector. If the test point is on a cable conductor rather than the PCB, an adjacent ground conductor shall also be cut within one half inch of the connector. The test load and test points should then be soldered directly to the exposed source side connectors. The test loads consist of a 15 pF or a 40 pF, 5%, 0.08 inch by 0.05 inch surface mount or smaller size capacitor from the test point to ground. Slew rates shall be met for both capacitor values. Measurements shall be taken at the test point using a 100 kOhm, 1 GHz or faster probe and a 500 MHz or faster oscilloscope. The average rate shall be measured from 20% to 80% of the settled VOH level with data transitions at least 120 ns apart. The settled VOH level shall be measured as the average output high level under the defined testing conditions from 100 nsec after 80% of a rising edge until 20% of the subsequent falling edge. 6.5.4.4.1 Initiating an Ultra DMA Data-In Burst a) An Ultra DMA Data-In burst is initiated by following the steps lettered below. The timing diagram is shown in Figure 10: Ultra DMA Data-In Burst Initiation Timing. The associated timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. b) The following steps shall occur in the order they are listed unless otherwise specifically allowed: c) The host shall keep –DMACK in the negated state before an Ultra DMA burst is initiated. d) The device shall assert DMARQ to initiate an Ultra DMA burst. After assertion of DMARQ the device shall not negate DMARQ until after the first negation of DSTROBE. e) Steps I, (d), and (e) may occur in any order or at the same time. The host shall assert STOP. f) The host shall negate –HDMARDY. g) The host shall negate –CS0, -CS1, A2, A1, and A0. The host shall keep –CS0, -CS1, A2, A1, and A0 negated until after negating –DMACK at the end of the burst. h) Steps I, (d), and (e) shall have occurred at least tACK before the host asserts –DMACK. The host shall keep – DMACK asserted until the end of an Ultra DMA burst. i) The host shall release D[15:0] within tAZ after asserting –DMACK. j) The device may assert DSTROBE tZIORDY after the host has asserted –DMACK. Once the device has driven DSTROBE the device shall not release DSTROBE until after the host has negated –DMACK at the end of an Ultra DMA burst. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 31 of 106 k) The host shall negate STOP and assert –HDMARDY within tENV after asserting –DMACK. After negating STOP and asserting –HDMARDY, the host shall not change the state of either signal until after receiving the first transition of DSTROBE from the device (i.e., after the first data word has been received). l) The device shall drive D[15:00] no sooner than tZAD after the host has asserted –DMACK, negated STOP, and asserted –HDMARDY. m) The device shall drive the first word of the data transfer onto D[15:0]. This step may occur when the device first drives D[15:0] in step (j). n) To transfer the first word of data the device shall negate DSTROBE within tFS after the host has negated STOP and asserted –HDMARDY. The device shall negate DSTROBE no sooner than tDVS after driving the first word of data onto D[15:0]. Figure 10: Ultra DMA Data-In Burst Initiation Timing Notes: The definitions for the IORDY:-DDMARDY:DSTROBE, -IORD: -HDMARDY:HSTROBE, and –IOWR:STOP signal lines are not in effect until DMARQ and –DMACK are asserted. 6.5.4.4.2 Sustaining an Ultra DMA Data-In Burst An Ultra DMA Data-In burst is sustained by following the steps lettered below. The timing diagram is shown in Figure 11: Sustained Ultra DMA Data-In Burst Timing. The timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 32 of 106 The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The device shall drive a data word onto D[15:0]. b) The device shall generate a DSTROBE edge to latch the new word no sooner than t DVS after changing the state of D[15:0]. The device shall generate a DSTROBE edge no more frequently than tCYC for the selected Ultra DMA mode. The device shall not generate two rising or two falling DSTROBE edges more frequently than 2tcyc for the selected Ultra DMA mode. c) The device shall not change the state of D[15:0] until at least tDVH after generating a DSTROBE edge to latch the data. d) The device shall repeat steps (a), (b), and (c) until the data transfer is complete or an Ultra DMA burst is paused, whichever occurs first. Figure 11: Sustained Ultra DMA Data-In Burst Timing Notes: D[15:0] and DSTROBE signals are shown at both the host and the device to emphasize that cable settling time as well as cable propagation delay shall not allow the data signals to be considered stable at the host until some time after they are driven by the device. 6.5.4.4.3 Host Pausing an Ultra DMA Data-In Burst The host pauses a Data-In burst by following the steps lettered below. A timing diagram is shown in Figure 12: Ultra DMA Data-In Burst Host Pause Timing. The timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The host shall not pause an Ultra DMA burst until at least one data word of an Ultra DMA burst has been transferred. b) The host shall pause an Ultra DMA burst by negating –HDMARDY. c) The device shall stop generating DSTROBE edges within tRFS of the host negating –HDMARDY. d) If the host negates –HDMARDY within tSR after the device has generated a DSTROBE edge, then the host shall be prepared to receive zero or one additional data words. If the host negates –HDMARDY greater than tSR after the device has generated a DSTROBE edge, then the host shall be prepared to receive zero, one or two additional data words. The additional data words are a result of cable round trip delay and tRFS timing for the device. e) The host shall resume an Ultra DMA burst by asserting –HDMARDY. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 33 of 106 Figure 12: Ultra DMA Data-In Burst Host Pause Timing Notes: 1. 2. The host may assert STOP to request termination of the Ultra DMA burst no sooner than tRP after –HDMARDY is negated. After negating –HDMARDY, the host may receive zero, one, two, or three more data words from the device. 6.5.4.4.4 Device Terminating an Ultra DMA Data-In Burst The device terminates an Ultra DMA Data-In burst by following the steps lettered below. The timing diagram is shown in Figure 13: Ultra DMA Data-In Burst Device Termination Timing. The timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The device shall not pause an Ultra DMA burst until at least one data word of an Ultra b) The device shall pause an Ultra DMA burst by not generating DSTROBE edges. c) NOTE – The host shall not immediately assert STOP to initiate Ultra DMA burst termination when the device stops generating STROBE edges. If the device does not negate DMARQ, in order to initiate ULTRA DMA burst termination, the host shall negate d) The device shall resume an Ultra DMA burst by generating a DSTROBE edge. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 34 of 106 Figure 13: Ultra DMA Data-In Burst Device Termination Timing Notes: The definitions for the STOP, HDMARDY, and DSTROBE signal lines are no longer in effect after DMARQ and DMACK are negated. 6.5.4.4.5 Host Terminating an Ultra DMA Data-In Burst The host terminates an Ultra DMA Data-In burst by following the steps lettered below. The timing diagram is shown in Figure 14: Ultra DMA Data-In Burst Host Termination Timing. The timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The host shall not initiate Ultra DMA burst termination until at least one data word of an Ultra DMA burst has been transferred. b) The host shall initiate Ultra DMA burst termination by negating –HDMARDY. The host shall continue to negate –HDMARDY until the Ultra DMA burst is terminated. c) The device shall stop generating DSTROBE edges within tRFS of the host negating –HDMARDY d) If the host negates –HDMARDY within tSR after the device has generated a DSTROBE edge, then the host shall be prepared to receive zero or one additional data words. If the host negates HDMARDYgreater than tSR after the device has generated a DSTROBE edge, then the host shall be prepared to receive zero, one or two additional data words. The additional data words are a result of cable round trip delay and t RFS timing for the device. e) The host shall assert STOP no sooner than tRP after negating –HDMARDY. The host shall not negate STOP again until after the Ultra DMA burst is terminated. f) The device shall negate DMARQ within tLI after the host has asserted STOP. The device shall not assert DMARQ again until after the Ultra DMA burst is terminated. g) If DSTROBE is negated, the device shall assert DSTROBE within tLI after the host has asserted STOP. No data shall be transferred during this assertion. The host shall ignore this transition on DSTROBE. DSTROBE shall remain asserted until the Ultra DMA burst is terminated. h) The device shall release D[15:0] no later than tAZ after negating DMARQ. i) The host shall drive DD D[15:0] no sooner than tZAH after the device has negated DMARQ. For this step, the host may first drive D[15:0] with the result of its CRC calculation (see 6.5.4.5 ). Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 35 of 106 j) k) l) m) n) o) p) If the host has not placed the result of its CRC calculation on D[15:0] since first driving D[15:0] during (9), the host shall place the result of its CRC calculation on D[15:0] (see 6.5.4.5 ). The host shall negate –DMACK no sooner than tMLI after the device has asserted DSTROBE and negated DMARQ and the host has asserted STOP and negated –HDMARDY, and no sooner than tDVS after the host places the result of its CRC calculation on D[15:0]. The device shall latch the host’s CRC data from D[15:0] on the negating edge of –DMACK. The device shall compare the CRC data received from the host with the results of its own CRC calculation. If a miscompare error occurs during one or more Ultra DMA burst for any one command, at the end of the command, the device shall report the first error that occurred (see 6.5.4.5 ). The device shall release DSTROBE within tIORDYZ after the host negates –DMACK. The host shall neither negate STOP nor assert –HDMARDY until at least tACK after the host has negated – DMACK. The host shall not assert –IORD, -CS0, -CS1, A2, A1, or A0 until at least tACK after negating DMACK. Figure 14: Ultra DMA Data-In Burst Host Termination Timing Notes: The definitions for the STOP, HDMARDY, and DSTROBE signal lines are no longer in effect after DMARQ and DMACK are negated. 6.5.4.4.6 Initiating an Ultra DMA Data-Out Burst An Ultra DMA Data-out burst is initiated by following the steps lettered below. The timing diagram is shown in Figure 15: Ultra DMA Data-Out Burst Initiation Timing. The timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The host shall keep –DMACK in the negated state before an Ultra DMA burst is initiated. b) The device shall assert DMARQ to initiate an Ultra DMA burst. c) Steps I, (d), and (e) may occur in any order or at the same time. The host shall assert STOP. d) The host shall assert HSTROBE. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 36 of 106 e) The host shall negate –CS0, -CS1, A2, A1, and A0. The host shall keep –CS0, -CS1, A2, A1, and A0 negated until after negating –DMACK at the end of the burst. f) Steps I, (d), and (e) shall have occurred at least tACK before the host asserts –DMACK. The host shall keep – DMACK asserted until the end of an Ultra DMA burst. g) The device may negate –DDMARDY tZIORDY after the host has asserted –DMACK. Once the device has negated –DDMARDY, the device shall not release –DDMARDY until after the host has negated DMACK at the end of an Ultra DMA burst. h) The host shall negate STOP within tENV after asserting –DMACK. The host shall not assert STOP until after the first negation of HSTROBE. i) The device shall assert –DDMARDY within tLI after the host has negated STOP. After asserting DMARQ and – DDMARDY the device shall not negate either signal until after the first negation of HSTROBE by the host. j) The host shall drive the first word of the data transfer onto D[15:0]. This step may occur any time during Ultra DMA burst initiation. k) To transfer the first word of data: the host shall negate HSTROBE no sooner than tUI after the device has asserted –DDMARDY. The host shall negate HSTROBE no sooner than tDVS after the driving the first word of data onto D[15:0]. Figure 15: Ultra DMA Data-Out Burst Initiation Timing Note: The definitions for the STOP, DDMARDY, and HSTROBE signal lines are not in effect until DMARQ and DMACK are asserted. 6.5.4.4.7 Sustaining an Ultra DMA Data-Out Burst An Ultra DMA Data-Out burst is sustained by following the steps lettered below. The timing diagram is shown in Figure 16: Sustained Ultra DMA Data-Out Burst Timing. The associated timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The host shall drive a data word onto D[15:0]. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 37 of 106 b) The host shall generate an HSTROBE edge to latch the new word no sooner than t DVS after changing the state of D[15:0]. The host shall generate an HSTROBE edge no more frequently than tCYC for the selected Ultra DMA mode. The host shall not generate two rising or falling HSTROBE edges more frequently than 2t cyc for the selected Ultra DMA mode. c) The host shall not change the state of D[15:0] until at least tDVH after generating an HSTROBE edge to latch the data. d) The host shall repeat steps (a), (b), and (c) until the data transfer is complete or an Ultra DMA burst is paused, whichever occurs first. Figure 16: Sustained Ultra DMA Data-Out Burst Timing Note: Data (D15:D0) and HSTROBE signals are shown at both the device and the host to emphasize that cable settling time as well as cable propagation delay shall not allow the data signals to be considered stable at the device until some time after they are driven by the host. 6.5.4.4.8 Device Pausing an Ultra DMA Data-Out Burst The device pauses an Ultra DMA Data-Out burst by following the steps lettered below. The timing diagram is shown in Figure 17: Ultra DMA Data-Out Burst Device Pause Timing. The timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The device shall not pause an Ultra DMA burst until at least one data word of an Ultra DMA burst has been transferred. b) The device shall pause an Ultra DMA burst by negating –DDMARDY. c) The host shall stop generating HSTROBE edges within tRFS of the device negating –DDMARDY. d) If the device negates –DDMARDY within tSR after the host has generated an HSTROBE edge, then the device shall be prepared to receive zero or one additional data words. If the device negates –DDMARDY greater than tSR after the host has generated an HSTROBE edge, then the device shall be prepared to receive zero, one or two additional data words. The additional data words are a result of cable round trip delay and t RFS timing for the host. e) The device shall resume an Ultra DMA burst by asserting –DDMARDY. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 38 of 106 Figure 17: Ultra DMA Data-Out Burst Device Pause Timing Notes: 1. 2. The device may negate DMARQ to request termination of the Ultra DMA burst no sooner than t RP after -DDMARDY is negated. After negating –DDMARDY, the device may receive zero, one, two, or three more data words from the host. 6.5.4.4.9 Device Terminating an Ultra DMA Data-Out Burst The device terminates an Ultra DMA Data-Out burst by following the steps lettered below. The timing diagram for the operation is shown in Figure 18: Ultra DMA Data-Out Burst Device Termination Timing. The timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The device shall not initiate Ultra DMA burst termination until at least one data word of an Ultra DMA burst has been transferred. b) The device shall initiate Ultra DMA burst termination by negating –DDMARDY. c) The host shall stop generating an HSTROBE edges within tRFS of the device negating –DDMARDY. d) If the device negates –DDMARDY within tSR after the host has generated an HSTROBE edge, then the device shall be prepared to receive zero or one additional data words. If the device negates –DDMARDY greater than tSR after the host has generated an HSTROBE edge, then the device shall be prepared to receive zero, one or two additional data words. The additional data words are a result of cable round trip delay and tRFS timing for the host. e) The device shall negate DMARQ no sooner than tRP after negating –DDMARDY. The device shall not assert DMARQ again until after the Ultra DMA burst is terminated. f) The host shall assert STOP within tLI after the device has negated DMARQ. The host shall not negate STOP again until after the Ultra DMA burst is terminated. g) If HSTROBE is negated, the host shall assert HSTROBE within tLI after the device has negated DMARQ. No data shall be transferred during this assertion. The device shall ignore this transition of HSTROBE. HSTROBE shall remain asserted until the Ultra DMA burst is terminated. h) The host shall place the result of its CRC calculation on D[15:0] (see 6.5.4.5 ). i) The host shall negate –DMACK no sooner than tMLI after the host has asserted HSTROBE and STOP and the device has negated DMARQ and –DDMARDY, and no sooner than tDVS after placing the result of its CRC calculation on D[15:00]. j) The device shall latch the host’s CRC data from D[15:00] on the negating edge of –DMACK. k) The device shall compare the CRC data received from the host with the results of its own CRC calculation. If a miscompare error occurs during one or more Ultra DMA bursts for any one command. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 39 of 106 Figure 18: Ultra DMA Data-Out Burst Device Termination Timing Note: The definitions for the STOP, DDMARDY, and HSTROBE signal lines are no longer in effect after DMARQ and DMACK are negated. 6.5.4.4.10 Host Terminating an Ultra DMA Data-Out Burst Termination of an Ultra DMA Data-Out burst by the host is shown in Figure 19: Ultra DMA Data-Out Burst Host Termination Timing while timing parameters are specified in Table 28: Ultra DMA Data Burst Timing Requirements and timing parameters are described in Table 29: Ultra DMA Data Burst Timing Descriptions. The following steps shall occur in the order they are listed unless otherwise specifically allowed: a) The host shall initiate termination of an Ultra DMA burst by not generating HSTROBE edges. b) The host shall assert STOP no sooner than tSS after it last generated an HSTROBE edge. The host shall not negate STOP again until after the Ultra DMA burst is terminated. c) The device shall negate DMARQ within tLI after the host asserts STOP. The device shall not assert DMARQ again until after the Ultra DMA burst is terminated. d) The device shall negate –DDMARDY within tLI after the host has negated STOP. The device shall not assert – DDMARDY again until after the Ultra DMA burst termination is complete. e) If HSTROBE is negated, the host shall assert HSTROBE within tLI after the device has negated DMARQ. No data shall be transferred during this assertion. The device shall ignore this transition on HSTROBE. HSTROBE shall remain asserted until the Ultra DMA burst is terminated. f) The host shall place the result of its CRC calculation on D[15:0] (see 6.5.4.5 ). g) The host shall negate –DMACK no sooner than tMLI after the host has asserted HSTROBE and STOP and the device has negated DMARQ and –DDMARDY, and no sooner than tDVS after placing the result of its CRC calculation on D[15:0]. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 40 of 106 h) The device shall latch the host’s CRC data from D[15:0] on the negating edge of –DMACK. i) The device shall compare the CRC data received from the host with the results of its own CRC calculation. If a miscompare error occurs during one or more Ultra DMA bursts for any one command, at the end of the command, the device shall report the first error that occurred (see 6.5.4.5 ). j) The device shall release –DDMARDY within tIORDYZ after the host has negated –DMACK. k) The host shall neither negate STOP nor negate HSTROBE until at least tACK after negating –DMACK. l) The host shall not assert –IOWR, -CS0, -CS1, A2, A1, or A0 until at least tACK after negating -DMACK. Figure 19: Ultra DMA Data-Out Burst Host Termination Timing Notes: The definitions for the STOP, DDMARDY, and HSTROBE signal lines are no longer in effect after DMARQ and DMACK are negated. 6.5.4.5 Ultra DMA CRC Calculation The following is a list of rules for calculating CRC, determining if a CRC error has occurred during an Ultra DMA burst, and reporting any error that occurs at the end of a command. 1. Both the host and the device shall have a 16-bit CRC calculation function. 2. Both the host and the device shall calculate a CRC value for each Ultra DMA burst. 3. The CRC function in the host and the device shall be initialized with a seed of 4ABAh at the beginning of an Ultra DMA burst before any data is transferred. 4. For each STROBE transition used for data transfer, both the host and the device shall calculate a new CRC value by applying the CRC polynomial to the current value of their individual CRC functions and the word being transferred. CRC is not calculated for the return of STROBE to the asserted state after the Ultra DMA burst termination request has been acknowledged. 5. At the end of any Ultra DMA burst the host shall send the results of its CRC calculation function to the device on D[15:0] with the negation of –DMACK. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 41 of 106 6. The device shall then compare the CRC data from the host with the calculated value in its own CRC calculation function. If the two values do not match, the device shall save the error and report it at the end of the command. A subsequent Ultra DMA burst for the same command that does not have a CRC error shall not clear an error saved from a previous Ultra DMA burst in the same command. If a miscompare error occurs during one or more Ultra DMA bursts for any one command, at the end of the command, the device shall report the first error that occurred. 7. For READ DMA, WRITE DMA, READ DMA QUEUED, or WRITE DMA QUEUED commands: When a CRC error is detected, it shall be reported by setting both ICRC and ABRT (bit 7 and bit 2 in the Error register) to one. ICRC is defined as the “Interface CRC Error” bit. The host shall respond to this error by reissuing the command. 8. For a REQUEST SENSE packet command (see SPC T10/955D for definition of the REQUEST SENSE command): When a CRC error is detected during transmission of sense data the device shall complete the command and set CHK to one. The device shall report a Sense key of 0Bh (ABORTED COMMAND). The device shall preserve the original sense data that was being returned when the CRC error occurred. The device shall not report any additional sense data specific to the CRC error. The host device driver may retry the REQUEST SENSE command or may consider this an unrecoverable error and retry the command that caused the Check Condition. 9. For any packet command except a REQUEST SENSE command: If a CRC error is detected, the device shall complete the command with CHK set to one. The device shall report a Sense key of 04h (HARDWARE ERROR). The sense data supplied via a subsequent REQUEST SENSE command shall report an ASC/ASCQ value of 08h/03h (LOGICAL UNIT COMMUNICATION CRC ERROR). Host drivers should retry the command that resulted in a HARDWARE ERROR. NOTE – If excessive CRC errors are encountered while operating in Ultra mode 2 or 1, the host should select a slower Ultra mode. Caution: CRC errors are detected and reported only while operating in an Ultra mode. 10. A host may send extra data words on the last Ultra DMA burst of a data out command. If a device determines that all data has been transferred for a command, the device shall terminate the burst. A device may have already received more data words than were required for the command. These extra words are used by both the host and the device to calculate the CRC, but, on an Ultra DMA data out burst, the extra words shall be discarded by the device. 11. 11. The CRC generator polynomial is: G(X) = X16 + X12 + X5 + 1. Table 32 describes the equations for 16-bit parallel generation of the resulting polynomial (based on a word boundary). NOTE – Since no bit clock is available, the recommended approach for calculating CRC is to use a word clock derived from the bus strobe. The combinational logic is then equivalent to shifting sixteen bits serially through the generator polynomial where D0 is shifted in first and D15 is shifted in last. Table 32: Equations for parallel generation of an Ultra DMA CRC CRCIN0 = f16 CRCIN8 = f8 XOR f13 CRCIN1 = f15 CRCIN9 = f7 XOR f12 CRCIN2 = f14 CRCIN10 = f6 XOR f11 CRCIN3 = f13 CRCIN11 = f5 XOR f10 CRCIN4 = f12 CRCIN12 = f4 XOR f9 XOR f16 CRCIN5 = f11 XOR f16 CRCIN13 = f3 XOR f8 XOR f15 CRCIN6 = f10 XOR f15 CRCIN14 = f2 XOR f7 XOR f14 CRCIN7 = f9 XOR f14 CRCIN15 = f1 XOR f6 XOR f13 f1 = D0 XOR CRCOUT15 f9 = D8 XOR CRCOUT7 XOR f5 f2 = D1 XOR CRCOUT14 f10 = D9 XOR CRCOUT6 XOR f6 f3 = D2 XOR CRCOUT13 f11 = D10 XOR CRCOUT5 XOR f7 f4 = D3 XOR CRCOUT12 f12 = D11 XOR CRCOUT4 XOR f1 XOR f8 f5 = D4 XOR CRCOUT11 XOR f1 f13 = D12 XOR CRCOUT3 XOR f2 XOR f9 f6 = D5 XOR CRCOUT10 XOR f2 f14 = D13 XOR CRCOUT2 XOR f3 XOR f10 f7 = D6 XOR CRCOUT9 XOR f3 f15 = D14 XOR CRCOUT1 XOR f4 XOR f11 f8 = D7 XOR CRCOUT8 XOR f4 f16 = D15 XOR CRCOUT0 XOR f5 XOR f12 Notes: 1. 2. 3. 4. f=feedback D[15:0] = Data to or from the bus CRCOUT = 16-bit edge triggered result (current CRC) CRCOUT[15:0] are sent on matching order bits of D[15:0] An example of a CRC generator implementation is provided below in Figure 20: Ultra DMA Parallel CRC Generator Example. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 42 of 106 Figure 20: Ultra DMA Parallel CRC Generator Example Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 43 of 106 7 Card Configuration The CompactFlashTM Memory Card is identified by information in the Card Information Structure (CIS). The Card has four configuration registers (Table 33 and Table 34).  Configuration Option Register  Pin Replacement Register  Card Configuration and Status Register They are used to coordinate the I/O spaces and the Interrupt level of cards that are located in the system. In addition, in I/O Card mode these registers provide a method for accessing status information that would normally appear on dedicated pins in Memory Card mode. The base address of the card configuration registers is 200h in the Attribute Memory space. No write operation should be performed to the attribute memory area except for the configuration register addresses. All other attribute memory locations are reserved. See 7.4 Attribute Memory Function. Table 33: CompactFlashTM Memory Card Registers and Memory Space Decoding -CE2 1 X 1 0 0 X 1 0 0 X 1 1 1 0 0 -CE1 1 0 0 1 0 0 0 1 0 0 0 0 0 1 1 -REG X 0 1 1 1 0 1 1 1 0 0 0 0 0 0 -OE X 0 0 0 0 1 1 1 1 0 1 0 1 0 1 -WE X 1 1 1 1 0 0 0 0 1 0 1 0 1 0 A10 X X X X X X X X X 0 0 X X X X A9 X 1 X X X 1 X X X 0 0 X X X X A8-A4 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX A3 X X X X X X X X X X X X X X X A2 X X X X X X X X X X X X X X X A1 X X X X X X X X X X X X X X X A0 X 0 X X 0 0 X X 0 0 0 1 1 X X Selected Space Standby Configuration Register Read Common Memory Read (8 bit – D7 to D0) Common Memory Read (8 bit – D15 to D8) Common Memory Read (16 bit – D15 to D0) Configuration Register Write Common Memory Write (8 bit – D7 to D0) Common Memory Write (8 bit – D15 to D8) Common Memory Write (16 bit – D15 to D0) Card Information Structure Read Invalid Access (CIS Write) Invalid Access (CIS Odd Byte Read) Invalid Access (CIS Odd Byte Write) Invalid Access (CIS Odd Byte Read) Invalid Access (CIS Odd Byte Write) Table 34: CompactFlashTM Memory Card Configuration Registers Decoding -CE2 X X X X X X -CE1 0 0 0 0 0 0 -REG 0 0 0 0 0 0 -OE 0 1 0 1 0 1 -WE 1 0 1 0 1 0 A10 0 0 0 0 0 0 A9 1 1 1 1 1 1 A8~A4 00 00 00 00 00 00 A3 0 0 0 0 0 0 A2 0 0 0 0 1 1 A1 0 0 1 1 0 0 A0 0 0 0 0 0 0 Selected Space Configuration Option Register Read(200h) Configuration Option Register Write(200h) Card Status Register Read (202h) Card Status Register Write (202h) Pin Replacement Register Read (204h) Pin Replacement Register Write (204h) Note: The location of the Card Configuration Registers should always be read from the CIS since these locations may vary in future products. No Writes should be performed to the Card Attribute Memory except to the Card Configuration Register Addresses. All other attribute memory locations are reserved. 7.1 Configuration Option Register (200h in Attribute Memory) The Configuration Option Register is used to configure the Card’s interface, address decoding and interrupt to the Card (see Table 35). 7.1.1 SRESET Setting the SRESET bit to ‘1’ and returning the bit ‘0’ places the CompactFlashTM Storage Card in the Reset state. Setting this bit to ‘1’ is equivalent to asserting the RESET signal except that the SRESET bit is not cleared. Returning the SRESET bit to ‘0’ leaves the CompactFlashTM Storage Card in the same un-configured Reset state as after a power-up and hardware reset. This bit is set to ‘0’ at power-up and taking the Card through a hardware reset. 7.1.2 LevlREQ This bit is set to one (1) when Level Mode Interrupt is selected, and zero (0) when Pulse Mode is selected. Set to zero (0) after Power Up. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 44 of 106 7.1.3 Conf5 – Conf0 (Configuration Index) These bits are used to select the operation mode of the Card as shown in Table 36. This bit is set to ‘0’ after Power Up. Table 35: Configuration Option Register (default value: 00h) Operation D7 D6 D5 R/W SRESET LevlREQ Conf5 D4 Conf4 D3 Conf3 D2 Conf2 D1 Conf1 D0 Conf0 Table 36: CompactFlashTM Memory Card Configurations Conf5 Conf4 Conf3 Conf2 Conf1 Conf0 Mapping Mode 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 Memory Contiguous I/O Primary I/O Secondary I/O Card Mode Memory I/O I/O I/O Task File Register Address 0h – Fh, 400h – 7FFh xx0h – xxFh 1F0h – 1F7h, 3F6h – 3F7h 170h – 177h, 376h – 377h 7.2 CompactFlashTM Memory Card Configurations The Card Configuration and Status Register contains information about the Card’s status (see Table 37). 7.2.1 Changed Indicates that one or both of the Pin Replacement register (CRDY, or CWProt) bits are set to ‘1’. When the Changed bit is set, -STSCHG (Pin 46) is held Low and if the SigChg bit is ‘1’ the Card is configured for the I/O interface. 7.2.2 SigChg This bit is set and reset by the host to enable and disable a state-change signal from the Status Register (issued on Status Changed pin 46). If no state change signal is desired, this bit should be set ‘0’ and pin 46 (-STSCHG) will be held High while the Card is configured for I/O. 7.2.3 Iois8 The host sets this bit to ‘1’ if the Card is to be configured in 8 bit I/O Mode. The Card is always configured for both 8 and 16 bit I/O, so this bit is ignored. 7.2.4 PwrDwn This bit indicates whether the Card is in the power saving mode or active mode. When the PwrDwn bit is set to ‘1’, the Card enters power down mode. When set to ‘0’, the Card enters active mode. The READY value on Pin Replacement Register becomes BUSY when this bit is changed. READY will not become Ready until the power state requested has been entered. The Card automatically powers down when it is idle and powers back up when it receives a command. 7.2.5 Int This bit represents the internal state of the interrupt request. It is available whether or not the I/O interface has been configured. It remains valid until the condition which caused the interrupt request has been serviced. If interrupts are disabled by the –IEN bit in the Device Control Register, this bit is ‘0’. Table 37: Card Configuration and Status Register (default value: 00h) Operation Read Write D7 Changed 0 D6 SigChg SigChg D5 IOIS8 IOIS8 D4 0 0 D3 0 0 D2 PwrDwn PwrDwn D1 Int 0 D0 0 0 7.3 Pin Replacement Register (204h in Attribute Memory) This register contains information on the state of the READY signal when configured in memory mode and the IREQ signal in I/O mode. See Table 38 and Table 39. 7.3.1 Cready This bit is set to ‘1’ when the bit Rready changes state. This bit can also be written by the host. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 45 of 106 7.3.2 CWProt This bit is set to ‘1’ when the bit RWProt changes state. This bit can also be written by the host. 7.3.3 Rready This bit is used to determine the internal state of the Ready signal. In I/O mode it is used as an interrupt request. When written, this bit acts as a mask (Mready) for writing the corresponding bit Cready. 7.3.4 Wprot This bit is always ‘0’ since the CompactFlashTM Memory Card does not have a Write Protect switch. When written, this bit acts as a mask for writing the corresponding CWProt bit. 7.3.5 Mready This bit acts as a mask for writing the corresponding Cready bit. 7.3.6 MWProt This bit when written acts as a mask for writing the corresponding CWProt bit. Table 38: Pin Replacement Register (default value: 0Ch) Operation Read Write D7 0 0 D6 0 0 D5 Cready Cready D4 CWProt CWProt D3 1 0 D2 1 0 D1 Rready Rready D0 Wprot MWProt Table 39: Pin Replacement Changed Bit/Mask Bit Values Initial Value of ‘C’ Status 0 1 X X Written by Host ‘C’ Bit ‘M’ Bit X 0 X 0 0 1 1 1 Final ‘C’ Bit Comments 0 1 0 1 Unchanged Unchanged Cleared by Host Set by Host 7.4 Attribute Memory Function Attribute memory is a space where identification and configuration information are stored. Only 8 bit wide accesses at even addresses can be performed in this area. The Card configuration registers are also located in the Attribute Memory area, at base address 200h. Attribute memory is not accessible in True IDE mode of operation. For the Attribute Memory Read function, signals –REG and –OE must be active and –WE inactive during the cycle. As in the Main Memory Read functions, the signals –CE1 and –CE2 control the even and odd Byte address, but only the even Byte data is valid during the Attribute Memory access. Refer to Table 40 for signal states and bus validity. Table 40: Attribute Memory Function Function Mode -REG -CE2(1) -CE1(1) A10 A9 A0 -OE(1) -WE(1) D15 to D8 D7 to D0 Standby X H H X X X X X High-Z High-Z Read Byte Access CIS (8 bits) L H L L L L L H High-Z Even Byte Write Byte Access CIS (8 bits) L H L L L L H L Don’t Care Even Byte Invalid Read Byte Access L H L L H L L H High-Z Even Byte Configuration (8 bits) Write Byte Access L H L L H L H L Don’t Care Even Byte Configuration (8 bits) Read Byte Access L H L X X L L H High-Z Even Byte Configuration CF+ (8 bits) Read Word Access CIS (16 L L L L L L* L H Not Valid Even Byte bits) Write Word Access CIS (16 L L L L L L* H L Don’t Care Even Byte bits) Invalid Read Word Access L L L L H L* L H Not Valid Even Byte Configuration (16 bits) Write Word Access L L L L H L* H L Don’t Care Even Byte Configuration (16 bits) 1 The –CE signal or both the –OE signal and the –WE signal must be de-asserted between consecutive cycle operations. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 46 of 106 * Address A0 must be low for all word accesses. 7.5 I/O Transfer Function The I/O transfer to or from the Card can be either 8 or 16 bits. When a 16 bit accessible port is addressed, the – IOIS16 signal is asserted by the Card, otherwise it is de-asserted. When a 16 bit transfer is attempted, and the – IOIS16 signal is not asserted, the system must generate a pair of 8 bit references to access the Word’s even and odd Bytes. The Card permits both 8 and 16 bit accesses to all of its I/O addresses, so –IOIS16 is asserted for all addresses (see Table 41). Table 41: I/O Function Function Code Standby Mode Byte Input Access (8 bits) Byte Output Access (8 bits) Word Input Access (16 bits) Word Output Access (16 bits) I/O Read Inhibit I/O Write Inhibit High Byte Input Only (8 bits) High Byte Output Only (8 bits) -REG X L L L L L L H H L L -CE2 H H H H H L L X X L L -CE1 H L L L L L L X X H H A0 X L H L H L* L* X X X X -IORD X L L H H L H L H L H -IOWR X H H L L H L H L H L D15 to D8 High Z High Z High Z Don’t Care Don’t Care Odd Byte Odd Byte Don’t Care High Z Odd Byte Odd Byte D7 to D0 High Z Even Byte Odd Byte Even Byte Odd Byte Even Byte Even Byte Don’t Care High Z High Z Don’t Care * Address A0 must be low for all word accesses. 7.6 Common Memory Transfer Function The Common Memory transfer to or from the Card permits both 8 or 16 bit access to all of the Common Memory addresses (see Table 42). Table 42: Common Memory Function Function Code Standby Mode Byte Read Access (8 bits) Byte Write Access (8 bits) Word Read Access (16 bits) Word Write Access (16 bits) Odd Byte Read Only (8 bits) Odd Byte Write Only (8 bits) -REG X H H H H H H H H -CE2 H H H H H L L L L -CE1 H L L L L L L H H A0 X L H L H L* L* X X -OE X L L H H L H L H -WE X H H L L H L H L D15 to D8 High Z High Z High Z Don’t Care Don’t Care Odd Byte Odd Byte Odd Byte Odd Byte D7 to D0 High Z Even Byte Odd Byte Even Byte Odd Byte Even Byte Even Byte High Z Don’t Care * Address A0 must be low for all word accesses. 7.7 True IDE Mode I/O Function The Card can be configured in a True IDE Mode of operation. It is configured in this mode only when the –OE signal is grounded by the host during the power off to power on cycle. In this True IDE Mode the PC card protocol and configuration are disabled and only I/O operations to the Task File and Data Register are allowed. No Memory or Attribute Registers are accessible to the host. The Set Feature Command can be used to put the device in 8 bit Mode (see Table 43). Removing and reinserting the Card while the host computer’s power is on will reconfigure the Card to PC Card ATA mode. Table 43: True IDE Mode I/O Function Function Code Invalid Mode Standby Mode Task File Write Task File Read PIO Data Register Write Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland -CS1 -CS0 A2 to A0 -DMACK -IORD -IOWR L L X X X X L L X X H H H H X X L L H L L L X X X X X 1h-7h 1h-7h 0 L L L L H H H H L X L X X H L H X L X L X L H L D15 to D8 Undefined In/Out Undefined Out Undefined In Undefined Out Undefined In High Z Don’t Care High Z Odd-Byte In Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com D7 to D0 Undefined In/Out Undefined Out Undefined In Undefined Out Undefined In High Z Data In Data Out Even-Byte In Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 47 of 106 DMA Data Register Write PIO Data Register Read DMA Data Register Read Control Register Write Alternate Status Read Drive Address H H H L L L L L H H H H X 0 X 6h 6h 7h L H L H H H H L L H L L L H H L H H Odd-Byte In Odd-Byte Out Odd-Byte Out Don’t Care High Z High Z Even-Byte In Even-Byte Out Even-Byte Out Control In Status Out Data Out 7.8 Host Configuration Requirements for Master/Slave or New Timing Modes The CF Advanced Timing modes include PCMCIA PC Card style I/O modes that are faster than the original 250 ns cycle time. These modes are not supported by the PCMCIA PC Card specification nor CF by cards based on revisions of the CF specification before Revision 3.0. Hosts shall ensure that all cards accessed through a common electrical interface are capable of operation at the desired, faster than 250 ns, I/O mode before configuring the interface for that I/O mode. Advanced Timing modes are PCMCIA PC Card style I/O modes that are 100 ns or faster, PC Card Memory modes that are 100ns or faster, True IDE PIO Modes 5, 6 and Multiword DMA Modes 3, 4. These modes are permitted to be used only when a single card is present and the host and card are connected directly, without a cable exceeding 0.15m in length. Consequently, the host shall not configure a card into an Advanced Timing Mode if two cards are sharing I/O lines, as in Master/Slave operation, nor if it is constructed such that a cable exceeding 0.15 meters is required to connect the host to the card. The load presented to the Host by cards supporting Ultra DMA is more controlled than that presented by other CompactFlashTM cards. Therefore, the use of a card that does not support Ultra DMA in a Master/Slave arrangement with an Ultra DMA card can affect the critical timing of the Ultra DMA transfers. The host shall not configure a card into Ultra DMA mode when a card not supporting Ultra DMA is also present on the same interface When the use of two cards on an interface is otherwise permitted, the host may use any mode that is supported by both cards, but to achieve maximum performance it should use its highest performance mode that is also supported by both cards. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 48 of 106 8 Software interface 8.1 CF-ATA Drive Register Set Definition and Protocol The CompactFlashTM Memory Card can be configured as a high performance I/O device through:  Standard PC-AT disk I/O address spaces o 1F0h-1F7h, 3F6h-3F7h (primary); o 170h-177h, 376h-377h (secondary) with IRQ 14 (or other available IRQ).  Any system decoded 16 Byte I/O block using any available IRQ.  Memory space. Communication to or from the Card is done using the Task File registers which provide all the necessary registers for control and status information. The PCMCIA interface connects peripherals to the host using four-register mapping methods. Table 44: I/O Configurations is a detailed description of these methods: Table 44: I/O Configurations Config Index 0 1 2 3 I/O or Memory Memory I/O I/O I/O Standards Configurations Address 0h-Fh, 400h-7FFh xx0h-xxFh 1F0-1F7h, 3F6h-3F7h 170-177h, 376h-377h Description Memory Mapped I/O Mapped 16 Continuous Registers Primary I/O Mapped Secondary I/O Mapped 8.2 Memory Mapped Addressing When the Card registers are accessed via memory references, the registers appear in the common memory space window: 0-2Kbytes as shown in Table 45: Memory Mapped Decoding. This window accesses the Data Register FIFO. It does not allow random access to the data buffer within the Card. Register 0 is accessed with –CE1 and –CE2 Low, as a Word register on the combined Odd and Even Data Bus (D15 to D0). Address A0 must be low for all word accesses. It can also be accessed with –CE1 Low and –CE2 High, by a pair of Byte accesses to offset 0. The address space of this Word register overlaps the address space of the Error and Feature Byte-wide registers at offset 1. When accessed twice as Byte register with –CE1 Low, the first Byte is the even Byte of the Word and the second is the odd Byte. A Byte access to address 0 with –CE1 High and –CE2 Low accesses the Error (read) or Feature (write) register. Registers at offset 8, 9 and D are non-overlapping duplicates of the registers at offset 0 and 1. Register 8 is equivalent to register 0, while register 9 accesses the odd Byte. Therefore, if the registers are Byte accessed in the order 9 then 8 the data will be transferred odd Byte then even Byte. Repeated Byte accesses to register 8 or 0 will access consecutive (even then odd) Bytes from the data buffer. Repeated Word accesses to register 8, 9 or 0 will access consecutive Words from the data buffer, however repeated Byte accesses to register 9 are not supported. Repeated alternating Byte accesses to registers 8 then 9 will access consecutive (even then odd) Bytes from the data buffer. Accesses to even addresses between 400h and 7FFh access register 8. Accesses to odd addresses between 400h and 7FFh access register 9. This 1 kByte memory window to the data register is provided so that hosts can perform memory-to-memory block moves to the data register when the register lies in memory space. Some hosts, such as the X86 processors, must increment both the source and destination addresses when executing the memoryto-memory block move instruction. Some PCMCIA socket adapters also have embedded auto incrementing address logic. A Word access to address at offset 8 will provide even data on the least significant Byte of the data bus, along with odd data at offset 9 on the most significant Byte of the data bus. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 49 of 106 Table 45: Memory Mapped Decoding -REG 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 A10 A9 to A4 0 X 0 X 0 X 0 X 0 X 0 X 0 X 0 X 0 X 0 X 0 X 0 X 0 X 1 X 1 X A3 0 0 0 0 0 0 0 0 1 1 1 1 1 X X A2 0 0 0 0 1 1 1 1 0 0 1 1 1 X X A1 0 0 1 1 0 0 1 1 0 0 0 1 1 X X A0 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 Offset 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h Dh Eh Fh 8h 9h -OE=0 Even Data Register Error Register Sector Count Register Sector Number Register Cylinder Low Register Cylinder High Register Select Card/Head Register Status Register Dup. Even Data Register Dup. Odd Data Register Dup. Error Register Alternate Status Register Drive Address Register Even Data Register Odd Data Register -WE=0 Even Data Register Feature Register Sector Count Register Sector Number Register Cylinder Low Register Cylinder High Register Select Card/Head Register Command Register Dup. Even Data Register Dup. Odd Data Register Dup. Feature Register Device Control Register Reserved Even Data Register Odd Data Register 8.3 Contiguous I/O Mapped Addressing When the system decodes a contiguous block of I/O registers to select the Card, the registers are accessed in the block of I/O space decoded by the system as shown in Table 46. Address A0 must be low for all word accesses. As for the Memory Mapped Addressing, register 0 is accessed with – CE1 Low and –CE2 Low (A0 must be 0) as a Word register on the combined Odd and Even Data Bus (D15 to D0). This register may also be accessed with –CE1 Low and –CE2 High, by a pair of Byte accesses to offset 0. The address space of this Word register overlaps the address space of the Error and Feature Byte-wide registers at offset 1. When accessed twice as Byte register with –CE1 Low, the first Byte is the even Byte of the Word and the second is the odd Byte. A Byte access to register 0 with –CE1 High and –CE2 Low accesses the error (read) or feature (write) register. Registers at offset 8, 9 and D are non-overlapping duplicates of the registers at offset 0 and 1. Register 8 is equivalent to register 0, while register 9 accesses the odd Byte. Therefore, if the registers are Byte accessed in the order 9 then 8 the data will be transferred odd Byte then even Byte. Repeated Byte accesses to register 8 or 0 will access consecutive (even than odd) Bytes from the data buffer. Repeated Word accesses to register 8, 9 or 0 will access consecutive Words from the data buffer, however repeated Byte accesses to register 9 are not supported. Repeated alternating Byte accesses to registers 8 then 9 will access consecutive (even then odd) Bytes from the data buffer. Table 46: Contiguous I/O Decoding -REG 0 0 0 0 0 0 0 0 0 0 0 0 0 A10 to A4 X X X X X X X X X X X X X Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland A3 0 0 0 0 0 0 0 0 1 1 1 1 1 A2 0 0 0 0 1 1 1 1 0 0 1 1 1 A1 0 0 1 1 0 0 1 1 0 0 0 1 1 A0 0 1 0 1 0 1 0 1 0 1 1 0 1 Offset 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h Dh Eh Fh -IORD=0 Even Data Register Error Register Sector Count Register Sector Number Register Cylinder Low Register Cylinder High Register Select Card/Head Register Status Register Dup. Even Data Register Dup. Odd Data Register Dup. Error Register Alternate Status Register Drive Address Register -IOWR=0 Even Data Register Feature Register Sector Count Register Sector Number Register Cylinder Low Register Cylinder High Register Select Card/Head Register Command Register Dup. Even Data Register Dup. Odd Data Register Dup. Feature Register Device Control Register Reserved Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 50 of 106 8.4 I/O Primary and Secondary Address Configurations When the system decodes the Primary and Secondary Address Configurations, the registers are accessed in the block of I/O space as shown in Table 47. Address A0 must be low for all word accesses. As for the Memory Mapped Addressing, register 0 is accessed with – CE1 Low and –CE2 Low (A0 must be 0) as a Word register on the combined Odd and Even Data Bus (D15 to D0). This register may also be accessed with –CE1 Low and –CE2 High, by a pair of Byte accesses to offset 0. The address space of this Word register overlaps the address space of the Error and Feature Byte-wide registers at offset 1. When accessed twice as Byte register with –CE1 Low, the first Byte is the even Byte of the Word and the second is the odd Byte. A Byte access to register 0 with –CE1 High and –CE2 Low accesses the error (read) or feature (write) register. Table 47: Primary and Secondary I/O Decoding -REG 0 0 0 0 0 0 0 0 0 0 A9 to A4 1F(17)h 1F(17)h 1F(17)h 1F(17)h 1F(17)h 1F(17)h 1F(17)h 1F(17)h 3F(37)h 3F(37)h A3 0 0 0 0 0 0 0 0 0 0 A2 0 0 0 0 1 1 1 1 1 1 A1 0 0 1 1 0 0 1 1 1 1 A0 0 1 0 1 0 1 0 1 0 1 -IORD=0 Even Data Register Error Register Sector Count Register Sector Number Register Cylinder Low Register Cylinder High Register Select Card/Head Register Status Register Alternate Status Register Drive Address Register -IOWR=0 Even Data Register Feature Register Sector Count Register Sector Number Register Cylinder Low Register Cylinder High Register Select Card/Head Register Command Register Device Control Register Reserved 8.5 True IDE Mode Addressing When the Card is configured in the True IDE Mode, the I/O decoding is as shown in Table 48. Table 48: True IDE Mode I/O Decoding -CS1 -CS0 1 1 1 1 1 1 1 1 1 0 0 1 0 0 0 0 0 0 0 1 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland A2 0 X 0 0 0 1 1 1 1 1 A1 0 X 0 1 1 0 0 1 1 1 A0 0 X 1 0 1 0 1 0 1 0 -DMACK 1 0 1 1 1 1 1 1 1 1 -IORD=0 PIO RD Data DMA RD Data Error Register Sector Count Sector No. Cylinder Low Cylinder High Select Card/Head Status Alt Status -IOWR=0 PIO WR Data DMA WR Data Features Sector Count Sector No. Cylinder Low Cylinder High Select Card/Head Command Control Register Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 51 of 106 9 CF-ATA Registers The following section describes the hardware registers used by the host software to issue commands to the Card. These registers are collectively referred to as the ‘task file’. In accordance with the PCMCIA specification, each register that is located at an odd offset address can be accessed in the PC Card Memory or PC Card I/O modes. The register can be addressed in two ways:  Using the normal register address.  Using the corresponding even address (normal address -1) when –CE1 is High and –CE2 Low, unless –IOIS16 is High (not asserted by the card) and an I/O cycle is in progress. Register data are input or output on data bus lines D15-D8. In True IDE mode, the size of the transfer is based solely on the register being addressed. All registers are 8-bit only except for the Data Register, which is normally 16 bits. However, they can be configured to be accessed in 8bit mode for non-DMA operations, by using a Set Features command (see Section 10.25 ). There are situations possible where the C-440 CompactFlash Card is not compatible to certain PC-Card (PCMCIA) host systems. PC-Card mode, 16 bit ATA register file accesses (i.e. both -CE1 and -CE2 low) aren’t working if A0 is high (odd addresses). The IOIS16 signal might also not work correctly. If a host uses this signal, this may result in 16 bit accesses being changed to two 8 bit accesses. Depending on the address, this may fail. A simple test will show the C-400 compatibility to a certain host. If the C-400 cards can be recognized (Identify Device and MBR data is read out successfully), then this PC card issue will likely not affect the operation in this host. Host systems with IDE/ATA interface are not affected by the issue, described above. 9.1 Data Register The Data register is located at address 1F0h [170h], offset 0h, 8h, and 9h. The Data Register is a 16 bit register used to transfer data blocks between the Card data buffer and the Host. This register overlaps the Error Register. Table 49 and Table 50 describe the combinations of Data register access and explain the overlapped Data and Error/Feature Registers. Because of the overlapped registers, access to the 1F1h, 171h or offset 1 are not defined for Word (-CE2 and –CE1 set to ‘0’) operations, and are treated as accesses to the Word Data Register. The duplicated registers at offsets 8, 9 and Dh have no restrictions on the operations that can be performed. Table 49: Data Register Access (Memory and I/O mode) (1) Data Register -CE2 -CE1 A0 Offset Data Bus -REG (2) 0 Word Data Register 0 0 0h, 8h, 9h D15 to D0 Even Data Register 1 0 0 0h, 8h D7 to D0 Odd Data Register 1 0 1 9h D7 to D0 Odd Data Register 0 1 X 8h, 9h D15 to D8 Error/Feature Register 1 0 1 1h, Dh D7 to D0 Error/Feature Register 0 1 X 1h D15 to D8 (2) 0 Error/Feature Register 0 0 Dh D15 to D8 1 –REG signal is mode dependent. It must be Low when the Card operates in I/O Mode and High when it operates in 2 Memory Mode. In current C-400 cards A0 must be 0 for all word accesses (if –CE2 and –CE1 are 0). Table 50: Data Register Access (True IDE mode) Data Register PIO Word Data Register DMA Word Data Register PIO Byte Data Register (Selected Using Set Features Command) -CS1 1 1 1 -CS0 0 1 0 A0 0 X 0 -DMACK 1 0 1 Offset 0h X 0h Data Bus D15 to D0 D15 to D0 D7 to D0 9.2 Error Register The Error register is a read-only register, located at address 1F1h [171h], offset 1h, 0Dh. This read only register contains additional information about the source of an error when an error is indicated in bit 0 of the Status register. The bits are defined in Table 51 This register is accessed on data bits D15 to D8 during a write operation to offset 0 with –CE2 Low and –CE1 High. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 52 of 106 9.2.1 Bit 7 (BBK) This bit is set when a Bad Block is detected. 9.2.2 Bit 6 (UNC) This bit is set when an Uncorrectable Error is encountered. 9.2.3 Bit 5 This bit is ‘0’. 9.2.4 Bit 4 (IDNF) This bit is set if the requested sector ID is in error or cannot be found. 9.2.5 Bit 3 This bit is ‘0’. 9.2.6 Bit 2 (Abort) This bit is set if the command has been aborted because of a Card status condition (Not Ready, Write Fault, etc.) or when an invalid command has been issued. 9.2.7 Bit 1 This bit is ‘0’. 9.2.8 Bit 0 (AMNF) This bit is set when there is a general error. Table 51: Error Register D7 BBK D6 UNC D5 0 D4 IDNF D3 0 D2 ABRT D1 0 D0 AMNF 9.3 Feature Register The Feature register is a write-only register, located at address 1F1h [171h], offset 1h, Dh. This write-only register provides information on features that the host can utilize. It is accessed on data bits D15 to D8 during a write operation to Offset 0 with –CE2 Low and –CE1 High. 9.4 Sector Count Register The Sector Count register is located at address 1F2h [172h], offset 2h. This register contains the number of sectors of data to be transferred on a read or write operation between the host and Card. If the value in this register is zero, a count of 256 sectors is specified. If the command was successful, this register is zero at completion. If not successfully completed, the register contains the number of sectors that need to be transferred in order to complete the request. The default value is 01h. 9.5 Sector Number (LBA 7:0) Register The Sector Number register is located at address 1F3h [173h], offset 3h. This register contains the starting sector number or bits 7 to 0 of the Logical Block Address (LBA), for any data access for the subsequent sector transfer command. 9.6 Cylinder Low (LBA 15:8) Register The Cylinder Low register is located at address 1F4h [174h], offset 4h. This register contains the least significant 8 bits of the starting cylinder address or bits 15 to 8 of the Logical Block Address. 9.7 Cylinder High (LBA 23:16) Register The Cylinder High register is located at address 1F5h [175h], offset 5h. This register contains the most significant bits of the starting cylinder address or bits 23 to 16 of the Logical Block Address. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 53 of 106 9.8 Drive/Head (LBA 27:24) Register The Driver/Head register is located at address 1F6h [176h], offset 6h. The Drive/Head register is used to select the drive and head. It is also used to select LBA addressing instead of cylinder/head/sector addressing. The bits are defined in Table 52. 9.8.1 Bit 7 This bit is set to ‘1’. 9.8.2 Bit 6 (LBA) LBA is a flag to select either Cylinder/Head/Sector (CHS) or Logical Block Address Mode (LBA). When LBA is set to ‘0’, Cylinder/Head/Sector mode is selected. When LBA is set to’1’, Logical Block Address is selected. In Logical Block Mode, the Logical Block Address is interpreted as follows:  LBA7-LBA0: Sector Number Register D7 to D0  LBA15-LBA8: Cylinder Low Register D7 to D0  LBA23-LBA16: Cylinder High Register D7 to D0  LBA27-LBA24: Drive/Head Register bits HS3 to HS0 9.8.3 Bit 5 This bit is set to ‘1’. 9.8.4 Bit 4 (DRV) DRV is the drive number. When DRV is ‘0’, drive/card 0 is selected (Master). When DRV is ‘1’, drive/card 1 is selected (Slave). 9.8.5 Bit 3 (HS3) When operating in the Cylinder, Head, Sector mode, this is bit 3 of the head number. It is bit 27 in the Logical Block Address mode. 9.8.6 Bit 2 (HS2) When operating in the Cylinder, Head, Sector mode, this is bit 2 of the head number. It is bit 26 in the Logical Block Address mode. 9.8.7 Bit 1 (HS1) When operating in the Cylinder, Head, Sector mode, this is bit 1 of the head number. It is Bit 25 in the Logical Block Address mode. 9.8.8 Bit 0 (HS0) When operating in the Cylinder, Head, Sector mode, this is bit 0 of the head number. It is Bit 24 in the Logical Block Address mode. Table 52: Drive/Head Register D7 1 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland D6 LBA D5 1 D4 DRV D3 HS3 D2 HS2 D1 HS1 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com D0 HS0 Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 54 of 106 9.9 Status & Alternate Status Registers The Status & Alternate Status registers are located at addresses 1F7h [177h] and 3F6h [376h], respectively. Offsets are 7h and Eh. These registers return the Card status when read by the host. Reading the Status Register clears a pending interrupt. Reading the Auxiliary Status Register does not clear a pending interrupt. The Status Register should be accessed in Byte mode; in Word mode it is recommended that Alternate Status Register is used. The status bits are described as follows 9.9.1 Bit 7 (BUSY) The busy bit is set when only the Card can access the command register and buffer, The host is denied access. No other bits in this register are valid when this bit is set to ‘1’. 9.9.2 Bit 6 (RDY) This bit indicates whether the device is capable of performing CompactFlashTM Memory Card operations. This bit is cleared at power up and remains cleared until the Card is ready to accept a command. 9.9.3 Bit 5 (DWF) When set this bit indicates a Write Fault has occurred. 9.9.4 Bit 4 (DSC) This bit is set when the Card is ready. 9.9.5 Bit 3 (DRQ) The Data Request is set when the Card requires information be transferred either to or from the host through the Data register. The bit is cleared by the next command. 9.9.6 Bit 2 (CORR) This bit is set when a Correctable data error has been encountered and the data has been corrected. This condition does not terminate a multi-sector read operation. 9.9.7 Bit 1 (IDX) This bit is always set to ‘0’. 9.9.8 Bit 0 (ERR) This bit is set when the previous command has ended in some type of error. The bits in the Error register contain additional information describing the error. In case of read or write access commands that end with an error, the address of the first sector with an error is in the command block registers. This bit is cleared by the next command. Table 53: Status & Alternate Status Register D7 BUSY D6 RDY D5 DWF D4 DSC D3 DRQ D2 CORR D1 0 D0 ERR 9.10 Device Control Register The Device Control register is located at address 3F6h [376h], offset Eh. This Write-only register is used to control the CompactFlashTM Memory Card interrupt request and to issue an ATA soft reset to the Card. This register can be written even if the device is BUSY. The bits are defined as follows: 9.10.1 Bit 7 to 3 Don’t care. The host should reset this bit to ‘0’. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 55 of 106 9.10.2 Bit 2 (SW Rst) This bit is set to 1 in order to force the CompactFlashTM Storage Card to perform an AT Disk controller Soft Reset operation. This clears Status Register and writes Diagnostic Code in Error register after a Write or Read Sector error. The Card remains in Reset until this bit is reset to ‘0.’ 9.10.3 Bit 1 (-Ien) When the Interrupt Enable bit is set to ‘0’, -IREQ interrupts are enabled. When the bit is set to ‘1’, interrupts from the Card are disabled. This bit also controls the Int bit in the Card Configuration and Status Register. It is set to ‘0’ at Power On. 9.10.4 Bit 0 This bit is set to ‘0’. Table 54: Device Control Register D7 X(0) D6 X(0) D5 X(0) D4 X(0) D3 X(0) D2 SW Rst D1 -Ien D0 0 9.11 Card (Drive) Address Register The Card (Drive) Address register is located at address 3F7h [377h], offset Fh. This read-only register is provided for compatibility with the AT disk drive interface and can be used for confirming the drive status. It is recommended that this register is not mapped into the host’s I/O space because of potential conflicts on Bit 7. The bits are defined as follows: 9.11.1 Bit 7 This bit is don’t care. 9.11.2 Bit 6 (-WTG) This bit is ‘0’ when a write operation is in progress; otherwise, it is ‘1’. 9.11.3 Bit 5 (-HS3) This bit is the negation of bit 3 in the Drive/Head register. 9.11.4 Bit 4 (-HS2) This bit is the negation of bit 2 in the Drive/Head register. 9.11.5 Bit 3 (-HS1) This bit is the negation of bit 1 in the Drive/Head register. 9.11.6 Bit 2 (-HS0) This bit is the negation of bit 0 in the Drive/Head register. 9.11.7 Bit 1 (-nDS1) This bit is ‘0’ when drive 1 is active and selected. 9.11.8 Bit 0 (-nDS0) This bit is ‘0’ when the drive 0 is active and selected. Table 55: Card (Drive) Address Register D7 X Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland D6 -WTG D5 -HS3 D4 -HS2 D3 -HS1 D2 -HS0 D1 -nDS1 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com D0 -nDS0 Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 56 of 106 10 CF-ATA command description This section defines the software requirements and the format of the commands the Host sends to the Card. Commands are issued to the Card by loading the required registers in the command block with the supplied parameters, and then writing the command code to the Command Register. There are three classes of command acceptance, all dependent on the host not issuing commands unless the Card is not busy (BSY is ‘0’).  Class 1: Upon receipt of a Class 1 command, the Card sets BSY within 400ns.  Class 2: Upon receipt of a Class 2 command, the Card sets BSY within 400ns, sets up the sector buffer for a write operation, sets DRQ within 700µs, and clears BSY within 400ns of setting DRQ.  Class 3:Upon receipt of a Class 3 command, the Card sets BSY within 400ns, sets up the sector buffer for a write operation, sets DRQ within 20ms (assuming no re-assignments), and clears BSY within 400ns of setting DRQ. For reasons of backward compatibility some commands are implemented as ‘no operation’ NOP. Table 56 summarizes the CF-ATA command set with the paragraphs that follow describing the individual commands and the task file for each. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 57 of 106 Table 56: CF-ATA Command Set (1) Class 1 2 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 3 3 3 2 2 2 3 2. Command Check Power Mode Data Set Management Erase Sector(s) Execute Drive Diagnostic Flush cache Flush cache Ext Format track Identify Drive Idle Idle Immediate Initialize Drive Parameters Media Lock Media Unlock NOP Read Buffer Read DMA Read DMA Ext Read Multiple Read Multiple Ext Read Sector(s) Read Sector(s) Ext Read Verify Sector(s) Read Verify Sector(s) Ext Recalibrate Request Sense Security Disable Password Security Erase Prepare Security Erase Unit Security Freeze Lock Security Set Password Security Unlock Seek Set Features Set Multiple Mode Set Sleep Mode S.M.A.R.T. Stand By Stand By Immediate Translate Sector Write Buffer Write DMA Write DMA Ext Write Multiple Write Multiple Ext Write Multiple w/o Erase Write Sector(s) Write Sector(s) Ext Write Sector(s) w/o Erase Write Verify Code E5h or 98h 06h C0h 90h E7h EAh 50h ECh E3h or 97h E1h or 95h 91h DEh DFh 00h E4h C8h 25h C4h 29h 20h or 21h 24h 40h 42h 1Xh 03h F6h F3h F4h F5h F1h F2h 7Xh EFh C6h E6h or 99h B0h E2h or 96h E0h or 94h 87h E8h CAh 35h C5h 39h CDh 30h or 31h 34h 38h 3Ch FR(1) SC(2) SN(3) CY(5:4) YY Y Y Y Y Y Y Y Y YY Y YY Y YY Y YY Y YY Y YY Y YY Y YY Y YY Y YY Y YY Y YY Y Y Y Y Y Y Y Y Y Y Y YY Y YY Y Y YY Y Y Y YY Y YY Y Y YY Y Y Y YY Y YY Y Y YY Y Y DH(6) D D Y D D D Y D D D Y D D D D Y D Y D Y D Y D D D D D D D D D Y D D D D D D Y D Y D Y D Y Y D Y Y LBA(5:3) YY Y Y Y YY Y YY Y YY Y YY Y Y Y YY Y YY Y Y YY Y Y FR = Features Register (1), SC = Sector Count Register (2), SN = Sector Number Register (3), CY = Cylinder Registers (5:4), DH = Card/Drive/Head Register (6), LBA = Logical Block Address Mode Supported (see command descriptions for use), Y – The register contains a valid parameter for this command. For the Drive/Head Register Y means both the CompactFlashTM Memory Card and head parameters are used. YY – registers must be written twice for 48bit LBA commands D – only the Compact Flash Memory Card parameter is valid and not the head parameter C – the register contains command specific data (see command descriptors for use). Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 58 of 106 10.1 Check Power Mode (98h or E5h) This command checks the power mode. Issuing the command while the Card is in Standby mode, is about to enter Standby, or is exiting Standby, the command will set BSY, set the Sector Count Register to 00h, clear BSY and generate an interrupt. Issuing the command when the Card is in Idle mode will set BSY, set the Sector Count Register to FFh, clear BSY and generate an interrupt. Table 57 defines the Byte sequence of the Check Power Mode command. Table 57: Check Power Mode Task File Register 7 COMMAND DRIVE/HEAD nu CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 6 5 nu nu 4 3 E5h (or Legacy 98h) D nu nu nu nu nu 2 1 0 nu 10.2 Data Set Management (06h) TRIM This 48-bit command is optional for ATA devices. The DATA SETMANAGEMENT command is not part of any feature set. The DATA SET MANAGEMENT command provides information for device optimization (e.g., file system information). See Table 58 for the DATA SET MANAGEMENT command inputs. Table 58: Data Set Management register write previous Task File Register 15:8 COMMAND nu DRIVE/HEAD nu current 7 6 5 4 3 2 1 0 06h nu L nu Transport Reserved dependent LBA High Reserved LBA Mid Reserved LBA Low Reserved SECTOR COUNT 15:8 7:0 Number of 512-byte blocks to be transferred; the value of zero is reserved. FEATURES Reserved TRIM Currently this command is specified only for the TRIM command. Currently only one 512-byte block can be transferred with one command (see Identify Device word 169). Detailed information about the TRIM command is available in the ATA/ATAPI Command Set-2 (ACS-2) at www.t13.org 10.3 Erase Sector(s) (C0h) This command is used to pre-erase and condition data sectors prior to a Write Sector without Erase command or a Write Multiple Without Erase command. There is no data transfer associated with this command but a Write Fault error status can occur. Table 59 defines the Byte sequence of the Erase Sector command. Table 59: Erase Sector(s) Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 C0h nu L nu D H[3:0] or LBA[27:24] of the starting sector/LBA Cylinder[15:8] or LBA[23:16] of the first sector/LBA to erase Cylinder[7:0] or LBA[15:8] of the first sector/LBA to erase Sector[7:0] or LBA[7:0] of the first sector/LBA to erase The number of sectors/logical blocks to erase nu 10.4 Execute Drive Diagnostic (90h) This command performs the internal diagnostic tests implemented by the Card. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 59 of 106 In PCMCIA configuration, this command only runs on the Card which is addressed by the Drive/Head register when the command is issued. This is because PCMCIA Card interface does not allow for direct inter-drive communication. 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 the status for both devices. Table 60 defines the Execute Drive Diagnostic command Byte sequence. The Diagnostic codes shown in Table 61 are returned in the Error Register at the end of the command. Table 60: Execute Drive Diagnostic Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 90h nu nu nu D nu nu nu nu nu nu Table 61: Diagnostic Codes Code 01h 02h 03h 04h 05h 8Xh Error Type No Error Detected Formatter Device Error Sector Buffer Error ECC Circuitry Error Controlling Microprocessor Error Slave Error in True IDE Mode 10.5 Flush Cache (E7h) This command causes the card to complete writing data from its cache. The card returns status with RDY=1 and DSC=1 after the data in the write cache buffer is written to the media. If the Compact Flash Storage Card does not support the Flush Cache command, the Compact Flash Storage Card shall return command aborted. Table 62: Flush Cache Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 nu nu nu D 3 2 1 0 E7h nu nu nu nu nu nu 10.6 Flush Cache Ext (EAh) 48bit LBA This command causes the card to complete writing data from its volatile cache into non-volatile memory. The BSY bit shall remain set to one until all data has been successfully written or an error occurs. The card returns status with RDY=1 and DSC=1 after the data in the write cache buffer is written to the media. If the Compact Flash Storage Card does not support the Flush Cache Ext command, the Compact Flash Storage Card shall return command aborted. See Table 63 for the DATA SET MANAGEMENT command inputs. Table 63: Flush cache Ext register write previous Task File Register 15:8 COMMAND DRIVE/HEAD LBA High nu LBA Mid nu LBA Low nu SECTOR COUNT nu FEATURES nu Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland current 7 6 5 4 3 2 1 0 EAh 1 1 1 Drive Reserved nu nu nu nu nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 60 of 106 An unrecoverable error encountered while writing data results in aborting the command and the Command Block registers contain the 48 –bit sector address of the sector where the first unrecoverable error occurred. Subsequent FLUSH CACHE EXT commands continue the process of flushing the cache starting with the first sector after the sector in error. This command is used by the host to request the device to flush the write cache. If there is data in the write cache, that data shall be written to the media. The BSY bit shall remain set to one until all data has been successfully written or an error occurs. 10.7 Format track (50h) 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 CompactFlashTM 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 CompactFlashTM Storage Card. If LBA=1 then the number of sectors to format is taken from the Sec Cnt register (0=256). The use of this command is not recommended. Table 64: Format track Task File Register COMMAND DRIVE/HEAD 7 6 5 4 3 2 1 0 50h nu L H[3:0] or LBA[27:24] of the starting sector/LBA Cylinder[15:8] or LBA[23:16] of the first sector/LBA Cylinder[7:0] or LBA[15:8] of the first sector/LBA nu Sector Count (LBA only) nu CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES nu D 10.8 Identify Device (ECh) The Identify Device command enables the host to receive parameter information from the Card. This command has the same protocol as the Read Sector(s) command. Table 65 defines the Identify Device command Byte sequence. All reserved bits or Words are zero. Identify Device table shows the definition of each field in the Identify Drive Information. Table 65: Identify Device Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 7 6 5 4 3 2 1 0 ECh nu nu nu D nu nu nu nu nu nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 61 of 106 Table 66: Identify Device Information Word Address Default Value Total Bytes 2 General Configuration (REMOVABLE, signature of the CompactFlashTM Memory Card) In PC card mode the HxBU cards have normally the value 848Ah but other configurations are possible Alternate Configuration FIX, In IDE mode the HxBU cards have normally the value 045Ah but other configurations are possible Default number of cylinders Reserved Default number of heads Obsolete Obsolete Default number of sectors per track Number of sectors per Card (Word 7 = MSW, Word 8 = LSW) Obsolete Serial number in ASCII (right justified) Buffer type Buffer size Reserved Firmware revision in ASCII. Big Endian Byte Order in Word Model number in ASCII (right justified) Big Endian Byte Order in Word (“SFCFxxxxHxBUxTO-x-xx-xxx-xxx”) Maximum number of sectors on Read/Write Multiple command Reserved Capabilities with DMA without DMA Capabilities: device specific standby timer minimum PIO data transfer cycle timing mode Obsolete Field validity Current numbers of cylinders Current numbers of heads Current sectors per track Current capacity in sectors (cylinders*heads*sectors)(Word 57 = LSW, Word 58 = MSW) Multiple sector setting is valid Total number of sectors addressable in LBA Mode Single-Word DMA not implemented Multi-Word DMA transfer Mode 0, 1, 2 for In PC card mode, this value is ‘0000h’. Advanced PIO modes supported 2 Minimum Multi-Word DMA transfer cycle time per Word. 2 Recommended Multi-Word DMA transfer cycle time. 2 2 22 Minimum PIO transfer cycle time without flow control Minimum PIO transfer cycle time with IORDY flow control Reserved 848Ah* 2 045Ah* 2 1 2 3 4 5 6 7-8 9 10-19 20 21 22 23-26 XXXXh 0000h 00XXh 0000h 0200h XXXXh XXXXh 0000h aaaa 0002h 0001h 0004h aaaa* 2 2 2 2 2 2 4 2 20 2 2 2 8 27-46 aaaa* 40 47 48 8001h 0000h 0F00h* 0E00h* 4001h 0200h 0000h 0007h* XXXXh XXXXh XXXXh XXXXh 010Xh XXXXh 0000h 0007h* 0000h* 0003h 0078h* 0000h* 0078h* 0000h* 0078h* 0078h* 0000h 01E0h 0000h 702Bh* 7405h* 4020h* 7009h* 3405h* 4000h* 207Fh* 0000h 0000h 0000h FFFEh* XXXXh* 0000h 0000h XXXXh 2 2 0 49 50 51 52 53 54 55 56 57-58 59 60-61 62 63 64 65 66 67 68 69-79 80-81 82 -84 85-87 88 89 90 91 92 93 94-99 100-103 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Data Field Type Information 2 2 2 2 2 2 2 2 4 2 4 2 2 4 ATA version 5,6,7,8 6 Features/command sets supported 6 Features/command sets enabled 2 2 2 2 2 Ultra DMA Mode 0,1,2,3,4,5,6 Supported and Selected (changes in operation) Time required for Security erase unit completion Time required for Enhanced security erase unit completion Current Advanced power mana9ementvalue Master Password Revision Code 2 Hardware reset result, 0000h in PC card mode 12 8 Reserved Total number of sectors addressable in LBA48 mode Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 62 of 106 Word Address 104 105 106-107 108-111 112-127 128 129 130-159 160 161 162 163 164 165-168 169 170-216 217 218-254 255 * XXXX Default Value 0000h 0001h 0000h 0000h* 0000h* 0XXXh* XX00h 0000h A064h* 0000h 0000h 0012h* 001Bh* 8D9Bh* 0000h 0001h 0000h 0001h 0000h XXA5 Total Bytes 2 2 4 8 36 2 2 60 2 2 2 2 2 8 2 94 2 74 2 Data Field Type Information Reserved Number of sectors per Data Set Management command Reserved World Wide Name Reserved Security status Write Protect Status vendor unique bytes Power requirement description (100mA)* Reserved for assignment by the CFA Key management schemes not supported CF Advanced True lDE Timing Mode Capability and Setting (PIO6/MDMA4)* CF Advanced PC card I/O and Memory Timing Mode Capability Reserved Trim bit in Data Set Management supported Reserved Solid State Device (non-rotating media) Reserved Integrity Word Standard values for full functionality, depending on configuration Depending on Card capacity and drive geometry 10.8.1 Word 0: General Configuration This field indicates the general characteristics of the device. The default value for Word 0 is set to 848Ah. It is recommended that PC card modes of operation report only the 848Ah value as they are always intended as removable devices. Alternate Configuration Values for Word 0 is 045Ah. Some operating systems require Bit 6 of Word 0 to be set to ‘1’ (Non-removable device) to use the Card as the root storage device. The Card must be the root storage device when a host completely replaces conventional disk storage with a CompactFlashTM Card in True IDE mode. To support this requirement and provide capability for any future removable media cards, alternate value of Word 0 is set in True IDE Mode of operation. 10.8.2 Word 1: Default Number of Cylinders This field contains the number of translated cylinders in the default translation mode. This value will be the same as the number of cylinders. 10.8.3 Word 3: Default Number of Heads This field contains the number of translated heads in the default translation mode. 10.8.4 Word 6: Default Number of Sectors per Track This field contains the number of sectors per track in the default translation mode. 10.8.5 Word 7-8: Number of Sectors per Card This field contains the number of sectors per Card. This double Word value is also the first invalid address in LBA translation mode. 10.8.6 Word 10-19: Memory Card Serial Number The contents of this field are right justified and padded without spaces (20h). 10.8.7 Word 23-26: Firmware Revision This field contains the revision of the firmware for this product. 10.8.8 Word 27-46: Model Number This field contains the model number for this product and is left justified and padded with spaces (20h). Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 63 of 106 10.8.9 Word 47: Read/Write Multiple Sector Count This field contains the maximum number of sectors that can be read or written per interrupt using the Read Multiple or Write Multiple commands. 10.8.10 Word 49: Capabilities      Bit 13 Standby Timer: is set to ’0’ to indicate that the Standby timer operation is defined by the manufacturer. Bit 11: IORDY Supported If bit 11 is set to 1 then this CompactFlashTM Storage Card supports IORDY operation. If bit 11 is set to 0 then this CompactFlashTM Storage Card may support IORDY operation. Bit 10: IORDY may be disabled Bit 10 shall be set to 0, indicating that IORDY may not be disabled. Bit 9 LBA support: CompactFlashTM Memory Cards support LBA mode addressing. Bit 8 DMA Support: Read/Write DMA commands are supported. 10.8.11 Word 51: PIO Data Transfer Cycle Timing Mode This field defines the mode for PIO data transfer. For backward compatibility with BIOSs written before Word 64 was defined for advanced modes, a device reports in Word 51, the highest original PIO mode it can support (PIO mode 0, 1 or 2). Bits 15:8: are set to 02H. 10.8.12 Word 53: Translation Parameter Valid    Bit 0: is set to ‘1’ to indicate that Words 54 to 58 are valid Bit 1: is set to ‘1’ to indicate that Words 64 to 70 are valid Bit 2 shall be set to 1 indicating that word 88 is valid and reflects the supported True IDE UDMA 10.8.13 Word 54-56: Current Number of Cylinders, Heads, Sectors/Track These fields contain the current number of user addressable Cylinders, Heads, and Sectors/Track in the current translation mode. 10.8.14 Word 57-58: Current Capacity This field contains the product of the current cylinders, heads and sectors. 10.8.15 Word 59: Multiple Sector Setting    Bits 15-9 are reserved and must be set to ‘0’. Bit 8 is set to ‘1’, to indicate that the Multiple Sector Setting is valid. Bits 7-0 are the current setting for the number of sectors to be transferred for every interrupt, on Read/Write Multiple commands; the only values returned are ‘00h’ or ‘01h’. 10.8.16 Word 60-61: Total Sectors Addressable in LBA Mode This field contains the number of sectors addressable for the Card in LBA mode only. 10.8.17 Word 63: Multi-Word DMA transfer Bits 15 through 8 of word 63 of the Identify Device parameter information is defined as the Multiword DMA mode selected field. If this field is supported, bit 1 of word 53 shall be set to one. This field is bit significant. Only one of bits may be set to one in this field by the CompactFlashTM Storage Card to indicate the multiword DMA mode which is currently selected. Of these bits, bits 15 through 11 are reserved. Bit 8, if set to one, indicates that Multiword DMA mode 0 has been selected. Bit 9, if set to one, indicates that Multiword DMA mode 1 has been selected. Bit 10, if set to one, indicates that Multiword DMA mode 2 has been selected. Selection of Multiword DMA modes 3 and above are specific to CompactFlashTM are reported in word 163 as described in Word 163. Bits 7 through 0 of word 63 of the Identify Device parameter information is defined as the Multiword DMA data transfer supported field. If this field is supported, bit 1 of word 53 shall be set to one. This field is bit significant. Any number of bits may be set to one in this field by the CompactFlashTM Storage Card to indicate the Multiword DMA modes it is capable of supporting. Of these bits, bits 7 through 2 are reserved. Bit 0, if set to one, indicates that the CompactFlash TM Storage Card supports Multiword DMA mode 0. Bit 1, if set to one, indicates that the CompactFlashTM Storage Card supports Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 64 of 106 Multiword DMA modes 1 and 0. Bit 2, if set to one, indicates that the CompactFlashTM Storage Card supports Multiword DMA modes 2, 1 and 0. Support for Multiword DMA modes 3 and above are specific to CompactFlashTM are reported in word 163 as described in Word 163. 10.8.18 Word 64: Advanced PIO transfer modes supported This field is bit significant. Any number of bits may be set to ‘1’ in this field by the CompactFlash TM Memory Card to indicate the advanced PIO modes it is capable of supporting. 3 Bits 7-2 are reserved for future advanced PIO modes. 4 Bit 1 is set to ‘1’, indicates that the CompactFlashTM Memory Card supports PIO mode 4. 5 Bit 0 is set to ‘1’ to indicate that the CompactFlashTM Memory Card supports PIO mode 3. Support for PIO modes 5 and above are specific to CompactFlashTM are reported in word 163 as described in Word 163. 10.8.19 Word 65: Minimum Multi-Word DMA transfer cycle time Word 65 of the parameter information of the Identify Device command is defined as the minimum Multiword DMA transfer cycle time. This field defines, in nanoseconds, the minimum cycle time that, if used by the host, the CompactFlashTM Storage Card guarantees data integrity during the transfer. If this field is supported, bit 1 of word 53 shall be set to one. The value in word 65 shall not be less than the minimum cycle time for the fastest DMA mode supported by the device. This field shall be supported by all CompactFlashTM Storage Cards supporting DMA modes 1 and above. If bit 1 of word 53 is set to one, but this field is not supported, the Card shall return a value of zero in this field. 10.8.20 Word 66: Recommended Multi-Word DMA transfer cycle time Word 66 of the parameter information of the Identify Device command is defined as the recommended Multiword DMA transfer cycle time. This field defines, in nanoseconds, the cycle time that, if used by the host, may optimize the data transfer from by reducing the probability that the CompactFlash TM Storage Card will need to negate the DMARQ signal during the transfer of a sector. If this field is supported, bit 1 of word 53 shall be set to one. The value in word 66 shall not be less than the value in word 65. This field shall be supported by all CompactFlashTM Storage Cards supporting DMA modes 1 and above. If bit 1 of word 53 is set to one, but this field is not supported, the Card shall return a value of zero in this field. 10.8.21 Word 67: Minimum PIO transfer cycle time without flow control Word 67 of the parameter information of the Identify Device command is defined as the minimum PIO transfer without flow control cycle time. This field defines, in nanoseconds, the minimum cycle time that, if used by the host, the CompactFlashTM Storage Card guarantees data integrity during the transfer without utilization of flow control. If this field is supported, Bit 1 of word 53 shall be set to one. Any CompactFlashTM Storage Card that supports PIO mode 3 or above shall support this field, and the value in word 67 shall not be less than the value reported in word 68. If bit 1 of word 53 is set to one because a CompactFlashTM Storage Card supports a field in words 64-70 other than this field and the CompactFlashTM Storage Card does not support this field, the CompactFlashTM Storage Card shall return a value of zero in this field. 10.8.22 Word 68: Minimum PIO transfer cycle time with IORDY Word 68 of the parameter information of the Identify Device command is defined as the minimum PIO transfer with IORDY flow control cycle time. This field defines, in nanoseconds, the minimum cycle time that the CompactFlashTM Storage Card supports while performing data transfers while utilizing IORDY flow control. If this field is supported, Bit 1 of word 53 shall be set to one. Any CompactFlashTM Storage Card that supports PIO mode 3 or above shall support this field, and the value in word 68 shall be the fastest defined PIO mode supported by the CompactFlashTM Storage Card. If bit 1 of word 53 is set to one because a CompactFlashTM Storage Card supports a field in words 64-70 other than this field and the CompactFlashTM Storage Card does not support this field, the CompactFlashTM Storage Card shall return a value of zero in this field. 10.8.23 Words 82-84: Features/command sets supported Words 82, 83, and 84 shall indicate features/command sets supported. The value 0000h or FFFFh was placed in each of these words by CompactFlashTM Storage Cards prior to ATA-3 and shall be interpreted by the host as meaning that features/command sets supported are not indicated. Bits 1 through 13 of word 83 and bits 0 through 13 of word 84 are reserved. Bit 14 of word 83 and word 84 shall be set to one and bit 15 of word 83 and word 84 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 65 of 106 shall be cleared to zero to provide indication that the features/command sets supported words are valid. The values in these words should not be depended on by host implementers.                 If bit 0 of word 82 is set to one, the SMART feature set is supported. If bit 1 of word 82 is set to one, the Security Mode feature set is supported. Bit 2 of word 82 shall be set to zero; the Removable Media feature set is not supported. Bit 3 of word 82 shall be set to one; the Power Management feature set is supported. Bit 4 of word 82 shall be set to zero; the Packet Command feature set is not supported. If bit 5 of word 82 is set to one, write cache is supported. If bit 6 of word 82 is set to one, look-ahead is supported. Bit 7 of word 82 shall be set to zero; release interrupt is not supported. Bit 8 of word 82 shall be set to zero; Service interrupt is not supported. Bit 9 of word 82 shall be set to zero; the Device Reset command is not supported. Bit 10 of word 82 shall be set to zero; the Host Protected Area feature set is not supported. Bit 11 of word 82 is obsolete. Bit 12 of word 82 shall be set to one; the CompactFlashTM Storage Card supports the Write Buffer command. Bit 13 of word 82 shall be set to one; the CompactFlashTM Storage Card supports the Read Buffer command. Bit 14 of word 82 shall be set to one; the CompactFlashTM Storage Card supports the NOP command. Bit 15 of word 82 is obsolete.  Bit 0 of word 83 shall be set to zero; the CompactFlashTM Storage Card does not support the Download Microcode command. Bit 1 of word 83 shall be set to zero; the CompactFlashTM Storage Card does not support the Read DMA Queued and Write DMA Queued commands. Bit 2 of word 83 shall be set to one; the CompactFlashTM Storage Card supports the CFA feature set. If bit 3 of word 83 is set to one, the CompactFlashTM Storage Card supports the Advanced Power Management feature set. Bit 4 of word 83 shall be set to zero; the CompactFlashTM Storage Card does not support the Removable Media Status feature set. Bit 5 of Word 83 shall be cleared to zero; the Power Up in Standby feature set is not supported. Bit 6 of Word 83 shall be cleared to zero; Set Features subcommand requirement to spin-up after powerup is not supported. Bit 7 of Word 83 shall be cleared to zero Bit 8 of Word 83 shall be cleared to zero; the SET MAX security extension is not supported. Bit 9 of Word 83 shall be cleared to zero; automatic acoustic management is not supported. Bit 10 of word 83 shall be set to one, the 48-bit Address feature is supported, Bit 11 of Word 83 shall be cleared to zero; the DCO feature set is not supported. Bit 12 of Word 83 shall be set to one; the Flush Cache command is supported. Bit 13 of Word 83 shall be set to one, the 48-bit Address feature including the Flush Cache Ext command is supported. Bit 14 of Word 83 shall be set to one. Bit 15 of Word 83 shall be cleared to zero.                           Bit 0 of Word 84 shall be cleared to zero; SMART error logging is not supported. Bit 1 of Word 84 shall be cleared to zero; SMART self-test is not supported. Bit 2 of Word 84 shall be cleared to zero; Media serial number is not supported. Bit 3 of Word 84 shall be cleared to zero; Media Card Pass Through feature set not supported. Bit 4 of Word 84 shall be cleared to zero. Bit 5 of Word 84 shall be set to one if General Purpose Logging feature set is supported, or cleared to zero if the General Purpose Logging feature is not supported. Bit 6 of word 84 shall be set to one if the WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT commands are supported, or cleared to zero if they are not supported. Bit 7 of word 84 shall be cleared to zero. The CompactFlashTM Storage Card does not support the WRITE DMA QUEUED FUA EXT command. Bit 8 of word 84 shall be cleared to zero. The CompactFlashTM Storage Card does not support a world-wide name. Bit 9 of word 84 shall be cleared to zero. The CompactFlashTM Storage Card does not support the Streaming feature set. Bit 10 of word 84 shall be cleared to zero. The CompactFlashTM Storage Card does not support the Streaming feature set. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 66 of 106      Bit 11 of word 84 is reserved. Bit 12 of word 84 is reserved. Bit 13 of word 84 shall be cleared to zero. The CompactFlashTM Storage Card does not support IDLE IMMEDIATE with UNLOAD FEATURE. Bit 14 of Word 84 shall be set to one. Bit 15 of Word 84 shall be cleared to zero. 10.8.24 Words 85-87: Features/command sets enabled Words 85, 86, and 87 shall indicate features/command sets enabled. The value 0000h or FFFFh was placed in each of these words by CompactFlashTM Storage Cards prior to ATA-4 and shall be interpreted by the host as meaning that features/command sets enabled are not indicated. Bits 1 through 15 of word 86 are reserved. Bits 013 of word 87 are reserved. Bit 14 of word 87 shall be set to one and bit 15 of word 87 shall be cleared to zero to provide indication that the features/command sets enabled words are valid. The values in these words should not be depended on by host implementers.  If bit 0 of word 85 is set to one; the SMART feature set is enabled. Bit 0 can be changed by the host and is not reset after power cycle  If bit 1 of word 85 is set to one, the Security Mode feature set has been enabled via the Security  Set Password command.  Bit 2 of word 85 shall be set to zero; the Removable Media feature set is not supported.  Bit 3 of word 85 shall be set to one; the Power Management feature set is supported.  Bit 4 of word 85 shall be set to zero; the Packet Command feature set is not enabled.  If bit 5 of word 85 is set to one, write cache is enabled.  If bit 6 of word 85 is set to one, look-ahead is enabled.  Bit 7 of word 85 shall be set to zero; release interrupt is not enabled.  Bit 8 of word 85 shall be set to zero; Service interrupt is not enabled.  Bit 9 of word 85 shall be set to zero; the Device Reset command is not supported.  Bit 10 of word 85 shall be set to zero; the Host Protected Area feature set is not supported.  Bit 11 of word 85 is obsolete.  Bit 12 of word 85 shall be set to one; the CompactFlashTM Storage Card supports the Write Buffer command.  Bit 13 of word 85 shall be set to one; the CompactFlashTM Storage Card supports the Read Buffer command.  Bit 14 of word 85 shall be set to one; the CompactFlashTM Storage Card supports the NOP command.  Bit 15 of word 85 is obsolete.                    Bit 0 of word 86 shall be set to zero; the CompactFlashTM Storage Card does not support the Download Microcode command. Bit 1 of word 86 shall be set to zero; the CompactFlashTM Storage Card does not support the Read DMA Queued and Write DMA Queued commands. If bit 2 of word 86 shall be set to one, the CompactFlashTM Storage Card supports the CFA feature set. If bit 3 of word 86 is set to one, the Advanced Power Management feature set has been enabled via the Set Features command. Bit 4 of word 86 shall be set to zero; the CompactFlash TM Storage Card does not support the Removable Media Status feature set. Bit 5 of word 86 shall be cleared to zero. The PUIS feature set is not supported. Bit 6 of word 86 shall be cleared to zero. The PUIS feature set is not supported. Bit 7 of word 86 is reserved for ATA. Bit 8 of word 86 shall be cleared to zero. The ATA Security Extension is not supported. Bit 9 of word 86 shall be cleared to zero. The AAM feature set is not supported. Bit 10 of word 86 is set to one, the 48-bit Address feature set is supported. Bit 11 of word 86 shall be cleared to zero. The DCO feature set is not supported. If bit 12 is set to one, the Flush Cache command is supported. If bit 13 is set to one, the Flush Cache Ext command is supported. Bit 14 of word 86 is reserved for ATA. Bit 15 of word 86 shall be set to one indicating that words 119 and 120 are valid. Bit 0 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support SMART error logging. Bit 1 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support SMART self-test. Bit 2 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support the media serial number field in words (205:176). Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 67 of 106             Bit 3 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support the Media Card Pass Through feature. Bit 4 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support the Streaming feature set. Bit 5 of word 87 shall be set to one if the CompactFlashTM Storage Card supports the General Purpose Logging feature set, or cleared to zero if the General Purpose Logging feature is not supported. Bit 6 of word 87 shall be set to one if the WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT commands are supported, or cleared to zero if they are not supported. Bit 7 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support the WRITE DMA QUEUED FUA EXT command. Bit 8 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support a world wide name. Bit 9 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support the Streaming feature set. Bit 10 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support the Streaming feature set. Bit 11 of word 87 is reserved. Bit 12 of word 87 is reserved. Bit 13 of word 87 shall be cleared to zero. The CompactFlashTM Card does not support IDLE IMMEDIATE with UNLOAD FEATURE. Bit 14 of word 87 shall be set to one and bit 15 of word 87 shall be cleared to zero to provide indication that the features/command sets enabled words are valid. 10.8.25 Word 88: True IDE Ultra DMA Modes Supported and Selected Word 88 identifies the Ultra DMA transfer modes supported by the device and indicates the mode that is currently selected. Only one DMA mode shall be selected at any given time. If an Ultra DMA mode is selected, then no Multiword DMA mode shall be selected. If a Multiword DMA mode is selected, then no Ultra DMA mode shall be selected. Support of this word is mandatory if Ultra DMA is supported. Word 88 shall return a value of 0 if the device is not in True IDE mode or if it does not support UDMA in True IDE Mode.  Bit 15: Reserved  Bit 14: 1 = Ultra DMA mode 6 is selected 0 = Ultra DMA mode 6 is not selected  Bit 13: 1 = Ultra DMA mode 5 is selected 0 = Ultra DMA mode 5 is not selected  Bit 12: 1 = Ultra DMA mode 4 is selected 0 = Ultra DMA mode 4 is not selected  Bit 11: 1 = Ultra DMA mode 3 is selected 0 = Ultra DMA mode 3 is not selected  Bit 10: 1 = Ultra DMA mode 2 is selected 0 = Ultra DMA mode 2 is not selected  Bit 9: 1 = Ultra DMA mode 1 is selected 0 = Ultra DMA mode 1 is not selected  Bit 8: 1 = Ultra DMA mode 0 is selected 0 = Ultra DMA mode 0 is not selected  Bit 7: Reserved  Bit 6: 1 = Ultra DMA mode 6 and below are supported. Bits 0-5 shall be set to 1.  Bit 5: 1 = Ultra DMA mode 5 and below are supported. Bits 0-4 shall be set to 1.  Bit 4: 1 = Ultra DMA mode 4 and below are supported. Bits 0-3 shall be set to 1.  Bit 3: 1 = Ultra DMA mode 3 and below are supported, Bits 0-2 shall be set to 1.  Bit 2: 1 = Ultra DMA mode 2 and below are supported. Bits 0-1 shall be set to 1.  Bit 1: 1 = Ultra DMA mode 1 and below are supported. Bit 0 shall be set to 1.  Bit 0: 1 = Ultra DMA mode 0 is supported 10.8.26 Word 92: Master Password Revision Code Word 92 contains the value of the Master Password Revision Code set when the Master Password was last changed. Valid values are 0001h through FFFEh. A value of 0000h or FFFFh indicates that the Master Password Revision is not supported. Support of this word is mandatory if the Security feature set is supported. 10.8.27 Words 100-103: Maximum user LBA for 48-bit address feature set Words (103-100) contain a value that is one greater than the maximum LBA in user addressable space using 48-bit Addressing. The maximum value that shall be placed in this field is 0000FFFFFFFFFFFFh. Support of these words is mandatory. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 68 of 106 10.8.28 Word 105: Maximum number of 512-byte blocks of LBA Range Entries used by the Trim feature of the Data Set Management command Word 105 contains the maximum number of 512-byte blocks of LBA Range Entries included with the Trim feature of the Data Set Management command that the CompactFlashTM device shall accept. A value of 0000h indicates that the maximum number of 512-byte blocks is not specified. 10.8.29 Word 128: Security Status        Bit 8: Security Level If set to one indicates that security mode is enabled and the security level is maximum. If cleared to zero and security mode is enabled, indicates that the security level is high. Bit 5: Enhanced security erase unit feature supported If set to one, indicates that the Enhanced security erase unit feature set is supported. Bit 4: Expire If set to one, indicates that the security count has expired and Security Unlock and Security Erase Unit are command aborted until a power-on reset or hard reset. Bit 3: Freeze If set to one, indicates that the security is Frozen. Bit 2: Lock If set to one, indicates that the security is locked. Bit 1: Enable/Disable If set to one, indicates that the security is enabled. If cleared to zero, indicates that the security is disabled. Bit 0: Capability If set to one, indicates that CompactFlashTM Storage Card supports security mode feature set. If cleared to zero, indicates that CompactFlashTM Card does not support security mode feature set. 10.8.30 Word 160: Power Requirement Description This word is required for CompactFlashTM Storage Cards that support power mode 1.  Bit 15: VLD If set to 1, indicates that this word contains a valid power requirement description. If set to 0, indicates that this word does not contain a power requirement description.  Bit 14: RSV This bit is reserved and shall be 0.  Bit 13: -XP If set to 1, indicates that the CompactFlashTM Storage Card does not have Power Level 1 commands. If set to 0, indicates that the CompactFlashTM Storage Card has Power Level 1 commands  Bit 12: -XE If set to 1, indicates that Power Level 1 commands are disabled. If set to 0, indicates that Power Level 1 commands are enabled.  Bit 0-11: Maximum current This field contains the CompactFlashTM Storage Card’s maximum current in mA. 10.8.31 Word 163: Advanced True IDE Timing mode capabilities and settings This word describes the capabilities and current settings for CFA defined advanced timing modes using the True IDE interface. Notice! The use of True IDE PIO Modes 5 and above or of Multiword DMA Modes 3 and above impose significant restrictions on the implementation of the host as indicated in section 5.3 : Additional Requirements for CF Advanced Timing Modes. There are four separate fields defined that describe support and selection of Advanced PIO timing modes and Advanced Multiword DMA timing modes. The older modes are reported in words 63 and 64.  Bits 2-0: Advanced True IDE PIO Mode Support Indicates the maximum True IDE PIO mode supported by the card. 0 Specified in word 64 1 PIO Mode 5 2 PIO Mode 6 3-7 Reserved Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 69 of 106  Bits 5-3: Advanced True IDE Multiword DMA Mode Support indicates the maximum True IDE Multiword DMA mode supported by the card. 0 Specified in word 63 1 Multiword DMA Mode 3 2 Multiword DMA Mode 4 3-7 Reserved  Bits 8-6: Advanced True IDE PIO Mode Selected indicates the current True IDE PIO mode selected on the card. 0 Specified in word 64 1 PIO Mode 5 2 PIO Mode 6 3-7 Reserved  Bits 11-9: Advanced True IDE Multiword DMA Mode Selected indicates the current True IDE Multiword DMA Mode Selected on the card. 0 Specified in word 63 1 Multiword DMA Mode 3 2 Multiword DMA Mode 4 3-7 Reserved  Bits 15-12 are reserved. 10.8.32 Word 164: Advanced PC card I/O and Memory Timing modes capabilities and settings This word describes the capabilities and current settings for CFA defined advanced timing modes using the Memory and PC Card I/O interface. Notice! The use of PC Card I/O or Memory modes that are 100ns or faster impose significant restrictions on the implementation of the host as indicated in section 5.3 : Additional Requirements for CF Advanced Timing Modes.  Bits 2-0: Maximum Advanced PC Card I/O Mode Support Indicates the maximum I/O timing mode supported by the card. 0 255 ns Cycle PC Card I/O Mode 1 120 ns Cycle PC Card I/O Mode 2 100 ns Cycle PC Card I/O Mode 3 80 ns Cycle PC Card I/O Mode 4-7 Reserved  Bits 5-3: Maximum Memory timing mode supported Indicates the Maximum Memory timing mode supported by the card. 0 250 ns Cycle Memory Mode 1 120 ns Cycle Memory Mode 2 100 ns Cycle Memory Mode 3 80 ns Cycle Memory Mode 4-7 Reserved  Bits 8-6: Maximum PC Card I/O UDMA timing mode supported Indicates the Maximum PC Card I/O UDMA timing mode supported by the card when bit 15 is set. 0 PC Card I/O UDMA mode 0 supported 1 PC Card I/O UDMA mode 1 supported 2 PC Card I/O UDMA mode 2 supported 3 PC Card I/O UDMA mode 3 supported 4 PC Card I/O UDMA mode 4 supported 5 PC Card I/O UDMA mode 5 supported 6 PC Card I/O UDMA mode 6 supported 7 Reserved  Bits 11-9: Maximum PC Card Memory UDMA timing mode supported Indicates the Maximum PC Card Memory UDMA timing mode supported by the card when bit 15 is set. 0 PC Card Memory UDMA mode 0 supported 1 PC Card Memory UDMA mode 1 supported Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 70 of 106 2 3 4 5 6 7 PC Card Memory UDMA PC Card Memory UDMA PC Card Memory UDMA PC Card Memory UDMA PC Card Memory UDMA Reserved mode 2 supported mode 3 supported mode 4 supported mode 5 supported mode 6 supported  Bits 14-12: PC Card Memory or I/O UDMA timing mode selected Indicates the PC Card Memory or I/O UDMA timing mode selected by the card. 0 PC Card I/O UDMA mode 0 selected 1 PC Card I/O UDMA mode 1 selected 2 PC Card I/O UDMA mode 2 selected 3 PC Card I/O UDMA mode 3 selected 4 PC Card I/O UDMA mode 4 selected 5 PC Card I/O UDMA mode 5 selected 6 PC Card I/O UDMA mode 6 selected 7 Reserved  Bit 15: PC Card Memory and IO Modes Supported 10.8.33 Word 169: Data Set Management Support Bits 15-1: reserved Bit 0: shall be set to one to indicate support of the Trim bit of the Data Set Management command. 10.9 Idle (97h or E3h) This command causes the 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 (each count is 5ms) 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 (5ms) is different from the ATA specification. If no Idle command is performed, the card goes to sleep mode after 20ms. Table 67 defines the Byte sequence of the Idle command. Table 67: Idle Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 nu nu 5 4 3 2 97h or E3h nu D nu nu nu Timer Count (5ms increments) nu 1 0 nu 10.10 Idle Immediate (95h or E1h) This command causes the Card to set BSY, enter the Idle mode, clear BSY and generate an interrupt. Table 68 defines the Idle Immediate command Byte sequence. Table 68: Idle Immediate Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 nu nu nu 4 3 95h or E1h D nu nu nu nu nu 2 1 0 nu 10.11 Initialize Drive Parameters (91h) 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. Table 69 defines the Initialize Drive Parameters command Byte sequence. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 71 of 106 Table 69: Initialize Drive Parameters Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 nu nu nu D 3 2 1 0 91h Number of Heads minus 1 nu nu nu Number of Sectors per Track nu 10.12 NOP (00h) This command always fails with the CompactFlashTM Memory Card returning command aborted. Table 70 defines the Byte sequence of the NOP command. Table 70: NOP Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 00h nu nu nu D nu nu nu nu nu nu 10.13 Read Buffer (E4h) The Read Buffer command enables the host to read the current contents of the Card’s sector buffer. This command has the same protocol as the Read Sector(s) command. Table 71 defines the Read Buffer command Byte sequence. Table 71: Read buffer Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 E4h nu nu nu D nu nu nu nu nu nu 10.14 Read DMA (C8h) This command uses DMA mode to read 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 the CompactFlashTM Storage Card sets BSY, puts all or part of the sector of data in the buffer. The Card is then permitted, although not required, to set DRQ, clear BSY. The Card asserts DMAREQ while data is available to be transferred. The Card asserts DMAREQ while data is available to be transferred. The host then reads the (512 * sector-count) bytes of data from the Card using DMA. While DMAREQ is asserted by the Card, the Host asserts –DMACK while it is ready to transfer data by DMA and asserts –IORD once for each 16 bit word to be transferred to the Host. Interrupts are not generated on every sector, but upon completion of the transfer of the entire number of sectors to be transferred or upon the occurrence of an unrecoverable error. 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 amount of data transferred is indeterminate. When a Read DMA command is received by the Card and 8 bit transfer mode has been enabled by the Set Features command, the Card shall return the Aborted error. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 72 of 106 Table 72: Read DMA Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 C8h D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector Number (LBA7:0) Sector Count nu LBA 10.15 Read DMA Ext (25h) 48bit LBA This command uses DMA mode to read from 1 to 65536 sectors as specified in the Sector Count Register. A sector count of 0 requests 65536 sectors. The transfer begins at the sector specified in the Sector Number Register. When this command is issued the CompactFlashTM Storage Card sets BSY, puts all or part of the sector of data in the buffer. The Card is then permitted, although not required, to set DRQ, clear BSY. The Card asserts DMARQ while data is available to be transferred. The Card asserts DMARQ while data is available to be transferred. The host then reads the (512 * sector-count) bytes of data from the Card using DMA. While DMARQ is asserted by the Card, the Host asserts -DMACK while it is ready to transfer data by DMA and asserts -IORD once for each 16 bit word to be transferred to the Host. Interrupts are not generated on every sector, but upon completion of the transfer of the entire number of sectors to be transferred or upon the occurrence of an unrecoverable error. At command completion, the Command Block Registers contain the LBA 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 LBA of the sector where the error occurred. The amount of data transferred is indeterminate. When a Read DMA Ext command is received by the Card and 8 bit transfer mode has been enabled by the Set Features command, the Card shall return the Aborted error. Table 73: Read DMA Ext register write previous Task File Register 15:8 COMMAND DRIVE/HEAD LBA High LBA (47:40) LBA Mid LBA (39:32) LBA Low LBA (31:24) SECTOR COUNT 15:8 FEATURES nu current 7 6 5 4 3 2 1 0 25h 1 1 1 Drive LBA (23:16) LBA (15:8) LBA (7:0) 7:0 nu Reserved 10.16 Read Multiple (C4h) 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 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 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 = (sector count) module (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 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 73 of 106 Count register. A sector count of 0 requests 256 sectors. The transfer begins at the sector specified in the Sector Number Register. 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 are 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. Table 74 defines the Read Multiple command Byte sequence. Table 74: Read Multiple Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 C4h 1 LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector Number (LBA7:0) Sector Count nu 10.17 Read Multiple Ext (29h) 48bit LBA The Read Multiple Ext command performs similarly to the Read Sectors Ext 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 Ext operation except that the number of sectors defined by a 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 shall 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 = (sector count) modulo (block count). If the Read Multiple Ext command is attempted before the Set Multiple Mode command has been executed, or when Read Multiple Ext command is disabled, the Read Multiple Ext operation is rejected with an Aborted Command error. Disk errors encountered during a Read Multiple Ext command are posted at the beginning of the block or partial block transfer, but DRQ is still set and the data transfer shall 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 65536 sectors as specified in the Sector Count Register. A sector count of 0 requests 65536 sectors. The transfer begins at the sector specified in the Sector Number Register. At command completion, the Command Block Registers contain the LBA 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 LBA 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 that contained the error. Table 75: Read Multiple Ext register write previous current Task File Register 15:8 7 6 5 4 3 2 1 0 COMMAND 29h DRIVE/HEAD 1 1 1 Drive Reserved LBA High LBA (47:40) LBA (23:16) LBA Mid LBA (39:32) LBA (15:8) LBA Low LBA (31:24) LBA (7:0) SECTOR COUNT 15:8 7:0 FEATURES nu nu Note: This specification requires that CompactFlashTM Cards support a multiple block count of 1 and permits larger values to be supported. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 74 of 106 10.18 Read Sector(s) (20h or 21h) 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 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. 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 are pending in the sector buffer. Table 76 defines the Read Sector command Byte sequence. Table 76: Read sector(s) Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 1 LBA 5 4 3 2 1 20h (or 21h Legacy) 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector Number (LBA7:0) Sector Count nu 0 10.19 Read Sectors Ext (24h) 48bit LBA This command reads from 1 to 65536 sectors as specified in the Sector Count Register. A sector count of 0 requests 65536 sectors. The transfer begins at the specified LBA. When this command is issued and after each sector of data (except the last one) has been read by the host, the CompactFlashTM 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 LBA 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 LBA of the sector where the error occurred. The flawed data is pending in the sector buffer. Table 77: Read Multiple Ext register write previous Task File Register 15:8 COMMAND DRIVE/HEAD LBA High LBA (47:40) LBA Mid LBA (39:32) LBA Low LBA (31:24) SECTOR COUNT 15:8 FEATURES nu current 7 6 5 4 3 2 1 0 24h 1 1 1 Drive LBA (23:16) LBA (15:8) LBA (7:0) 7:0 nu Reserved 10.20 Read Verify Sector(s) (40h) 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 Card sets BSY. When the requested sectors have been verified, the Card clears BSY and generates an interrupt. 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 contains the number of sectors not yet verified. Table 78 defines the Read Verify Sector command Byte sequence. Table 78: Read Verify Sector(s) Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 7 6 5 4 3 2 1 0 40h 1 LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector Number (LBA7:0) Sector Count nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 75 of 106 10.21 Read Verify Ext (42h) 48bit LBA This command is identical to the Read Sector(s) Ext command, except that DRQ is never set and no data is transferred to the host. When the command is accepted, the CompactFlash TM Storage Card sets BSY. When the requested sectors have been verified, the CompactFlashTM Storage Card clears BSY and generates an interrupt. Upon command completion, the Command Block Registers contain the LBA of the last sector verified. If an error occurs, the Read Verify Command terminates at the sector where the error occurs. The Command Block Registers contain the LBA of the sector where the error occurred. The Sector Count Register contains the number of sectors not yet verified. Table 79: Read Multiple Ext register write previous Task File Register 15:8 COMMAND DRIVE/HEAD LBA High LBA (47:40) LBA Mid LBA (39:32) LBA Low LBA (31:24) SECTOR COUNT 15:8 FEATURES nu current 7 6 5 4 3 2 1 0 42h 1 1 1 Drive LBA (23:16) LBA (15:8) LBA (7:0) 7:0 nu Reserved 10.22 Recalibrate (1Xh) This command is effectively a NOP command to the Card and is provided defines the Recalibrate command Byte sequence. Table 80: Recalibrate Task File Register 7 6 5 4 COMMAND DRIVE/HEAD 1 LBA 1 D CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES for compatibility purposes. Table 80 3 2 1 0 1Xh nu nu nu nu nu nu 10.23 Request Sense (03h) This command requests extended error information for the previous command. Table 81 defines the Request Sense command Byte sequence. Table 82 defines the valid extended error codes. The extended error code is returned to the host in the Error Register. Table 81: Request sense Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 7 6 5 4 3 2 1 0 03h 1 LBA 1 D nu nu nu nu nu nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 76 of 106 Table 82: Extended Error Codes Extended Error Code 00h 01h 09h 21h 2Fh 35h, 36h 11h 18h 05h, 30-34h, 37h, 3Eh 10h, 14h 3Ah 1Fh 0Ch, 38h, 3Bh, 3Ch, 3Fh 03h Description No Error Detected Self Test OK (No Error) Miscellaneous Error Invalid Address (Requested Head or Sector Invalid) Address Overflow (Address Too Large) Supply or generated Voltage Out of Tolerance Uncorrectable ECC Error Corrected ECC Error Self Test or Diagnostic Failed ID Not Found Spare Sectors Exhausted Data Transfer Error / Aborted Command Corrupted Media Format Write / Erase Failed 10.24 Seek (7Xh) This command is effectively a NOP command to the 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. Table 83 shows the Seek command Byte sequence. Table 83: Seek Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 7Xh 1 LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) nu (LBA7:0) nu nu 10.25 Security Disable Password (F6h) This command requests a transfer of a single sector of data from the host. Table 84 defines the content of this sector of information. If the password selected by word 0 matches the password previously saved by the device, the device disables the lock mode. This command does not change the Master password that may be reactivated later by setting a User password. Table 84: Security Disable Password Task File Register 7 COMMAND DRIVE/HEAD 1 CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 6 5 4 3 2 1 0 F6h LBA 1 D nu nu nu nu nu nu Table 85: Security Password Data Content Word 0 1-16 17-255 Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Content Control word Bit 0: identifier 0=compare User password 1=compare Master password Bit 1-15: Reserved Password (32 bytes) Reserved Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 77 of 106 10.26 Security Erase Prepare (F3h) This command shall be issued immediately before the Security Erase Unit command to enable device erasing and unlocking. This command prevents accidental erase of the CF card. Table 86: Security Erase Prepare Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 F3h 1 LBA 1 D nu nu nu nu nu nu 10.27 Security Erase Unit (F4h) This command requests transfer of a single sector of data from the host. Table 85 defines the content of this sector of information. If the password does not match the password previously saved by the CF card, the CF card rejects the command with command aborted. The Security Erase Prepare command shall be completed immediately prior to the Security Erase Unit command. If the CF Card receives a Security Erase Unit command without an immediately prior Security Erase Prepare command, the CF card aborts the Security Erase Unit command. Table 87: Security Erase Unit Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 F4h 1 LBA 1 D nu nu nu nu nu nu 10.28 Security Freeze Lock (F5h) The Security Freeze Lock command sets the CF card to Frozen mode. After command completion, any other commands that update the CF card Lock mode are rejected. Frozen mode is disabled by power off or hardware reset. If Security Freeze Lock is issued when the CF card is in Frozen mode, the command executes and the CF card remains in Frozen mode. After command completion, the Sector Count Register shall be set to 0. Commands disabled by Security Freeze Lock are:  � Security Set Password  � Security Unlock  � Security Disable Password  � Security Erase Unit If security mode feature set is not supported, this command shall be handled as Wear Level command. Table 88: Security Freeze Lock Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 F5h 1 LBA 1 D nu nu nu nu nu nu 10.29 Security Set Password (F1h) This command requests a transfer of a single sector of data from the host. Table 90 defines the content of the sector of information. The data transferred controls the function of this command. Table 91 defines the interaction of the identifier and security level bits. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 78 of 106 Table 89: Security Set Password Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 1 LBA 1 D 3 2 1 0 F1h nu nu nu nu nu nu Table 90: Security Set Password Data Content Word 0 Content Control word Bit 0: identifier 0=set User password 1=set Master password Bit 1-7: Reserved Bit 8: Security level 0=High 1=Maximum Bits 9-15: Reserved Password (32 bytes) Reserved 1-16 17-255 Table 91: Identifier and Security Level Bit Interaction Identifier Level User High User Maximum Master High or Maximum Command result The password supplied with the command shall be saved as the new User password. The lock mode shall be enabled from the next power-on or hardware reset. The CF card shall then be unlocked by either the User password or the previously set Master password. The password supplied with the command shall be saved as the new User password. The lock mode shall be enabled from the next power-on or hardware reset. The CF card shall then be unlocked by only the User password. The Master password previously set is still stored in the CF card shall not be used to unlock the CF card. This combination shall set a Master password but shall not enable or disable the Lock mode. The security level is not changed. 10.30 Security Unlock (F2h) This command requests transfer of a single sector of data from the host. Table 85 defines the content of this sector of information. If the identifier bit is set to Master and the device is in high security level, then the password supplied shall be compared with the stored Master password. If the device is in the maximum security level, then the unlock command shall be rejected. If the identifier bit is set to user, then the device compares the supplied password with the stored User password. If the password compare fails then the device returns command aborted to the host and decrements the unlock counter. This counter is initially set to five and is decremented for each password mismatch when Security Unlock is issued and the device is locked. Once this counter reaches zero, the Security Unlock and Security Erase Unit commands are command aborted until after a power-on reset or a hardware reset is received. Security Unlock commands issued when the device is unlocked have no effect on the unlock counter. Table 92: Security Unlock Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 7 6 5 4 3 2 1 0 F2h 1 LBA 1 D nu nu nu nu nu nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 79 of 106 10.31 Set Features (EFh) Table 93: Set Features Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 EFh nu D nu nu nu nu Config Feature Table 94: Features Supported Feature Operation 01h/81h Enable/Disable 8-bit data transfers. 02h/82h Enable/Disable write cache. 03h Set transfer mode based on value in Sector Count register. 05h/85h Enable/Disable advance power management. 09h/89h Enable/Disable extended power operations. 0Ah/8Ah Enable/Disable power level 1 commands. 55h/AAh Disable/Enable Read Look Ahead. 66h/CCh Disable/Enable Power On Reset (POR) established of defaults at Soft Reset. 69h NOP Accepted for backward compatibility. 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 trade-off between current drawn and read/write speed. BBh 4 bytes of data apply on Read/Write Long commands 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 shall occur on the low order D[7:0] data bus and the –IOIS16 signal shall not be asserted for data register accesses. The host shall not enable this feature for DMA transfers. Features 02h and 82h allow the host to enable or disable write cache in CompactFlash TM Storage Cards that implement write cache. When the subcommand disable write cache is issued, the CompactFlashTM Storage Card shall initiate the sequence to flush cache to non-volatile memory before command completion. Feature 03h allows the host to select the PIO or Multiword DMA transfer mode by specifying a value in the Sector Count register. The upper 5 bits define the type of transfer and the low order 3 bits encode the mode value. One PIO mode shall be selected at all times. For Cards which support DMA, one DMA mode shall be selected at all times. The host may change the selected modes by the Set Features command. Table 95: Transfer Mode Values Mode Bits (7:3) Bits (2:0) PIO default mode 00000b 000b PIO default mode, disable IORDY 00000b 001b (1) PIO flow control transfer mode 00001b Mode Reserved 00010b N/A (1) Multi-Word DMA mode 00100b Mode (1) Ultra DMA mode 01000b Mode Reserved 1000b N/A (1)Mode = transfer mode number Notes: Multiword DMA is not permitted for devices configured in the PC Card Memory or the PC Card I/O interface mode. If a CompactFlashTM Storage Card supports PIO modes greater than 0 and receives a Set Features command with a Set Transfer Mode parameter and a Sector Count register value of “00000000b”, it shall set its default PIO mode. If the value is “00000001b” and the CompactFlashTM Storage Card supports disabling of IORDY, then the CompactFlashTM Storage Card shall set its default PIO mode and disable IORDY. A CompactFlashTM Storage Card shall support all PIO modes below the highest mode supported, e.g., if PIO mode 1 is supported PIO mode 0 shall be supported. Support of IORDY is mandatory when PIO mode 3 or above is the current mode of operation. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 80 of 106 A CompactFlashTM Storage Card reporting support for Multiword DMA modes shall support all Multiword DMA modes below the highest mode supported. For example, if Multiword DMA mode 2 support is reported, then modes 1 and 0 shall also be supported. Note that Multiword DMA shall not be supported while PC Card interface modes are selected. A CompactFlash Storage Card reporting support for Ultra DMA modes shall support all Ultra DMA modes below the highest mode supported. For example, if Ultra DMA mode 2 support is reported then modes 1 and 0 shall also be supported. If an Ultra DMA mode is enabled, any previously enabled Multiword DMA mode shall be disabled by the device. If a Multiword DMA mode is enabled any previously enabled Ultra DMA mode shall be disabled by the device. Feature 05h allows the host to enable Advanced Power Management. To enable Advanced Power Management, the host writes the Sector Count register with the desired advanced power management level and then executes a Set Features command with subcommand code 05h. The power management level is a scale from the lowest power consumption setting of 01h to the maximum performance level of FEh. Table 96: Advanced power management levels shows these values. Table 96: Advanced power management levels Level Maximum performance Intermediate power management levels without Standby Minimum power consumption without Standby Intermediate power management levels with Standby Minimum power consumption with Standby Reserved Reserved Sector Count Value FEh 81h-FDh 80h 02h-7Fh 01h FFh 00h In the current version the advanced power management levels are accepted, but don’t influence performance and power consumption. Device performance may increase with increasing power management levels. Device power consumption may increase with increasing power management levels. The power management levels may contain discrete bands. For example, a device may implement one power management method from 80h to A0h and a higher performance, higher power consumption method from level A1h to FEh. Advanced power management levels 80h and higher do not permit the device to spin down to save power. Feature 85h disables Advanced Power Management. Subcommand 85h may not be implemented on all devices that implement Set Features subcommand 05h. Features 0Ah and 8Ah are used to enable and disable Power Level 1 commands. Feature 0Ah is the default feature for the CF+ CompactFlashTM Storage Card with extended power as they require Power Level 1 to perform their full set of functions. Power Enhanced CF Storage Cards are required to power up and execute all supported commands and protocols in Power Level 0, their default feature shall be 8Ah: Disable Power Level 1 Commands. No commands are actually excluded for such cards in Power Level 0 because no commands require Power Level 1. The 8Ah default allows the cards to restrict their operating power to Power Level 0 limits for compatibility with hosts that do not recognize or support the extended power capabilities of Power Enhanced CF Storage Cards. It also allows hosts that support extended power to take advantage of it by setting the feature to 0Ah: Enable Power Level 1 Commands. Features 55h and BBh are the default features for the CompactFlashTM 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 were 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 shall accept values outside this programmable range, but shall operate at either 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 shall be set when a soft reset occurs. The default setting is to revert to the POR defaults when a soft reset occurs. 10.32 Set Multiple Mode (C6h) This command enables the 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 Card sets BSY and checks the Sector Count Register. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 81 of 106 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 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 commands are disabled. At power on the default mode is Read and Write Multiple disabled, unless it is disabled by a Set Feature command. Table 97 defines the Set Multiple Mode command Byte sequence. Table 97: Set Multiple Mode Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 C6h nu D nu nu nu nu Sector Count nu 10.33 Set Sleep Mode (99h or E6) This command causes the CompactFlashTM Memory 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. Sleep mode is also entered when internal timers expire 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 20 milliseconds. Note that this time base (5ms) is different from the ATA Specification. Table 98 defines the Set Sleep Mode command Byte sequence. Table 98: Set Sleep Mode Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 nu 4 3 99h or E6h D nu nu nu nu nu 2 1 0 nu 10.34 S.M.A.R.T. (B0h) The intent of self-monitoring, analysis, and reporting technology (the SMART feature set) is to protect user data and minimize the likelihood of unscheduled system downtime that may be caused by predictable degradation and/or fault of the device. By monitoring and storing critical performance and calibration parameters, SMART feature set devices attempt to predict the likelihood of near-term degradation or fault condition. Providing the host system the knowledge of a negative reliability condition allows the host system to warn the user of the impending risk of a data loss and advise the user of appropriate action. Support of this feature set is indicated in the IDENTIFY DEVICE data (Word 82 bit 0). Table 99: S.M.A.R.T. Features Task File Register 7 6 COMMAND DRIVE/HEAD 1 1 CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Details of S.M.A.R.T. features are described in Section 11. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 5 4 3 2 1 0 B0h 1 D nu C2h 4Fh nu XXh Feature Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 82 of 106 10.35 Standby (96h or E2) This command causes the 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 issuing another command. Table 100 defines the Standby command Byte sequence. Table 100: Standby Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 96h or E2h D nu nu nu nu nu nu 2 1 0 nu 10.36 Standby Immediate (94h or E0h) This command causes the 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 issuing another command. Table 101 defines the Standby Immediate Byte sequence. Table 101: Standby Immediate Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 94h or E0h D nu nu nu nu nu nu 2 1 0 nu 10.37 Translate Sector (87h) 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 Translate Sector is not needed. Table 102 defines the Translate Sector command Byte sequence. Table 102: Translate Sector Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 7 6 5 4 3 2 1 0 87h 1 LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) nu (LBA7:0) nu nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 83 of 106 10.38 Write Buffer (E8h) The Write Buffer command enables the host to overwrite contents of the 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. Table 103 defines the Write Buffer command Byte sequence. Table 103: Write Buffer Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 E8h nu D nu nu nu nu nu nu 10.39 Write DMA (CAh) This command uses DMA mode to write 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 the CompactFlashTM Storage Card sets BSY, puts all or part of the sector of data in the buffer. The Card is then permitted, although not required, to set DRQ, clear BSY. The Card asserts DMAREQ while data is available to be transferred. The host then writes the (512 * sector-count) bytes of data to the Card using DMA. While DMAREQ is asserted by the Card, the Host asserts –DMACK while it is ready to transfer data by DMA and asserts –IOWR once for each 16 bit word to be transferred from the Host. Interrupts are not generated on every sector, but upon completion of the transfer of the entire number of sectors to be transferred or upon the occurrence of an unrecoverable error. At command completion, the Command Block Registers contain the cylinder, head and sector number of the last sector written. If an error occurs, the write 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 amount of data transferred is indeterminate. When a Write DMA command is received by the Card and 8 bit transfer mode has been enabled by the Set Features command, the Card shall return the Aborted error. Table 104: Write DMA Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 CAh LBA D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector number (LBA7:0) Sector Count nu 10.40 Write DMA Ext (35h) 48bit LBA This command uses DMA mode to write from 1 to 65536 sectors as specified in the Sector Count Register. A sector count of 0 requests 65536 sectors. The transfer begins at the sector specified in the Sector Number Register. When this command is issued the CompactFlashTM Storage Card sets BSY, puts all or part of the sector of data in the buffer. The Card is then permitted, although not required, to set DRQ, clear BSY. The Card asserts DMARQ while data is available to be transferred. The host then writes the (512 * sector-count) bytes of data to the Card using the DMA protocol. While DMARQ is asserted by the Card, the Host asserts -DMACK while it is ready to transfer data by DMA and asserts -IOWR once for each 16 bit word to be transferred from the Host. Interrupts are not generated on every sector, but upon completion of the transfer of the entire number of sectors to be transferred or upon the occurrence of an unrecoverable error. At command completion, the Command Block Registers contain the LBA of the last sector written. If an error occurs, the write terminates at the sector where the error occurred. The Command Block Registers contain the LBA of the sector where the error occurred. The amount of data transferred is indeterminate. When a Write DMA command is received by the Card and 8 bit transfer mode has been enabled by the Set Features command, the Card shall return the Aborted error. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 84 of 106 Table 105: Write DMA Ext register write previous Task File Register 15:8 COMMAND DRIVE/HEAD LBA High LBA (47:40) LBA Mid LBA (39:32) LBA Low LBA (31:24) SECTOR COUNT 15:8 FEATURES nu current 7 6 5 4 3 2 1 0 35h 1 1 1 Drive LBA (23:16) LBA (15:8) LBA (7:0) 7:0 nu Reserved 10.41 Write Multiple Command (C5h) This command is similar to the Write Sectors command. The Card sets BSY within 400ns 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 = (sector count) module (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. For example, 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. Note: The current revision of the CompactFlashTM Memory Card only supports a block count of 1 as indicated in the Identify Drive Command information. The Write Multiple command is provided for compatibility with future products which may support a larger block count. Table 106 defines the Write Multiple command Byte sequence. Table 106: Write Multiple Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 7 6 5 4 3 2 1 0 C5h 1 LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector number (LBA7:0) Sector Count nu 10.42 Write Multiple Ext (39h) 48bit LBA The Write Multiple Ext command is similar to the Write Multiple command, except that LBA addressing is mandatory, the LBA associated with this command is a 48 bit address, and the sector count field is a 16 bit field. The second (lower in the table) part of each 16 bit field can be written to or read from by setting the HOB bit of the Device Control Register to 1 before reading or writing the field. Reading or writing the task file shall reset the HOA bit to 0. Error handling is similar to the Write Multiple command, except that the error sector address is always returned as a 48 bit address, and the sector count is a 16 bit number. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 85 of 106 Table 107: Write Multiple Ext register write previous Task File Register 15:8 COMMAND DRIVE/HEAD LBA High LBA (47:40) LBA Mid LBA (39:32) LBA Low LBA (31:24) SECTOR COUNT 15:8 FEATURES nu current 7 6 5 4 3 2 1 0 39h 1 1 1 Drive LBA (23:16) LBA (15:8) LBA (7:0) 7:0 nu Reserved 10.43 Write Multiple without Erase (CDh) 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. Table 108 defines the Write Multiple without Erase command Byte sequence. Table 108: Write Multiple without Erase Task File Register 7 COMMAND DRIVE/HEAD 1 CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 6 5 4 3 2 1 0 CDh LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector number (LBA7:0) Sector Count nu 10.44 Write Sector(s) (30h or 31h) 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 Card sets BSY, 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 occurred. 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 determine what error has occurred, and on which sector. Table 109 defines the Write Sector(s) command Byte sequence. Table 109: Write Sector(s) Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 7 6 5 1 LBA 4 3 2 1 30h or 31h 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector number (LBA7:0) Sector Count nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com 0 Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 86 of 106 10.45 Write Sector(s) Ext (34h) 48bit LBA This is the 48-bit address version of the Write Sector(s) command. This command writes from 1 to 65,536 sectors as specified in the Sector Count Register. A sector count value of 0000h requests 65,536 sectors. The device shall interrupt for each DRQ block transferred. 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 48-bit LBA of the sector where the error occurred. The host may then read the command block to determine what error has occurred, and on which sector. Table 110: Write Sector(s) Ext register write previous Task File Register 15:8 COMMAND DRIVE/HEAD LBA High LBA (47:40) LBA Mid LBA (39:32) LBA Low LBA (31:24) SECTOR COUNT 15:8 FEATURES nu current 7 6 5 4 3 2 1 0 34h 1 1 1 Drive LBA (23:16) LBA (15:8) LBA (7:0) 7:0 nu Reserved 10.46 Write Sector(s) without Erase (38h) 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 a normal write sector operation will occur. Table 111 defines the Write Sector(s) without Erase command Byte sequence. Table 111: Write Sector(s) without Erase Task File Register 7 COMMAND DRIVE/HEAD 1 CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 6 5 4 3 2 1 0 38h LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector number (LBA7:0) Sector Count nu 10.47 Write Verify (3Ch) 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. Table 112 defines the Write Verify command Byte sequence. Table 112: Write Verify Task File Register COMMAND DRIVE/HEAD CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 7 6 5 4 3 2 1 0 3Ch 1 LBA 1 D Head (LBA 27:24) Cylinder High (LBA23:16) Cylinder Low (LBA15:8) Sector number (LBA7:0) Sector Count nu Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 87 of 106 11 S.M.A.R.T Functionality The C-4x0 CF cards support the following SMART commands, determined by the Feature Register value. Table 113: S.M.A.R.T. Features Supported Feature Operation D0h SMART Read Data D1h SMART Read Attribute Thresholds D2h SMART Enable/Disable Attribute D8h SMART Enable Operations D9h Autosave SMART Disable Operations DAh SMART Return Status SMART commands with Feature Register values not mentioned in the above table are not supported, and will be aborted. 11.1 S.M.A.R.T. Enable / Disable operations This command enables / disables access to the SMART capabilities of the CF card. The state of SMART (enabled or disabled) is preserved across power cycles. Table 114: S.M.A.R.T. Enable / Disable operations (Feature D8h / D9h) Task File Register 7 6 5 4 3 COMMAND B0h DRIVE/HEAD 1 1 1 D CYLINDER HI C2h CYLINDER LOW 4Fh SECTOR NUM nu SECTOR COUNT nu FEATURES D8h / D9h 2 1 0 nu 11.2 S.M.A.R.T. Enable / Disable Attribute Autosave This command is effectively a no-operation as the data for the SMART functionality is always available and kept current in the CF card. Table 115: S.M.A.R.T. Enable / Disable Attribute Autosave (Feature D2h) Task File Register 7 6 5 4 3 COMMAND B0h DRIVE/HEAD 1 1 1 D CYLINDER HI C2h CYLINDER LOW 4Fh SECTOR NUM nu SECTOR COUNT 00h or F1h FEATURES D2h 2 1 0 1 0 nu 11.3 S.M.A.R.T. Read data This command returns one sector of SMART data. Table 116: S.M.A.R.T. read data (Feature D0h) Task File Register 7 COMMAND DRIVE/HEAD 1 CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 6 5 4 3 2 B0h 1 1 D nu C2h 4Fh nu nu D0h Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 88 of 106 The data structure returned is: Table 117: S.M.A.R.T. Data Structure Offset Value Description 0..1 0010h SMART structure version for firmware “1” 2..361 Attribute entries 1 to 30 (12 bytes each) 362 00h Off-line data collection status (no off-line data collection) 363 00h Self-test execution status byte (self-test completed) 364..365 0000h Total time to complete off-line data collection 366 00h 367 00h Off-line data collection capability (no off-line data collection) 368..369 0003h SMART capabilities 370 00h Error logging capability (no error logging) 371 00h 372 00h Short self-test routine recommended polling time 373 00h Extended self-test routine recommended polling time 374..385 00h Reserved 386..387 0004h SMART Swissbit Structure Version for SMART for firmware “1” 388..391 “Commit” counter 392..395 Wear Level Threshold 396 Global Bad Block Management active 397 Global Wear Leveling active 398..401 Average Flash Block Erase Count 402..405 Number of Flash Blocks involved into the Wear Leveling 406..510 00h 511 Data structure checksum The byte order for the multi-byte values is little Endian (least significant byte first), unless specified otherwise. There are 12 attributes that are defined in the CF card. These return their data in the attribute section of the SMART data, using a 12 byte data field. The field at offset 386 gives a version number for the contents of the SMART data structure. The byte at offset 396 is 0 if the bad block management is still working chip local, and 1 if the global bad block management has started. This happens when one of the flash chips runs out of spare blocks, in this case spare blocks from different flash chips are used. The byte at offset 397 is 0 if the wear leveling has not yet started its global operation and 1 if the global wear leveling has started. This happens when the most used chip has reached the erase count threshold defined in the Erase Count Attribute. In the following sections the Attributes for different SMART structure versions (Byte 0…1) are specified that may depend on the firmware. 11.3.1 SMART Attributes for SMART structure version 0010h 11.3.1.1 Spare Block Count Attribute This attribute gives information about the amount of available spare blocks. Table 118: Spare Block Count Offset Value 0 c4h 1..2 0003h 3 4 5..7 8..10 11 00h Attribute for SMART structure version 0010h Description Attribute ID – Reallocation Count Flags – Pre-fail type, value is updated during normal operation Attribute value. The value returned here is the minimum percentage of remaining spare blocks over all flash chips, i.e. min over all chips (100 × current spare blocks / initial spare blocks) Attribute value (worst value) sum of initial number of spare blocks for all flash chips sum of the current number of spare blocks for all flash chips Reserved This attribute is used for the SMART Return Status command. If the attribute value field is less than the spare block threshold, the SMART Return Status command will indicate a threshold exceeded condition. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 89 of 106 11.3.1.2 Spare Block Count Worst Chip Attribute Threshold This attribute gives information about the amount of available spare blocks on the flash chip that has the lowest current number of spare blocks. Table 119: Spare Block Count Attribute for SMART structure version 0010h Offset Value Description 0 D5h Attribute ID – Reallocation Count 1..2 0003h Flags – Pre-fail type, value is updated during normal operation 3 64h Attribute value. This value is fixed at 100. 4 5..7 64h 8..10 11 00h Attribute value (worst value) Initial number of spare blocks of the flash chip with the lowest current number of spare blocks Current number of spare blocks of the flash chip with the lowest current number of spare blocks Reserved 11.3.1.3 Erase Count Attribute This attribute gives information about the amount of flash block erases that have been performed. Table 120: Erase Count Attribute for SMART structure version 0010h Offset Value Description 0 E5h Attribute ID – Erase Count Usage (vendor specific) 1..2 0003h Flags – Pre-fail type, value is updated during normal operation 3 Attribute value. The value returned here is an estimation of the remaining card life, in percent, based on the number of flash block erases compared to the target number of erase cycles per block. 4 Attribute value (worst value) 5..10 Estimated total number of block erases 11 00h Reserved This attribute is used for the SMART Return Status command. If the attribute value field is less than the erase count threshold, the SMART Return Status command will indicate a threshold exceeded condition. 11.3.1.4 Total ECC Errors Attribute This attribute gives information about the total number of ECC errors that have occurred on flash read commands. This attribute is not used for the SMART Return Status command. Table 121: Total ECC Errors Attribute for SMART structure version 0010h Offset Value Description 0 CBh Attribute ID – Number of ECC errors 1..2 0002h Flags – Advisory type, value is updated during normal operation 3 64h Attribute value. This value is fixed at 100. 4 64h Attribute value (worst value) 5..8 Total number of ECC errors (correctable and uncorrectable) 9..10 11 00h Reserved 11.3.1.5 Correctable ECC Errors Attribute This attribute gives information about the total number of correctable ECC errors that have occurred on flash read commands. This attribute is not used for the SMART Return Status command. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 90 of 106 Table 122: Correctable ECC Errors Attribute for SMART structure version 0010h Offset Value Description 0 CCh Attribute ID – Number of corrected ECC errors 1..2 0002h Flags – Advisory type, value is updated during normal operation 3 64h Attribute value. This value is fixed at 100. 4 64h Attribute value (worst value) 5..8 Total number of correctable ECC errors 9..10 11 00h Reserved 11.3.1.6 UDMA CRC Errors Attribute This attribute gives information about the total number of UDMA CRC errors that have occurred on flash read commands. This attribute is not used for the SMART Return Status command. Table 123: UDMA CRC Errors Attribute for SMART structure version 0010h Offset Value Description 0 C7h Attribute ID – UDMA CRC error rate 1..2 0002h Flags – Advisory type, value is updated during normal operation 3 64h Attribute value. This value is fixed at 100. 4 64h Attribute value (worst value) 5..8 Total number of UDMA CRC errors 9..10 11 00h Reserved 11.3.1.7 Total Number of Reads Attribute This attribute gives information about the total number of flash read commands. This can be useful for the interpretation of the number of correctable or total ECC errors. This attribute is not used for the SMART Return Status command. Table 124: Total Number of Reads Attribute for SMART structure version 0010h Offset Value Description 0 E8h Attribute ID – Number of Reads (vendor specific) 1..2 0002h Flags – Advisory type, value is updated during normal operation 3 64h Attribute value. This value is fixed at 100. 4 64h Attribute value (worst value) 5..10 Total number of flash read commands 11 00h Reserved 11.3.1.8 Power On Count Attribute Table 125: Power On Count Attribute for SMART structure version 0010h Offset Value Description 0 0Ch Attribute ID – Power On Count 1..2 0002h Flags – Advisory type, value is updated during normal operation 3 64h Attribute value. This value is fixed at 100. 4 64h Attribute value (worst value) 5..8 Number of Power On cycles 9..10 11 00h Reserved 11.3.1.9 Total LBAs Written Attribute This attribute gives the total amount of data written to the disk, in units of 32MB (65536 sectors). This number can be converted to Terabytes written (TBW) by dividing the raw attribute value by 231. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 91 of 106 Table 126: Total LBAs Written Offset Value 0 F1h 1..2 0002h 3 64h 4 64h 5..10 11 00h for SMART structure version 0010h Description Attribute ID – Total LBAs Written (vendor specific) Flags – Advisory type, value is updated during normal operation Attribute value. This value is fixed at 100. Attribute value (worst value) Total number of LBAs written to the disk, divided by 65536 Reserved 11.3.1.10 Total LBAs Read Attribute This attribute gives the total amount of data read from the disk, in units of 32MB (65536 sectors). This number can be converted to Terabytes written (TBW) by dividing the raw attribute value by 231. Table 127: Total LBAs Written Offset Value 0 F2h 1..2 0002h 3 64h 4 64h 5..10 11 00h for SMART structure version 0010h Description Attribute ID – Total LBAs Read (vendor specific) Flags – Advisory type, value is updated during normal operation Attribute value. This value is fixed at 100. Attribute value (worst value) Total number of LBAs read from the disk, divided by 65536 Reserved 11.3.1.11 Anchor Block Status Attribute This attribute is a placeholder for future use in the firmware, it has no useful data yet. Table 128: Anchor Block Status for SMART structure version 0010h Offset Value Description 0 D6h Attribute ID – Anchor Block Status (vendor specific) 1..2 0002h Flags – Advisory type, value is updated during normal operation 3 64h Attribute value. This value is fixed at 100. 4 64h Attribute value (worst value) 5..10 11 00h Reserved 11.3.1.12 Trim Status Attribute This attribute gives percent ratio for the disk space that is currently in the trimmed state, reported as the attribute value. The range for the attribute value is 1 to 99, it does not reach 100 even for a fully trimmed card since the firmware-management blocks are also counted that do not have a trim status. Table 129: Trim Status for SMART structure version 0010h Offset Value Description 0 D7h Attribute ID – Trim Status (vendor specific) 1..2 0002h Flags – Advisory type, value is updated during normal operation 3 64h Attribute value 4 64h Attribute value (worst value) 5..10 11 00h Reserved Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 92 of 106 11.4 S.M.A.R.T. Read Attribute Thresholds This command returns one sector of SMART attribute thresholds. Table 130: S.M.A.R.T. read data (Feature D1h) Task File Register 7 COMMAND DRIVE/HEAD 1 CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES 6 5 4 3 2 1 0 B0h 1 1 D nu C2h 4Fh nu nu D1h The data structure returned is: Table 131: S.M.A.R.T. Data Structure Offset Value Description 0..1 0010h SMART structure version for Firmware “1” 2..361 Attribute threshold entries 1 to 30 (12 bytes each) 362..379 00h Reserved 380..510 00h 511 Data structure checksum Table 132: Spare Block Count Attribute Threshold Offset Value Description 0 C4h Attribute ID – Reallocation Count 1 19h* Spare Block Count Threshold (* typical 25%, could vary) 2..11 00h Reserved Table 133: Spare Block Count Worst Chip Attribute Threshold Offset Value Description 0 D5h Attribute ID – Reallocation Count 1 00h No threshold 2..11 00h Reserved Table 134: Erase Count Attribute Threshold Offset Value Description 0 E5h Attribute ID – Erase Count Usage (vendor specific) 1 01h* Erase Count Threshold (* typical 1%, could vary) 2..11 00h Reserved Table 135: Total ECC Errors Attribute Threshold Offset Value Description 0 CBh Attribute ID – Number of ECC errors 1 00h No threshold for the Total ECC Errors Attribute 2..11 00h Reserved Table 136: Correctable ECC Errors Attribute Threshold Offset Value Description 0 CCh Attribute ID – Number of corrected ECC errors 1 00h No threshold for the Correctable ECC Errors Attribute 2..11 00h Reserved Table 137: UDMA CRC Errors Attribute Offset Value Description 0 C7h Attribute ID – UDMA CRC error rate 1 00h No threshold for the UDMA CRC Errors Attribute 2..11 00h Reserved Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 93 of 106 Table 138: Total Number of Reads Attribute Offset Value Description 0 E8h Attribute ID – Number of Reads (vendor specific) 1 00h No threshold for the Total Number of Reads Attribute 2..11 00h Reserved Table 139: Power On Count Attribute Offset Value Description 0 0Ch Attribute ID – Power On Count 1 00h No threshold for the Power On Count Attribute 2..11 00h Reserved Table 140: Total LBAs Written Offset Value 0 F1h 1 00h 2..11 00h Attribute Description Attribute ID – Total LBAs Written (vendor specific) No threshold for the Total LBAs Written Attribute Reserved Table 141: Total LBAs Read Attribute Offset Value Description 0 F2h Attribute ID – Total LBAs Read (vendor specific) 1 00h No threshold for the Total LBAs Read Attribute 2..11 00h Reserved Table 142: Anchor Block Status Attribute Offset Value Description 0 D6h Attribute ID – Anchor Block Status (vendor specific) 1 00h No threshold for the Anchor Block Status Attribute 2..11 00h Reserved Table 143: Trim Status Attribute Offset Value Description 0 D7h Attribute ID – Trim Status (vendor specific) 1 00h No threshold for the Trim Status Attribute 2..11 00h Reserved 11.5 S.M.A.R.T. Return Status This command checks the device reliability status. If a threshold exceeded condition exists for either the Spare Block Count attribute or the Erase Count attribute, the device will set the Cylinder Low register to F4h and the Cylinder High register to 2Ch. If no threshold exceeded condition exists, the device will set the Cylinder Low register to 4Fh and the Cylinder High register to C2h. Table 144: S.M.A.R.T. read data (Feature D1h) Task File Register 7 COMMAND DRIVE/HEAD 1 CYLINDER HI CYLINDER LOW SECTOR NUM SECTOR COUNT FEATURES Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland 6 5 4 3 2 1 0 B0h 1 1 D nu C2h 4Fh nu nu DAh Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 94 of 106 12 CIS information (typical) 0000: Code 01, link 03 D9 01 FF - Device Info Tuple Link is 3 bytes I/O Device, No WPS, speed=250ns if no wait (One) 2 Kilobytes of address space End of CISTPL_DEVICE 000A: Code 1C, link 04 02 D9 01 FF - Other Conditions Info Tuple Link is 4 bytes Conditions: 3V operation is allowed, and WAIT is used I/O Device, No WPS, speed = 250 ns if no wait (One) 2 Kilobytes of address space End of CISTPL_DEVICE 0016: Code 18, link 02 DF 01 - JEDEC programming info Tuple Link is 2 bytes Device manufacturer ID Manufacturer specific info 001E: Code 20, link 04 00 00 00 00 - Manufacturer ID Tuple Link length is 4 bytes PC Card manufacturer code Manufacturer specific info 002A: Code 21, link 02 04 01 - Function ID Tuple Link length is 2 bytes Fixed disk drive R=0: no expansion ROM; P=1: configure at POST 0032: Code 22, link 02 01 01 Function Extension Tuple - Link length is 2 bytes Disk interface information PC card ATA interface 003A: Code 22, link 03 02 04 07 - Function Extension Tuple Link length is 3 bytes PC card ATA basic features D=0: single drive on card; U=0: no unique serial number; S=1: silicon device; V=0: no VPP required I=0: twin IOIS16# unspecified; E=0: index bit not emulated; N=0: I/O includes 0x3F7; Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 95 of 106 P=7: sleep, standby, idle supported 0044: Code 1A, link 05 01 07 00 02 07 - Configuration Tuple Link length is 5 bytes RFS: reserved; RMS: 1 byte register mask; RAS: 2 bytes base address Last configuration entry is 07H Configuration registers are located at 0200h Configuration registers 0 to 2 are present 0052: Code 1B, link 0B C0 C0 A1 27 55 4D 5D 75 08 00 20 - Configuration Tuple Link length is 11 bytes Memory mapped configuration, index=0; I=1: Interface byte follows; D=1: Default entry W=1: wait required; R=1: ready/busy active; P=0: WP not used; B=0: BVD1, BVD2 not used; Type=0: Memory interface M=1: misc info present; MS=1: 2 byte memory length; IR=0: no interrupt is used; IO=0: no I/O space is used; T=0: no timing info specified; Power=1: VCC info, no VPP DI: no power-down current; PI=1: peak current info; AI: no average current info; SI: no static current info; HV=1: max voltage info; LV=1: min voltage info; NV=1: nominal voltage info Nominal voltage 5.0V Minimum voltage 4.5V Maximum voltage 5.5V Peak current 80 mA Length of memory space is 2 Kbyte X=0: no more misc fields; P=1: power-down supported; RO=0: read/write media; A=0: audio not supported; T=0: no twins supported 006C: Code 1B, link 06 00 01 21 B5 1E 4D - Configuration Tuple Link length is 6 bytes Memory mapped configuration, index=0 Power=1: VCC info, no VPP PI=1: peak current info; NV=1: nominal voltage info X=1: extension byte present Nominal voltage 3.30V Peak current 45 mA 007C: Code 1B, link 0D C1 41 99 27 55 4D 5D 75 64 F0 FF FF 20 - Configuration Tuple Link length is 11 bytes Memory mapped configuration, index=0; I=1: Interface byte follows; D=1: Default entry W=1: wait required; R=1: ready/busy active; P=0: WP not used; B=0: BVD1, BVD2 not used; Type=0: Memory interface M=1: misc info present; MS=1: 2 byte memory length; IR=0: no interrupt is used; IO=0: no I/O space is used; T=0: no timing info specified; Power=1: VCC info, no VPP DI: no power-down current; PI=1: peak current info; AI: no average current info; SI: no static current info; HV=1: max voltage info; LV=1: min voltage info; NV=1: nominal voltage info Nominal voltage 5.0V Minimum voltage 4.5V Maximum voltage 5.5V Peak current 80 mA Length of memory space is 2 Kbyte X=0: no more misc fields; P=1: power-down supported; RO=0: read/write media; A=0: audio not supported; T=0: no twins supported Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 96 of 106 009A: Code 1B, link 06 01 01 21 B5 1E 4D - Configuration Tuple Link length is 6 bytes I/O mapped, index=1 Power=1: VCC info, no VPP PI=1: peak current info; NV=1: nominal voltage info X=1: extension byte present Nominal voltage 3.30V Peak current 45 mA 00AA: Code 1B, link 12 C2 41 99 27 55 4D 5D 75 EA 61 F0 01 07 F6 03 01 EE 20 - Configuration Tuple Link length is 18 bytes I/O mapped, index=2; I=1: Interface byte follows; D=1: Default entry W=0: wait not required; R=1: ready/busy active; P=0: WP not used; B=0: BVD1, BVD2 not used; Type=1: I/O interface M=1: misc info present; MS=0: no memory space info; IR=1: interrupt is used; IO=1: I/O space is used; T=0: no timing info specified; Power=1: VCC info, no VPP DI: no power-down current; PI=1: peak current info; AI: no average current info; SI: no static; current info; HV=1: max voltage info; LV=1: min voltage info; NV=1: nominal voltage info Nominal voltage 5.0V Minimum voltage 4.5V Maximum voltage 5.5V Peak current 80 mA R=1: range follows; S=1: support 16 bit hosts; E=1: support 8 bit hosts; IO=10: 10 lines decoded LS=1: 1 byte length; AS=2: 2 byte address; NR=1: 2 address ranges Address range 1 0x1F0 to 0x1F7 Address range 2 0x3F6 to 0x3F7 S=1: interrupt sharing logic; P=1: pulse mode supported; L=1: level mode supported; M=0: masks V..N not present; IRQN=14: use interrupt 14 X=0: no more misc fields; P=1: power-down supported; RO=0: read/write media; A=0: audio not supported; T=0: no twins supported 00D2: Code 1B, link 06 02 01 21 B5 1E 4D - Configuration Tuple Link length is 6 bytes I/O mapped, index=2 Power=1: VCC info, no VPP PI=1: peak current info; NV=1: nominal voltage info X=1: extension byte present Nominal voltage 3.30V Peak current 45 mA 00E2: Code 1B, link 12 C3 41 99 27 55 4D 5D 75 EA 61 70 01 07 76 03 01 EE 20 - Configuration Tuple Link length is 18 bytes I/O mapped, index=2; I=1: Interface byte follows; D=1: Default entry W=0: wait not required; R=1: ready/busy active; P=0: WP not used; B=0: BVD1, BVD2 not used; Type=1: I/O interface M=1: misc info present; MS=0: no memory space info; IR=1: interrupt is used; IO=1: I/O space is used; T=0: no timing info specified; Power=1: VCC info, no VPP DI: no power-down current; PI=1: peak current info; AI: no average current info; SI: no static; current info; HV=1: max voltage info; LV=1: min voltage info; NV=1: nominal voltage info Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 97 of 106 - Nominal voltage 5.0V Minimum voltage 4.5V Maximum voltage 5.5V Peak current 80 mA R=1: range follows; S=1: support 16 bit hosts; E=1: support 8 bit hosts; IO=10: 10 lines decoded LS=1: 1 byte length; AS=2: 2 byte address; NR=1: 2 address ranges Address range 1 0x170 to 0x177 Address range 2 0x376 to 0x377 S=1: interrupt sharing logic; P=1: pulse mode supported; L=1: level mode supported; M=0: masks V..N not present; IRQN=14: use interrupt 14 X=0: no more misc fields; P=1: power-down supported; RO=0: read/write media; A=0: audio not supported; T=0: no twins supported 010A: Code 1B, link 06 03 01 21 B5 1E 4D - Configuration Tuple Link length is 6 bytes I/O mapped, index=3 Power=1: VCC info, no VPP PI=1: peak current info; NV=1: nominal voltage info X=1: extension byte present Nominal voltage 3.30V Peak current 45 mA 011A: Code 1B, link 04 07 00 28 D3 - Configuration Tuple Link length is 4 bytes I/O mapped, index=7 No feature descriptions follow Swissbit specific data Swissbit specific data 0126: Code 14, link 00 - No link control Tuple Link length is 0 bytes 012A: Code 15, link 14*) 04 01 53 77 69 73 73 62 69 74 00 43 46 20 43 61 72 64 00 FF *) - Level 1 version/product info Link length is 21 bytes PCMCIA2.0/JEIDA4.1 PCMCIA2.0/JEIDA4.1 Product name: “Swissbit” “CF Card” *) can vary in different configurations The length of the strings will affect the following start addresses 0156: Code FF, link FF - End of CISTPL_VERS_1 End of CIS Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 98 of 106 13 Package mechanical Figure 21: Type I CompactFlashTM Memory Card Dimensions Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 99 of 106 14 Declaration of Conformity We Manufacturer: Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland declare under our sole responsibility that the product Product Type: Brand Name: Product Series: Part Number: CompactFlash™ Card SWISSMEMORY™ CompactFlash™ C-440 SFCFxxxxHxxxxxx-x-xx-xxx-xxx to which this declaration relates is in conformity with the following directives: EN55022:2006 +A1:r B FCC47 Part 15 Subpart B §15.111 EN 61000-4-2:2009 EN 61000-4-3:2006+A1:2008+A2:2010 EN 61000-6-2:2005 2012/19/EC Category 3 (WEEE) following the provisions of Directive Electromagnetic compatibility 2004/108/EC Restriction of the use of certain hazardous substances 2011/65/EU Swissbit AG, February 2014 Manuela Kögel Head of Quality Management Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 100 of 106 15 RoHS and WEEE update from Swissbit Dear Valued Customer, We at Swissbit place great value on the environment and thus pay close attention to the diverse aspects of manufacturing environmentally and health friendly products. The European Parliament and the Council of the European Union have published two Directives defining a European standard for environmental protection. This states that CompactFlash Cards must comply with both Directives in order for them to be sold on the European market:  RoHS – Restriction of Hazardous Substances  WEEE – Waste Electrical and Electronic Equipment Swissbit would like to take this opportunity to inform our customers about the measures we have implemented to adapt all our products to the European norms. What is the WEEE Directive (2012/19/EC)? The Directive covers the following points:    Prevention of WEEE Recovery, recycling and other measures leading to a minimization of wastage of electronic and electrical equipment Improvement in the quality of environmental performance of all operators involved in the EEE life cycle, as well as measures to incorporate those involved at the EEE waste disposal points What are the key elements? The WEEE Directive covers the following responsibilities on the part of producers: Producers must draft a disposal or recovery scheme to dispose of EEE correctly. Producers must be registered as producers in the country in which they distribute the goods. They must also supply and publish information about the EEE categories. Producers are obliged to finance the collection, treatment and disposal of WEEE. Inclusion of WEEE logos on devices In reference to the Directive, the WEEE logo must be printed directly on all devices that have sufficient space. «In exceptional cases where this is necessary because of the size of the product, the symbol of the WEEE Directive shall be printed on the packaging, on the instructions of use and on the warranty» (WEEE Directive 2012/19/EC) When does the WEEE Directive take effect? The Directive came into effect internationally on July 04, 2012. What is RoHS (2011/65/EU)? The goals of the Directive are to:   Place less of a burden on human health and to protect the environment by restricting the use of hazardous substances in new electrical and electronic devices To support the WEEE Directive (see above) RoHS enforces the restriction of the following 6 hazardous substances in electronic and electrical devices:      Lead (Pb) – no more than 0.1% by weight in homogeneous materials Mercury (Hg) – no more than 0.1% by weight in homogeneous materials Cadmium (Cd) – no more than 0.01% by weight in homogeneous materials Chromium (Cr6+) – no more than 0.1% by weight in homogeneous materials PBB, PBDE – no more than 0.1% by weight in homogeneous materials Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 101 of 106 Swissbit is obliged to minimize the hazardous substances in the products. According to part of the Directive, manufacturers are obliged to make a self-declaration for all devices with RoHS. Swissbit carried out intensive tests to comply with the self-declaration. We have also already taken steps to have the analyses of the individual components guaranteed by third-party companies. Swissbit carried out the following steps during the year with the goal of offering our customers products that are fully compliant with the RoHS Directive.  Preparing all far-reaching directives, logistical enhancements and alternatives regarding the full understanding and introduction of the RoHS Directive’s standards  Checking the components and raw materials: o o   Replacing non-RoHS-compliant components and raw materials in the supply chain Cooperating closely with suppliers regarding the certification of all components and raw materials used by Swissbit Modifying the manufacturing processes and procedures o Successfully adapting and optimizing the new management-free integration process in the supply chain o Updating existing production procedures and introducing the new procedures to support the integration process and the sorting of materials Carrying out the quality process o Performing detailed function and safety tests to ensure the continuous high quality of the Swissbit product line When does the RoHS Directive take effect? As of June 08, 2011 only new electrical and electronic devices with approved quantities of RoHS will be put on the market. When will Swissbit be offering RoHS-approved products? Swissbit’s RoHS-approved products are available now. Please contact your Swissbit contact person to find out more about exchanging your existing products for RoHS-compliant devices. For your attention We understand that packaging and accessories are not EEE material and are therefore not subject to the WEEE or RoHS Directives. Contact details: Swissbit AG Industriestrasse 4-8 CH 9552 Bronschhofen Tel: +41 71 913 03 03 – Fax: +41 71 913 03 15 E-mail: info@swissbit.com – Website: www.swissbit.com Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 102 of 106 16 Part Number Decoder S F 1 2 CF 32GB 3 4 H 2 B U 4 TO 5 6 7 8 9 10 Manuf. Memory Type Product Type Density Form Factor Product Generation Memory Organization - I 11 - Q T 12 13 - 517 14 - STD 15 Option Configuration Manuf. Code: Flash Mode Manuf. Code: Flash Package Temp. Option Flash vendor Code Number of flash chips Technology 16.1 Manufacturer Swissbit code S Flash F Compact Flash CF 16.2 Memory Type 16.3 Product Type 16.4 Density 2 GByte 4 GByte 8 GByte 16 GByte 32 GByte 64GByte 128 GByte 2048 4096 8192 16GB 32GB 64GB 128G 16.5 Platform Compact Flash H First generation Second generation 1 2 x8 B 16.6 Product Generation 16.7 Memory Organization 16.8 Controller type C-400 Series CF Card U 16.9 Number of Flash Chip 1 Flash 2 Flash 4 Flash 1 2 4 Toshiba TO 16.10 Flash Code Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 103 of 106 Micron Samsung MT SA 16.11 Temp. Option Industrial Temp. Range -40°C …+85°C Standard Temp Range 0°C …+70°C I C SLC MONO SLC DDP SLC QDP SLC ODP M D Q N 16.12 DIE Classification (single die package) (dual die package) (quad die package) (Octal die package) 16.13 PIN Mode Normal nCE & R/nB - TSOP Dual nCE & Dual R/nB - TSOP Quad nCE & Quad R/nB - TSOP Normal nCE & R/nB – LGA Dual nCE & Dual R/nB – LGA Quad nCE & Quad R/nB – LGA S T U A B C 16.14 Compact Flash XYZ X CFC Mode Removable/fix True IDE PC Card Mode Mode Removable Fix Fix Removable Fix Removable Fix Removable PIO DMA support X yes yes yes yes yes yes yes yes yes - 1 2 3 4 5* 6 *default Y  Firmware revision per product generation FW Revision First FW Revision Second FW Revision Y 1 2 Z  max performance index Max PIO Mode / CIS PIO4 (MDMA2 if enabled) PIO6 (MDMA4 if enabled) UDMA4 (PIO6, MDMA4) UDMA6 (MDMA2, PIO4) UDMA6 (MDMA4, PIO6) Z 1 2 3 6 7 16.15 Option Standard Only LBA28 command support Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland STD L28 Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 104 of 106 17 Swissbit CF Label specification 17.1 Front side label 17.2 Back side label 17.2.1 Label content o o o o o o o o o o Swissbit logo CF logo Part number (defined by the data sheet) Barcode as assembly lot number (Code128) Lot number CE logo RoHS logo WEEE logo Manufacturing date “Made in Germany” Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 105 of 106 18 Revision History Table 145: Document Revision History Date March 28, 2012 December 18, 2012 May 30, 2013 July 26, 2013 September 25, 2013 February 06, 2014 Revision 1.00 1.10 1.20 1.21 1.22 1.23 Details Initial release New CE Declaration, new picture of the back side label Added FW 2, PC-Card specification limitation Added Trim Status attribute 3.3V operating voltage expanded to ±10% Added LBA28 differences to STD Disclaimer: No part of this document may be copied or reproduced in any form or by any means, or transferred to any third party, without the prior written consent of an authorized representative of Swissbit AG (“SWISSBIT”). The information in this document is subject to change without notice. SWISSBIT assumes no responsibility for any errors or omissions that may appear in this document, and disclaims responsibility for any consequences resulting from the use of the information set forth herein. SWISSBIT makes no commitments to update or to keep current information contained in this document. The products listed in this document are not suitable for use in applications such as, but not limited to, aircraft control systems, aerospace equipment, submarine cables, nuclear reactor control systems and life support systems. Moreover, SWISSBIT does not recommend or approve the use of any of its products in life support devices or systems or in any application where failure could result in injury or death. If a customer wishes to use SWISSBIT products in applications not intended by SWISSBIT, said customer must contact an authorized SWISSBIT representative to determine SWISSBIT willingness to support a given application. The information set forth in this document does not convey any license under the copyrights, patent rights, trademarks or other intellectual property rights claimed and owned by SWISSBIT. The information set forth in this document is considered to be “Proprietary” and “Confidential” property owned by SWISSBIT. ALL PRODUCTS SOLD BY SWISSBIT ARE COVERED BY THE PROVISIONS APPEARING IN SWISSBIT’S TERMS AND CONDITIONS OF SALE ONLY, INCLUDING THE LIMITATIONS OF LIABILITY, WARRANTY AND INFRINGEMENT PROVISIONS. SWISSBIT MAKES NO WARRANTIES OF ANY KIND, EXPRESS, STATUTORY, IMPLIED OR OTHERWISE, REGARDING INFORMATION SET FORTH HEREIN OR REGARDING THE FREEDOM OF THE DESCRIBED PRODUCTS FROM INTELLECTUAL PROPERTY INFRINGEMENT, AND EXPRESSLY DISCLAIMS ANY SUCH WARRANTIES INCLUDING WITHOUT LIMITATION ANY EXPRESS, STATUTORY OR IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. ©2014 SWISSBIT AG All rights reserved. Swissbit AG Industriestrasse 4 CH-9552 Bronschhofen Switzerland Swissbit reserves the right to change products or specifications without notice. www.swissbit.com industrial@swissbit.com Revision: 1.23 C-440_data_sheet_CF-HxBU_Rev123.doc Page 106 of 106
SFCF64GBH2BU4TO-C-NU-527-STD 价格&库存

很抱歉,暂时无法提供与“SFCF64GBH2BU4TO-C-NU-527-STD”相匹配的价格&库存,您可以联系我们找货

免费人工找货