CF+and compactFlash specification(CF卡规格说)pdf V1.4
The multimediacard System Specification
The CompactFlash Association (CFA) was established in October 1995 with the premise that
CompactFlash (CF) technology would enable the introduction of a new class of advanced, small
lightweight, low power mobile products that would significantly increase the productivity and
enhance the lifestyles of millions of people.
The concept behind CF technology was simple: to capture, retain and transport data, audio and
images on CompactFlash Storage Cards. CF Storage Cards provided the capability to easily
transfer all types of digital information and software between a large variety of digital systems.
The CFA approved and published the CompactFlash standard. This vendor-independent
specification enabled users to develop CF products that function correctly and are compatible
with future CF designs, eliminating compatibility issues.
Now the CFA has developed the CF+ specification to expand the CF concept beyond flash data
storage and include I/O devices and magnetic disk data storage. The CF+ specification also
includes the original Type I (3.3mm thick) card and newer Type II (5mm thick) cards. While
CompactFlash and many I/O devices can fit into the Type I card, the Type II cards enable higher
capacity CompactFlash cards, magnetic disk cards and many additional I/O cards.
1 GENERAL............................................................................................................................................1
1.1 Introduction...................................................................................................................................1
1.2 CFA Goals and Objectives ............................................................................................................1
1.3 Overview of CompactFlash Storage Card ...................................................................................1
1.4 Related Documentation..................................................................................................................2
1.5 Compatibility Requirements .........................................................................................................2
2 SCOPE..................................................................................................................................................3
2.1 Elements of this Specification........................................................................................................3
2.2 Card Physical.................................................................................................................................3
2.3 Electrical Interface........................................................................................................................3
2.4 Metaformat ....................................................................................................................................3
2.5 Software Interface.........................................................................................................................3
2.6 CompactFlash Adapter..................................................................................................................3
3 CARD PHYSICAL..............................................................................................................................4
3.1 General Description .......................................................................................................................4
3.1.1 CompactFlash Storage Card ......................................................................................................4
3.1.2 CF+ Card ..................................................................................................................................4
3.2 CompactFlash Storage Card and CF+ Card Physical Specifications .......................................5
3.3 Connector Interface Specifications...............................................................................................8
3.3.1 CF/CF+ Card Connector............................................................................................................8
3.3.2 Host Connector ..........................................................................................................................9
4 ELECTRICAL INTERFACE ...........................................................................................................19
4.1 Physical Description....................................................................................................................19
4.1.1 Pin Assignments and Pin Type ................................................................................................19
4.2 Electrical Description...................................................................................................................19
4.3 Electrical Specification ................................................................................................................26
4.3.1 Current Measurement...............................................................................................................27
4.3.2 Input Leakage Current .............................................................................................................27
4.3.3 Input Characteristics ................................................................................................................28
4.3.4 Output Drive Type ...................................................................................................................28
4.3.5 Output Drive Characteristics....................................................................................................29
4.3.6 Signal Interface ........................................................................................................................30
4.3.7 Interface/Bus Timing ...............................................................................................................314.3.8 Attribute Memory Read Timing Specification ........................................................................31
4.3.9 Configuration Register (Attribute Memory) Write Timing Specification ...............................32
4.3.10 Common Memory Read Timing Specification ........................................................................33
4.3.11 Common Memory Write Timing Specification .......................................................................34
4.3.12 I/O Input (Read) Timing Specification ....................................................................................35
4.3.13 I/O Output (Write) Timing Specification.................................................................................36
4.3.14 True IDE Mode I/O Input (Read) Timing Specification..........................................................37
4.3.15 True IDE Mode I/O Output (Write) Timing Specification ......................................................38
4.4 Card Configuration.....................................................................................................................39
4.4.1 Single Function CF+ Cards......................................................................................................39
4.4.2 Multiple Function CF+ Cards ..................................................................................................39
4.4.3 Attribute Memory Function .....................................................................................................42
4.4.4 Configuration Option Register (Base + 00h in Attribute Memory) .........................................43
4.4.5 Card Configuration and Status Register (Base + 02h in Attribute Memory) ...........................45
4.4.6 Pin Replacement Register (Base + 04h in Attribute Memory) ................................................46
4.4.7 Socket and Copy Register (Base + 06h in Attribute Memory) ................................................47
4.4.8 I/O Base Register (0, 1) ...........................................................................................................47
4.4.9 I/O Limit Register ....................................................................................................................48
4.5 I/O Transfer Function..................................................................................................................49
4.5.1 I/O Function............................................................................................................................49
4.6 Common Memory Transfer Function........................................................................................50
4.6.1 Common Memory Function.....................................................................................................50
4.7 True IDE Mode I/O Transfer Function .....................................................................................51
4.7.1 True IDE Mode I/O Function...................................................................................................51
5 METAFORMAT................................................................................................................................52
5.1 Metaformat Overview..................................................................................................................52
5.2 Metaformat Requirements ..........................................................................................................52
6 SOFTWARE INTERFACE...............................................................................................................53
6.1 CF-ATA Drive Register Set Definition and Protocol................................................................53
6.1.1 I/O Primary and Secondary Address Configurations...............................................................54
6.1.2 Contiguous I/O Mapped Addressing........................................................................................55
6.1.3 Memory Mapped Addressing ..................................................................................................56
6.1.4 True IDE Mode Addressing.....................................................................................................57
6.1.5 CF-ATA Registers ...................................................................................................................57
6.1.5.1 Data Register (Address - 1F0h[170h];Offset 0,8,9)..........................................................58
6.1.5.2 Error Register (Address - 1F1h[171h]; Offset 1, 0Dh Read Only)...................................59
6.1.5.3 Feature Register (Address - 1F1h[171h]; Offset 1, 0Dh Write Only) ..............................59
6.1.5.4 Sector Count Register (Address - 1F2h[172h]; Offset 2) .................................................596.1.5.5 Sector Number (LBA 7-0) Register (Address - 1F3h[173h]; Offset 3) ............................59
6.1.5.6 Cylinder Low (LBA 15-8) Register (Address - 1F4h[174h]; Offset 4) ............................59
6.1.5.7 Cylinder High (LBA 23-16) Register (Address - 1F5h[175h]; Offset 5) .........................60
6.1.5.8 Drive/Head (LBA 27-24) Register (Address 1F6h[176h]; Offset 6) ................................60
6.1.5.9 Status & Alternate Status Registers (Address 1F7h[177h]&3F6h[376h]; Offsets 7 & Eh)61
6.1.5.10 Device Control Register (Address - 3F6h[376h]; Offset Eh) ...........................................62
6.1.5.11 Card (Drive) Address Register (Address 3F7h[377h]; Offset Fh)....................................63
CF-ATA Command Description.................................................................................................64
6.2.1 CF-ATA Command Set ...........................................................................................................65
6.2.1.1 Check Power Mode - 98h or E5h......................................................................................66
6.2.1.2 Execute Drive Diagnostic - 90h........................................................................................67
6.2.1.3 Erase Sector(s) - C0h ........................................................................................................68
6.2.1.4 Format Track - 50h ...........................................................................................................68
6.2.1.5 Identify Drive – Ech .........................................................................................................69
6.2.1.5.1 General Configuration................................................................................................70
6.2.1.5.2 Default Number of Cylinders .....................................................................................70
6.2.1.5.3 Default Number of Heads ..........................................................................................70
6.2.1.5.4 Number of Unformatted Bytes per Track...................................................................70
6.2.1.5.5 Number of Unformatted Bytes per Sector..................................................................70
6.2.1.5.6 Default Number of Sectors per Track ........................................................................70
6.2.1.5.7 Number of Sectors per Card.......................................................................................71
6.2.1.5.8 Memory Card Serial Number .....................................................................................71
6.2.1.5.9 Buffer Type ................................................................................................................71
6.2.1.5.10 Buffer Size .................................................................................................................71
6.2.1.5.11 ECC Count .................................................................................................................71
6.2.1.5.12 Firmware Revision .....................................................................................................71
6.2.1.5.13 Model Number ...........................................................................................................71
6.2.1.5.14 Read/Write Multiple Sector Count.............................................................................71
6.2.1.5.15 Double Word Support ................................................................................................71
6.2.1.5.16 Capabilities.................................................................................................................72
6.2.1.5.17 PIO Data Transfer Cycle Timing Mode .....................................................................72
6.2.1.5.18 DMA Data Transfer Cycle Timing Mode ..................................................................72
6.2.1.5.19 Translation Parameters Valid .....................................................................................72
6.2.1.5.20 Current Number of Cylinders, Heads, Sectors/Track.................................................72
6.2.1.5.21 Current Capacity ........................................................................................................72
6.2.1.5.22 Multiple Sector Setting...............................................................................................72
6.2.1.5.23 Total Sectors Addressable in LBA Mode...................................................................72
6.2.1.5.24 Security Status............................................................................................................73
6.2.1.5.25 Power Requirement Description ................................................................................73
6.2.1.6 Idle - 97h or E3h ...............................................................................................................74
6.2.1.7 Idle Immediate - 95h or E1h .............................................................................................74
6.2.1.8 Initialize Drive Parameters - 91h ......................................................................................75
6.2.1.9 Read Buffer - E4h.............................................................................................................75
6.2.1.10 Read Multiple - C4h .........................................................................................................76
6.2.1.11 Read Long Sector - 22h or 23h.........................................................................................776.2.1.12 Read Sector(s) - 20h or 21h ..............................................................................................77
6.2.1.13 Read Verify Sector(s) - 40h or 41h...................................................................................78
6.2.1.14 Recalibrate - 1Xh..............................................................................................................78
6.2.1.15 Request Sense - 03h..........................................................................................................79
6.2.1.16 Security Disable Password - F6h ......................................................................................80
6.2.1.17 Security Erase Prepare - F3h.............................................................................................81
6.2.1.18 Security Erase Unit - F4h..................................................................................................81
6.2.1.19 Security Freeze Lock - F5h...............................................................................................82
6.2.1.20 Security Set Password - F1h .............................................................................................82
6.2.1.21 Security Unlock - F2h.......................................................................................................84
6.2.1.22 Seek - 7Xh ........................................................................................................................84
6.2.1.23 Set Features – Efh .............................................................................................................85
6.2.1.24 Set Multiple Mode - C6h ..................................................................................................86
6.2.1.25 Set Sleep Mode- 99h or E6h .............................................................................................87
6.2.1.26 Standby - 96h or E2h ........................................................................................................87
6.2.1.27 Standby Immediate - 94h or E0h ......................................................................................88
6.2.1.28 Translate Sector - 87h .......................................................................................................88
6.2.1.29 Wear Level - F5h ..............................................................................................................89
6.2.1.30 Write Buffer - E8h ............................................................................................................90
6.2.1.31 Write Long Sector - 32h or 33h ........................................................................................90
6.2.1.32 Write Multiple Command - C5h.......................................................................................91
6.2.1.33 Write Multiple without Erase – CDh................................................................................92
6.2.1.34 Write Sector(s) - 30h or 31h .............................................................................................92
6.2.1.35 Write Sector(s) without Erase - 38h..................................................................................93
6.2.1.36 Write Verify - 3Ch............................................................................................................93
6.2.2 Error Posting ............................................................................................................................94
6.2.3 Security Mode Feature Set.......................................................................................................95
6.2.3.1 Security Mode Default Setting..........................................................................................95
6.2.3.2 Initial Setting of the User Password..................................................................................95
6.2.3.3 Security Mode Operation From Power-On or Hardware Reset ........................................95
6.2.3.4 Frozen Mode.....................................................................................................................95
6.2.3.5 User Password Lost ..........................................................................................................96
6.2.3.6 Attempt Limit for SECURITY UNLOCK Command ......................................................96
7 COMPACTFLASH ADAPTER........................................................................................................99
7.1 Overview ......................................................................................................................................99
7.2 CompactFlash Adapter Specifications .......................................................................................99
7.3 Electrical Differences Between the Type 1 CompactFlash Storage/CF+ Card and the Type 1
CompactFlash Adapter..............................................................................................................101
7.3.1 CompactFlash Adapter Card Resistance................................................................................102
7.4 CF Adapter Design Considerations ..........................................................................................102
8 APPENDIX.......................................................................................................................................103
0