smc032af STMicroelectronics, smc032af Datasheet
smc032af
Related parts for smc032af
smc032af Summary of contents
Page 1
... Endurance: > 2,000,000 Erase/Program cycles – Number of card insertions/removals: > 10,000 Table 1. Device summary Reference Part number SMC032AF SMC064AF SMCxxxAF SMC128AF SMC256AF SMC512AF 1. Obsolete part number. November 2007 32 Mbyte, 64 Mbyte, 128 Mbyte, 256 Mbyte and TM High performance – 16.6 Mbit/s transfer rate – ...
Page 2
Contents Contents 1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 3
SMCxxxAF 6.6 I/O transfer function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 4
Contents 8.8.8 8.9 Status & alternate status registers (address 1F7h [177h] & 3F6h [376h]; offsets 7 & Eh) 48 8.9.1 8.9.2 8.9.3 8.9.4 8.9.5 8.9.6 8.9.7 8.9.8 8.10 Device control register (address 3F6h [376h]; offset Eh ...
Page 5
SMCxxxAF 9.4.7 9.4.8 9.4.9 9.4.10 9.4.11 9.4.12 9.4.13 9.4.14 9.4.15 9.4.16 9.4.17 9.4.18 9.4.19 9.5 Idle command (97h or E3h ...
Page 6
Contents 9.26 Write Sector(s) command (30h or 31h 9.27 Write Sector(s) without Erase ...
Page 7
SMCxxxAF List of tables Table 1. Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 8
List of tables Table 49. Diagnostic codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 9
SMCxxxAF List of figures Figure 1. CompactFlash memory card block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 10
... PCMCIA memory mode (Personal Computer Memory Card International Association standard, JEIDA in Japan) and to the ATA specification when operating in True IDE mode. CompactFlash cards can be used with passive adapters in a PC-card type II or type III socket. The card has an internal intelligent controller which manages interface protocols, data storage and retrieval as well as error correcting code (ECC), defect handling, diagnostics and clock control ...
Page 11
... CompactFlash card in PIO mode 4, cycle time 120 ns. Table 3. Current consumption Current consumption (typ) Read Write Standby Sleep mode 1. All values are typical at 25 °C and nominal supply voltage and refer to 256-Mbyte CompactFlash card. Table 4. Environmental specifications Environmental specifications Temperature Humidity (non-condensing) Salt water spray Vibration (peak -to-peak) Shock 1 ...
Page 12
Capacity specification 2 Capacity specification Table 6 shows the specific capacity for the various CF models and the default number of heads, sector/tracks and cylinders. Table 6. CF capacity specification Model No Capacity Default_cylinders Default_heads SMC032 32 Mbyte 492 (0x1EC) ...
Page 13
SMCxxxAF 3 Card physical The CompactFlash 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). CompactFlash memory card. ...
Page 14
Electrical interface 4 Electrical interface 4.1 Electrical description The CompactFlash memory card operates in three basic modes: PC card ATA using I/O mode, PC card ATA using memory mode, True IDE mode, which is compatible with most disk drives. The ...
Page 15
SMCxxxAF Table 8. Pin assignment and pin type (continued) PC card memory mode Pin Signal Pin num name type 20 A00 I 21 D00 I/O 22 D01 I/O 23 D02 I –CD2 O 26 –CD1 O ...
Page 16
Electrical interface Table 9. Signal description Signal name Direction A10 to A0 (PC card memory mode) I A10 to A0 (PC card I/O mode (True IDE mode) BVD1 (PC card memory mode) –STSCHG I/O (PC card I/O ...
Page 17
SMCxxxAF Table 9. Signal description (continued) Signal name Direction –IORD (PC card memory mode) –IORD I (PC card I/O mode) –IORD (True IDE mode) –CD1, –CD2 (PC card memory mode) –CD1, –CD2 O (PC card I/O mode) –CD1, –CD2 (True ...
Page 18
Electrical interface Table 9. Signal description (continued) Signal name Direction READY (PC card memory mode) O –IREQ (PC card I/O mode) INTRQ (True IDE mode) –REG (PC card memory mode) I –REG (PC card I/O mode) Reserved (True IDE mode) ...
Page 19
SMCxxxAF Table 9. Signal description (continued) Signal name Direction –WE (PC card memory mode) –WE I (PC card I/O mode) –WE (True IDE mode) WP (PC card memory mode) –IOIS16 O (PC card I/O mode) –IOCS16 (True IDE mode) Pin ...
Page 20
Electrical interface 4.2 Electrical specification Table 10 defines the DC characteristics for the CompactFlash memory card. Unless otherwise stated, conditions are ± 10 3.3 V ± 10% CC -40 ° °C ...
Page 21
SMCxxxAF Table 13. Input characteristics Type Parameter Input voltage 1 CMOS Input voltage 2 CMOS Input voltage CMOS 3 Schmitt Trigger Table 14. Output drive type Type OTx OZx OPx ONx 1. x refers to the characteristics described in drive ...
Page 22
Command interface 5 Command interface There are two types of bus cycles and timing sequences that occur in the PCMCIA type interface, direct mapped I/O transfer and memory access. Table 19, Table 20, Figure 2, Figure 3, write timing diagrams. ...
Page 23
... Figure 3. Configuration register (attribute memory) Write timing diagram –REG Address Inputs tsu(A) –WE –CE2/–CE1 – D15 ( signifies data provided by the system to the CompactFlash card. IN Table 17. Configuration register (attribute memory) Write timing Symbol IEEE symbol tc(W) t AVAV tw(WE) t WLWH tsu(A) ...
Page 24
Command interface Figure 4. Common memory Read timing diagram Address Inputs –REG –CE2/–CE1 – D15 (D ) OUT 1. D means data provided by the CompactFlash memory card to the system. OUT Table 18. Common memory Read timing ...
Page 25
SMCxxxAF Figure 5. Common memory Write timing diagram Address Inputs –REG –CE2/–CE1 – D15 ( signifies data provided by the system to the CompactFlash memory card. IN Table 19. Common memory Write timing Symbol ...
Page 26
Command interface Figure 6. I/O Read timing diagram Address Inputs –REG –CE2/–CE1 tsuA(IORD) –IORD –INPACK tdfIOIS16(ADR) –IOIS16 D0 to D15 1. D signifies data provided by the CompactFlash memory card or to the system. OUT (1) Table 20. I/O Read ...
Page 27
SMCxxxAF Figure 7. I/O Write timing diagram Address Inputs –REG –CE2/–CE1 tsuA(IOWR) –IOWR –IOIS16 D0 to D15 ( signifies data provided by the system to the CompactFlash memory card or CF+ card. IN (1) Table 21. ...
Page 28
Command interface The timing diagram for True IDE mode of operation in this section is 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. ...
Page 29
SMCxxxAF Table 22. True IDE mode I/O Read/Write timing diagram (1) Symbol Parameter (2) t Cycle time (min) 0 Address Valid to -IORD/-IOWR t 1 setup (min) (2) t -IORD/-IOWR (min) 2 -IORD/-IOWR (min) register (8 ( bit) ...
Page 30
Card configuration 6 Card configuration The CompactFlash memory card is identified by information in the card information structure (CIS). The card has four Configuration registers Configuration Option register Pin Replacement register Card Configuration and Status register Socket and Copy register ...
Page 31
SMCxxxAF Table 24. CompactFlash memory card configuration registers decoding –CE2 –CE1 –REG –OE –WE A10 ...
Page 32
Card configuration 6.2 Card Configuration and Status register (base + 02h in attribute memory) The Card Configuration and Status register contains information about the card’s status (see Table 27). 6.2.1 Changed Indicates that one or both of the pin replacement ...
Page 33
SMCxxxAF 6.3 Pin Replacement register (base + 04h 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 6.3.1 CReady This bit is ...
Page 34
Card configuration 6.4 Socket and Copy register (base + 06h in attribute memory) This register contains additional configuration information which identifies the card from other cards. This register is always written by the system before writing the Configuration Option register ...
Page 35
SMCxxxAF 6.5 Attribute memory function Attribute memory is a space where identification and configuration information are stored, and is limited to 8 bit wide accesses at even addresses. The Card Configuration registers are also located here, the base address of ...
Page 36
Card configuration 6.6 I/O transfer function The I/O transfer to or from the card can be either bits. When a 16 bit accessible port is addressed, the a 16 bit transfer is attempted, and the generate a ...
Page 37
SMCxxxAF 6.7 Common memory transfer function The common memory transfer to or from the card permits both bit access to all of the common memory addresses. (see Table 33. Common memory function Function code –REG Standby mode ...
Page 38
Card configuration 6.8 True IDE mode I/O function The card can be configured in a True IDE mode of operation configured in this mode only when the –OE signal is grounded by the host during the power-off to ...
Page 39
SMCxxxAF 7 Software interface 7.1 CF-ATA Drive register set definition and protocol The CompactFlash memory card can be configured as a high performance I/O device through: Standard PC-AT disk I/O address spaces – 1F0h-1F7h, 3F6h-3F7h (primary); – 170h-177h, 376h-377h (secondary) ...
Page 40
Software interface 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 ...
Page 41
SMCxxxAF 7.3 Contiguous I/O mapped addressing (conf = 1) 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 ...
Page 42
Software interface 7.4 I/O primary and secondary address configurations (conf = 2,3) When the system decodes the primary and secondary address configurations, the registers are accessed in the block of I/O space as shown in As for the memory mapped ...
Page 43
SMCxxxAF 7.5 True IDE mode addressing When the card is configured in the True IDE mode, the I/O decoding is as shown in Table 39. True IDE mode I/O decoding CE2 CE1 A2 A1 – – ...
Page 44
CF-ATA registers 8 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’. 8.1 Data register (address 1F0h [170h]; offset ...
Page 45
SMCxxxAF 8.2.4 Bit 4 (IDNF) This bit is set if the requested sector error or cannot be found. 8.2.5 Bit 3 This bit is ‘0’. 8.2.6 Bit 2 (abort) This bit is set if the command has ...
Page 46
CF-ATA registers 8.6 Cylinder Low (LBA 15-8) register (address 1F4h [174h]; offset 4) This register contains the least significant 8 bits of the starting cylinder address or bits the logical block address. 8.7 Cylinder High (LBA ...
Page 47
SMCxxxAF 8.8.6 Bit 2 (HS2) When operating in the Cylinder, Head, Sector mode, this is bit 2 of the head number bit 26 in the Logical Block Address mode. 8.8.7 Bit 1 (HS1) When operating in the Cylinder, ...
Page 48
CF-ATA registers 8.9 Status & alternate status registers (address 1F7h [177h] & 3F6h [376h]; offsets 7 & Eh) These registers return the card status when read by the host. Reading the status register clears a pending interrupt. Reading the auxiliary ...
Page 49
SMCxxxAF Table 43. Status & alternate status register D7 D6 BUSY RDY 8.10 Device control register (address 3F6h [376h]; offset Eh) This write-only register is used to control the CompactFlash memory card interrupt request and to issue an ATA soft ...
Page 50
CF-ATA registers 8.11 Card (drive) address register (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 recommended that this register ...
Page 51
SMCxxxAF 9 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 ...
Page 52
CF-ATA command description Table 46. CF-ATA command set Class 1 Standby immediate 1 Translate Sector Write Multiple 3 Write Multiple w/o Erase 2 Write Sector(s) 2 Write Sector(s) w/o Erase Features Register, SC ...
Page 53
SMCxxxAF 9.2 Execute Drive Diagnostic command (90h) This command performs the internal diagnostic tests implemented by the card. In PCMCIA configuration, this command only runs on the card which is addressed by the drive/head register when the command is issued. ...
Page 54
CF-ATA command description 9.3 Erase Sector(s) command (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 ...
Page 55
SMCxxxAF 9.4.6 Word 10-19: memory card serial number The contents of this field are right justified and padded with spaces (20h). 9.4.7 Word 23-26: firmware revision This field contains the revision of the firmware for this product. 9.4.8 Word 27-46: ...
Page 56
CF-ATA command description 9.4.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 ...
Page 57
SMCxxxAF Table 52. Identify drive information Word Default address value 0 848Ah 1 XXXXh 2 0000h 3 00XXh 4 0000h 5 0000h 6 XXXXh 7-8 XXXXh 9 0000h 10-19 20 0000h 21 0000h 22 0004h 23-26 27-46 47 0001h 48 ...
Page 58
CF-ATA command description 9.5 Idle command (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 interpreted as a timer count ...
Page 59
SMCxxxAF 9.6 Idle Immediate command (95h or E1h) This command causes the card to set BSY, enter the Idle mode, clear BSY and generate an interrupt. Table 54 Table 54. Idle Immediate Bit Command (7) C/D/H (6) Cyl High (5) ...
Page 60
CF-ATA command description 9.8 NOP command (00h) This command always fails with the CompactFlash memory card returning command aborted. Table 56 Table 56. NOP Bit Command (7) C/D/H (6) Cyl High (5) Cyl Low (4) Sect Num (3) Sect Cnt ...
Page 61
SMCxxxAF 9.10 Read Multiple command (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 ...
Page 62
CF-ATA command description 9.11 Read Sector(s) command (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 ...
Page 63
SMCxxxAF Table 60. Read Verify Sector(s) Bit Command (7) C/D/H (6) Cyl High (5) Cyl Low (4) Sect Num (3) Sect Cnt (2) Feature (1) 9.13 Recalibrate command (1Xh) This command is effectively a NOP command to the card and ...
Page 64
CF-ATA command description Table 62. Request Sense Bit Command (7) C/D/H (6) Cyl High (5) Cyl Low (4) Sect Num (3) Sect Cnt (2) Feature (1) Table 63. Extended Error codes Extended error code 00h 01h 09h 21h 2Fh 35h, ...
Page 65
SMCxxxAF 9.15 Seek command (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. ...
Page 66
CF-ATA command description Table 65. Set Features Bit Command (7) C/D/H (6) Cyl High (5) Cyl Low (4) Sect Num (3) Sect Cnt (2) Feature (1) Table 66. Features supported Feature 01h Enable 8 bit data transfers. 03h Set transfer ...
Page 67
SMCxxxAF 9.17 Set Multiple mode command (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. ...
Page 68
CF-ATA command description 9.19 Standby command (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 ...
Page 69
SMCxxxAF 9.21 Translate Sector command (87h) This command allows the host a method of determining the exact number of times a user sector has been erased and programmed. The controller responds with a 512-byte buffer of information containing the desired ...
Page 70
CF-ATA command description 9.22 Wear Level command (F5h) This command is effectively a NOP command and only implemented for backward compatibility. The Sector Count register will always be returned with a 00h indicating Wear Level is not needed. Table 74 ...
Page 71
SMCxxxAF 9.24 Write Multiple command (C5h) This command is similar to the Write Sectors command. The card sets BSY within 400 ns of accepting the command. Interrupts are not presented on each sector but on the transfer of a block ...
Page 72
CF-ATA command description 9.25 Write Multiple without Erase command (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 ...
Page 73
SMCxxxAF 9.27 Write Sector(s) without Erase command (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) ...
Page 74
CIS information (typical) 10 CIS information (typical) -------- 0000: Code 01, link -------- – Tuple CISTPL_DEVICE (01), length 4 (04) – Device type is FUNCSPEC – Extended speed byte used – Device speed is 80 ...
Page 75
SMCxxxAF -------- – Tuple CISTPL_VERS_1 (15), length 18 (12) – Major version 4, minor version 1 – Product Information: Manufacturer: "STM", – Product name: "STM-xxxxB" -------- 0056: Code 21, link -------- – Tuple CISTPL_FUNCID (21), length 2 ...
Page 76
CIS information (typical) -------- – Tuple CISTPL_CONFIG (1A), length 5 (05) – Last valid configuration index is 3 – Configuration register base address is 200 – Configuration registers present: configuration option register at 200 – Card configuration and Status register ...
Page 77
SMCxxxAF -------- 00BA: Code 1B, link -------- – Tuple CISTPL_CFTABLE_ENTRY (1B), length 6 (06) – Configuration Table Index is 01 – V power description: Nom – Peak I ...
Page 78
CIS information (typical) -------- – Tuple CISTPL_CFTABLE_ENTRY (1B), length 15 (0F) – Configuration table index is 03 (default) – Interface type is I/O – BVDs not active, WP not active, RdyBsy active – Wait signal support not required – V ...
Page 79
SMCxxxAF 11 Package mechanical In order to meet environmental requirements, ST offers these devices in ECOPACK® packages. These packages have a Lead-free second-level interconnect. The category of Second-Level Interconnect is marked on the package and on the inner box label, ...
Page 80
Ordering information 12 Ordering information Table 81. Ordering information scheme Example: Memory card standard SMC = Storage Medium, CompactFlash Density 032 = 32 Mbytes 064 = 64 Mbytes 128 = 128 Mbytes 256 = 256 Mbytes 512 = 512 Mbytes ...
Page 81
SMCxxxAF 13 Revision history Table 82. Document revision history Date 22-Sep-2006 14-Nov-2007 Revision 1 Initial release. ECOPACK text added in 2 Minor text changes. Revision history Changes Section 11: Package mechanical. 81/82 ...
Page 82
... Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. ...