CompactFlash Association
P.O. Box 51537
Palo Alto, CA 94303
Tel: 650-843-1220
Fax: 650-493-1871
email: infoflash@compactflash.org
www.compactflash.org
The information in this specification is subject to change without notice.
Use of this specification for product design requires an executed license agreement from the CompactFlash
Association.
The CompactFlash Association shall not be liable for technical or editorial errors or omissions contained herein; nor
for incidental or consequential damages resulting from the furnishing, performance, or use of this material.
All parts of the CompactFlash Specification are protected by copyright law and all rights are reserved. This
documentation may not, in whole or in part, be copied, photocopied, reproduced, translated, or reduced to any
electronic medium or machine readable form without prior consent, in writing, from the CompactFlash Association.
The CFA logo is a trademark of the CompactFlash Association.
Product names mentioned herein are for identification purposes only and may be trademarks and/or registered
trademarks of their respective companies.
© 1998-99, CompactFlash Association. All rights reserved.
Rev. 1.4 7/99 Printed in U.S.A.
T
ABLE OF
C
ONTENTS
CF+ & CF
S
PECIFICATION
R
EV
. 1.4
© 1998-99
C
OMPACT
F
LASH
A
SSOCIATION
v
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 ...............................................................................................................31
T
ABLE OF
C
ONTENTS
CF+
&
CF S
PECIFICATION
R
EV
. 1.4
© 1998-99
C
OMPACT
F
LASH
A
SSOCIATION
vi
4.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) .................................................59
T
ABLE OF
C
ONTENTS
CF+ & CF
S
PECIFICATION
R
EV
. 1.4
© 1998-99
C
OMPACT
F
LASH
A
SSOCIATION
vii
6.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
6.2 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.........................................................................................77
- 1
- 2
前往页