Multimode controller for intelligent and “dumb” flash cards
A controller chip for coupling a computer system with a flash storage system is disclosed. The controller chip comprises an interface mechanism for determining whether the Flash storage system includes a controller and an adapter for providing the appropriate interface to the computer system to allow the computer system to communicate with the Flash storage system. In a preferred embodiment, the flash storage system comprising at least a portion of a medium ID section; and a flash section, wherein the medium ID section contains specifications of the medium ID. Through the use of this system a plurality of different adapters and a flash storage system can be managed while utilizing the same hardware components.
Latest Onspec Electronics, Inc. Patents:
This application is claiming, under 35 USC §119(e), the benefit of provisional patent application Ser. No. 60/386,396 filed on Jun. 4, 2002.
Further, the present application is a continuation-in-part of applications Ser. No. 10/039,685, filed Oct. 29, 2001 now U.S. Pat. No. 6,832,281, entitled “Flashtoaster for Reading Several Types of Flash Memory Cards With or Without a PC,” Ser. No. 10/002,567 filed Nov. 1, 2001 now abandoned, entitled “Active Adapter Chip for Use in a Flash Card Reader, and Ser. No. 10/063,021 filed Mar. 12, 2002, entitled “Memory Module Which Includes a Form Factor Connector.”
FIELD OF THE INVENTIONThe present invention relates generally to controllers and more particularly to controllers for Flash cards.
BACKGROUND OF THE INVENTIONDigital cameras have become one of the most popular of electronic devices. In a recent year, more digital cameras were sold than traditional film cameras. Images from digital cameras can be downloaded and stored on personal computers. Digital pictures can be converted to common formats such as JPEG and sent as e-mail attachments or posted to virtual photo albums on the Internet. Video as well as still images can be captured, depending on the kind of digital camera.
Digital cameras typically capture images electronically and ultimately store the images as bits (ones and zeros) on a solid-state memory. Flash memory is the most common storage for digital cameras. Flash memory contains one or more electrically-erasable read-only-memory (EEPROM) integrated circuit chips that allow reading, writing, and block erasing.
Early digital cameras required the user to download or transfer the images from the flash memory within the digital camera to a personal computer (PC). A standard serial cable was most widely used. However, the limited transfer rate of the serial cable and the large size of the digital images made such serial downloads a patience-building experience. Serial downloads could easily take half an hour for only a few dozen images.
Digital camera manufacturers solved this problem by placing the flash memory chips on a small removable card. The flash-memory card could then be removed from the digital camera, much as film is removed from a standard camera. The flash-memory card could then be inserted into an appropriate slot in a PC, and the image files directly copied to the PC.
While some smaller hand-held computers or personal-digital-assistants (PDA) have slots that receive CompactFlash cards, most PCs do not. Laptop or notebook PCs have PC-card (earlier known as PCMCIA, Personal Computer Memory Card International Association) slots that can receive PCMCIA cards. Many functions have been placed on
PCMCIA cards, such as modems, Ethernet, flash memory, encryption keys, and even miniature hard drives.
CF-to-PCMCIA adapter 10 is a passive adapter that contains an opening that receives CompactFlash card 16.
Desktop PCs usually do not have PCMCIA slots. Then PCMCIA reader 12 can be used. PCMCIA reader 12 accepts CF-to-PCMCIA adapter 10 and connects to PC 20 (not shown) through a parallel or high-speed Universal Serial Bus (USB) cable.
Multiple Flash-Card Formats
Although the CompactFlash card format is relatively small, being not much more than an inch square, other smaller cards have recently emerged.
Other kinds of flash-memory cards that are being championed by different manufacturers include MultiMediaCard (MMC) 28 and the related Secure Digital Card (SD) 26. MMC is controlled by MultiMediaCard Association that includes SanDisk Corp., Infineon Technologies, and others, while SD is controlled by the SD Group that includes Matsushita Electric Industrial Co., SanDisk Corporation, and Toshiba Corp., among others. Another emerging form factor from Sony Corporation is Memory Stick card 18. Memory Stick has a PCMCIA/Floppy adapter while MMC has a floppy adapter.
The different physical shapes and pin arrangements of cards 24, 26, 28 and Memory Stick card 18 prevent their use in CF-to-PCMCIA adapter 10. Indeed, most of these cards 24, 26, 28 have less than a dozen pins, while CompactFlash card 16 has a larger 50-pin interface. Furthermore, serial data interfaces are used in the smaller cards 24, 26, 28 while a parallel data bus is used with CompactFlash card 16.
While the advances in flash-memory card technology are useful, the many different card formats present a confusing array of interface requirements to a PC. Different adapters are needed for each of the card formats. PCMCIA card reader 12 can be replaced with other format readers, such as a SmartMedia Card reader, and even some multi-standard readers are available, such as a reader from Lexar Media that reads CompactFlash or SmartMedia in addition to PCMCIA.
The PCMCIA card interface (68-pins) has been around for a number of years and has been used extensively as an expansion slot for notebooks and other mobile computing devices. It is envisaged to use this popular interface to connect various devices such as SmartMedia, Memory Stick, MultimediaCard, Secure Digital card, Memory Stick V2 (also called the Duo), USB expansion slot, etc., to a computing system, printer, PDA or other system, which has a mating 68 pin connector.
When such adapters (68-pin or any other pin/interface based adapter) are used to interchangeably connect to the computing system, a method of storing these adapters near the slot is desired (see
In this type of bay, the upper slots are mounted right side up but the bottom slots require user to invert the media before inserting it into the slot. Since the slots are mounted on either side of a PCB (printed circuit board) the bottom slots are also very difficult to access. A new adapter for the upcoming smaller footprint Memory Stick (also called the Duo) is desired so as to mate it with 68-pin PCMCIA interface or 50-pin CompactFlash interface or any other similar interface. Therefore it is desirable to have a scheme wherein:
1. All slots are designed such that the flash media can be inserted face up into each slot.
2. There is comfortable separation space between the upper and lower row of slots.
What is desired is a universal adapter for flash-memory cards of several different formats. An adapter that accepts SmartMedia, MultiMediaCard, Secure Digital, and Memory Stick cards is desired. A flash-card reader with a single slot that accepts any format card using the adapter is desired. Special detection logic on the flash reader is desired to distinguish between the many flash-card formats. A low-cost passive adapter is desired that does not need an expensive converter chip. A multi-format reader is desired for a PC. A stand-alone flash reader is desired that can copy image files from flash cards without a PC.
What is further desired is an active adapter that can be used for interchangeably connecting different memory/memories to a device. For example, such a device could be a printer, a PDA device, or other device, which includes a slot for accepting a connector for a CompactFlash disk. It is known, for example, that many printers have a connector for a CompactFlash. Accordingly, what is needed is an active adapter, which addresses the above-identified problems.
It is also known that flash media is utilized in a variety of environments. Heretofore, the flash media is provided as a separate media to a device. In so doing, an array of different types of modules must be provided to allow for a connection to a device such as a digital camera, MP3 player or flash reader. It is desirable to provide a memory module that could be utilized with a variety of devices. The memory module must be compatible with existing standards and be capable of operating as a module.
Accordingly, what is also needed is a system and method for providing a plurality of memories to such a device without requiring multiple connectors or a controller within the memory module. The system should be cost effective, a simple modification and easily implementable into an existing device. What is further clearly needed is a controller that can work with multiple types of flash memory cards that have controllers, and also with flash memory cards that do not have controllers.
Furthermore, a controller IC, a system, and a method are needed to work with multiple types of flash memory cards that have controllers, and also with flash memory cards that do not have controllers.
SUMMARY OF THE INVENTIONA controller chip for coupling a computer system with a flash storage system is disclosed. The controller chip comprises an interface mechanism for determining whether the Flash storage system includes a controller and an adapter for providing the appropriate interface to the computer system to allow the computer system to communicate with the Flash storage system.
In a preferred embodiment, the flash storage system comprising at least a portion of a medium ID section; and a flash section, wherein the medium ID section contains specifications of the medium ID. Through the use of this system a plurality of different adapters and a flash storage system can be managed while utilizing the same hardware components.
The present invention relates to an improvement in flash-memory card readers, and more particularly for interfacing several different types of flash memory cards to a device that includes a processor. It also relates generally to memory modules and more particularly to a memory module, which is coupled via a single connector. The following description is presented to enable one of ordinary skill in the art to make and use the invention as provided in the context of a particular application and its requirements. Various modifications to the preferred embodiment will be apparent to those with skill in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
Description of a Flash Reader for Reading Several Types of Flash-Memory Cards with or without a PC
The inventors have realized that a universal adapter can be constructed using the CompactFlash card form factor. A reader that reads CompactFlash cards can then read any of the other flash-memory cards that plug into the CompactFlash adapter. The adapters are simple, inexpensive passive adapters without a conversion chip.
The inventors have found a pin mapping from the smaller flash-card formats to CompactFlash that allows for easy detection of the type of flash-memory card inserted into the adapter. Detection of the type of flash-memory card is thus performed automatically by electronic detection by the CompactFlash reader. The CompactFlash reader is modified to perform this card-type detection. Signal conversion such as serial-to-parallel is performed by the CompactFlash reader rather than by the adapter. Adapter costs are reduced while CompactFlash reader cost is increased only slightly. The CompactFlash reader can use a single CompactFlash slot to read multiple flash-card types, including SmartMedia, MultiMediaCard, Secure Digital, Memory Stick, and CompactFlash.
In another embodiment, the CompactFlash reader is somewhat larger, and has multiple slots. The adapter is not needed in this embodiment. Instead, a slot is provided for each of the flash-memory card formats—SmartMedia, MultiMediaCard, Secure Digital, Memory Stick, and CompactFlash. A PCMCIA slot can also be added. This CompactFlash reader can be connected to the PC by a USB cable, or it can be located within the PC chassis.
In a third embodiment, the CompactFlash reader is a stand-alone device that can operate without a PC. A removable disk media such as a R/W CD-ROM is included. The CompactFlash reader copies images from the flash-memory card to the removable disk media. A simple interface is used; such as having the user presses a button to initiate image transfer.
Universal, Passive Adapters—
SmartMedia card 24 is a smaller flash-memory card with a 22-pin interface and transfers data in an 8-bit parallel format. SmartMedia adapter 30 converts the 22-pin SmartMedia interface to fit within the 50-pin CompactFlash interface. When SmartMedia card 24 is plugged into SmartMedia adapter 30, both can be plugged into a CompactFlash slot on a CompactFlash reader. Of course, ordinary CompactFlash readers will not be able to read SmartMedia card 24 since the CompactFlash reader requires special signal conversion.
MultiMediaCard 28 and Secure Digital card 26 are flash-memory cards with similar 9-pin interfaces. Serial data transfer is used through a single Data I/O pin. MMC/SD adapter 32 has an opening with a 9-pin connector to receive either MultiMediaCard 28 or Secure Digital card 26. Once MultiMediaCard 28 or Secure Digital card 26 is inserted into MMC/SD adapter 32, then MMC/SD adapter 32 can be inserted into a CompactFlash slot on a special CompactFlash reader. The CompactFlash reader then detects the card type and performs serial-to-parallel conversion.
Memory Stick card 18 is also a flash-memory card with 10-pin, serial-data interfaces, but is narrower and longer than MultiMediaCard 28 or Secure Digital card 26. Memory Stick adapter 34 has an opening with a 10-pin connector to receive Memory Stick card 18. Once Memory Stick card 18 is inserted, Memory Stick adapter 34 can itself be inserted into a CompactFlash slot on a special CompactFlash reader. The CompactFlash reader then detects the card type and performs serial-to-parallel conversion.
CompactFlash reader 42 can also read other kinds of flash-memory cards. For example, MemoryStick adapter 34 allows Memory Stick card 18 to be read. Memory Stick adapter 34 has an opening that Memory Stick card 18 fits into, while Memory Stick adapter 34 itself fits into 50-pin connector 44, since MemoryStick adapter 34 has the same form factor as a CompactFlash card.
SmartMedia card 24 can also be read by CompactFlash reader 42, using SmartMedia adapter 30. Likewise, MultiMediaCard 28 or Secure Digital card 26 can be read using MMC/SD adapter 32.
Adapters 30, 32, 34 are passive adapters that only connect pins from the smaller flash-memory cards to the 50-pin CompactFlash connector. An active converter chip is not required, greatly reducing cost and complexity.
Detection of Card Type—
The inventors have carefully examined the pins of the interfaces to the various flash-memory cards and have discovered that type-detection can be performed by examining two pins. Pins CE1 and CE2 are the chip enable pins of the 50-pin CompactFlash interface. These pins are normally inputs to the CompactFlash card and thus are driven by the CompactFlash reader. When the reader does not drive CE1, CE2 to the inserted CompactFlash card, the CE1, CE2 pins float or are pulled high by pull-up resistors.
Address pins are not present on the other kinds of flash-memory cards. Instead, the address and data are multiplexed. For MMC/SD and Memory Stick cards, the address is sent serially. Using the adapters, pins from the other flash-memory cards can be connected to the CompactFlash pins. Pins CE1 and CE2 are used to detect the type of card. For SmartMedia cards, the addresses are sent by using a special control sequence followed by 3or 4 bytes of starting address.
In
Card-type detector 50 has two pull-up resistors added to lines CE1, CE2. Resistor 52 pulls line CE1 high to power (Vcc) when neither converter chip 40 nor a card plugged into connector 44 drives line CE1. Likewise, resistor 54 pulls line CE2 high when line CE2 is not being actively driven. During detection mode, converter chip 40 is programmed to not drive lines CE1, CE2 and instead use then as inputs to the detector logic.
In
Detection logic in converter chip 40 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. Both inputs are high. The detection logic in converter chip 40 recognizes the HH state of CE1, CE2 as indicating that a CompactFlash card is plugged into connector 44. Converter chip 40 then exits detection mode and configures its interface to connector 44 for the 50-pin CompactFlash interface as shown later in
In
Converter chip 40 does not drive pins CE1, CE1 during detection mode. Thus pin CE2 floats and is pulled high by resistor 54.
The CE1 pin is driven low by the MMC card.
Detection logic in converter chip 40 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. While CE1 is low, CE2 is high. The detection logic in converter chip 40 recognizes the LH state of CE1, CE2 as indicating that a MMC or SD card is plugged into connector 44. Converter chip 40 then exits detection mode and configures its interface to connector 44 for the 9-pin MMC/SD interface as shown later in
In
The Memory Stick card does not drive either pin CE2, CE1, although adapter 34 drives pin CE2 low. Likewise, converter chip 40 does not drive pins CE2, CE1 during detection mode. Pin CE1 floats and is pulled high by resistor 52.
Detection logic in converter chip 40 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. While CE1 is high, CE2 is low. The detection logic in converter chip 40 recognizes the HL state of CE1, CE2 as indicating that a Memory Stick card is plugged into connector 44. Converter chip 40 then exits detection mode and configures its interface to connector 44 for the Memory Stick interface as shown later in
In
Detection logic in converter chip 40 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. Both pins CE1, CE2 are low. The detection logic in converter chip 40 recognizes the LL state of CE1, CE2 as indicating that a SmartMedia card is plugged into connector 44.
Pin Mapping—
The ground pins on the smaller interfaces are connected to CompactFlash pins 1 and 50. Power pins are connected to CompactFlash pins 13, 38. Pins 25, 26 are the card-detect signals for CompactFlash, which the adapters connect to the card-detect signals on all smaller interfaces.
The CompactFlash connectors use pins 2–6, 21–23, 27–31, and 47–49 for the 16-bit parallel data bus to the CompactFlash card. Pins 8, 10–12, and 14–20 form a separate 11-bit address bus. The separate data and address buses provide for rapid random addressing of CompactFlash cards. Other control signals include pins 6, 32 chip enables, pin 9 output enable, pin 36 write enable, interrupt pin 37, reset pin 41, and register REG pin 44. REG pin 44 is the Attribute Memory Select, defined based on the CF mode of operation, i.e. PCMCIA I/O mode, IDE or PCMCIA Memory Mode. Several pins in the 50-pin interface are not connected.
The smaller SmartMedia interface also has a parallel data bus of 8 bits. These are mapped to pins 2–6, and 21–23 of the CompactFlash interface to match the CompactFlash D0:7 signals. While no separate address bus is provided, address and data are multiplexed. Control signals for latch enables, write enable and protect, output enable, and ready handshake are among the control signals. Output enable—OE and write enable—WE are mapped to the same function pins 9, 36 of the CompactFlash interface. The total number of pins in the SmartMedia interface is 22.
The Memory Stick and MMC/SD flash-memory-card interfaces are smaller still, since parallel data or address busses are not present. Instead, serial data transfers occur through serial data pin DIO, which is mapped to pin 19 (CE2). Data is clocked in synchronization to clock SCLK on pin 18. A command signal CMD or BS occupies pin 20 (CE1). The MMC/SD and Memory Stick interfaces require only 6 pins plus power and ground.
Detection logic in converter chip 40 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs to determine the card type. The pull-up resistors of
Multi-Slot Multi-Flash-Card Reader—
Four connectors are provided in flash reader 42: a 50-pin CompactFlash connector 62 that fits CompactFlash card 16, a 9 pin MMC/SD connector 64 that fits MultiMediaCard 28 or a Secure Digital card 26, a 22-pin SmartMedia connector 66 that fits SmartMedia card 24, and a 10-pin Memory Stick connector 68 that fits Memory Stick card 18. Each of the four connectors 62, 64, 66, 68 route their signals to converter chip 40. Converter chip 40 detects when a flash-memory card has been inserted into one of the connectors 62, 64, 66, 68 and configures itself to read files from the inserted card using the pin interface of
Converter chip 40 executes various routines to perform handshaking with the flash-memory cards and accept data, either serially or in parallel. The data is buffered and then sent to the host PC 20 through USB connector 46. Converter chip 40 generates the appropriate USB-interface signals to transfer the data to host PC or any computing system 20.
Having separate connectors 62, 64, 66, 68 with separate slots in flash reader 42 allows for card-to-card transfers. For example, images or other files from Memory Stick card 18 could be transferred to CompactFlash card 16 by converter chip 40 reading serial data from Memory Stick card inserted into connector 68, converting to parallel, and writing to connector 62 and CompactFlash card 16. Each of the flash-memory cards in connectors 62, 64, 66, 68 can be assigned a different drive letter by the operating system, such as E:, F:, G:, and H:.
In this embodiment, flash reader 42 is contained in an external housing that connects to host PC 20 through a USB cable. Of course, other cables and interfaces such as IEEE 1394 FireWire may be substituted.
Flash Reader Within PC—
Each of the four connectors 62, 64, 66, 68 route their signals to converter chip 40. Converter chip 40 detects when a flash-memory card has been inserted into one of the connectors 62, 64, 66, 68 and configures itself to read files from the inserted card using the pin interface of
Converter chip 40 executes various routines to perform handshaking with the flash-memory cards and accept data, either serially or in parallel. The data is buffered and then sent to the CPU 21 in PC 20 through an internal USB bus. Converter chip 40 generates the appropriate USB-interface signals to transfer the data to CPU 21.
Flash reader 42 is inserted into one of the drive bays. The four slots face forward, allowing the user to insert flash-memory cards into flash reader 42 much as a floppy disk is inserted into the floppy-disk drive in FDD bay 74.
Flash reader 42 can be installed by the user from a kit purchased at a store, or it can be pre-installed by an original-equipment manufacturer (OEM) or retailer. The user can easily transfer digital images from a digital camera, regardless of the type of flash-card used by the camera, due to the many different formats of flash-memory cards read by flash reader 42. While Digital cameras are used as an illustration, the concept applies to movement of data.
Flash Reader—
Flash reader 80 has four slots and four connectors are provided in Flash reader 80. A 50-pin CompactFlash connector 62 fits CompactFlash card 16, a 9-pin MMC/SD connector 64 fits MultiMediaCard 28 or a Secure Digital card, a 22-pin SmartMedia connector 66 fits SmartMedia card 24, and a 10-pin Memory Stick connector 68 fits Memory Stick card 18.
Each of the four connectors 62, 64, 66, 68 route their signals to converter chip 40. Converter chip 40 detects when a flash-memory card has been inserted into one of the connectors 62, 64, 66, 68 by sensing card select lines CD0, CD1 and configures itself to read files from the inserted card using the pin interface of
Converter chip 40 executes various routines to perform handshaking with the flash-memory cards and accept data, either serially or in parallel. The data is buffered and then sent either to host PC 20 through USB connector 46 or to removable mass storage 70. Converter chip 40 generates the appropriate USB-interface signals to transfer the data to host PC 20. Converter chip 40 also generates the control signals for removable mass storage 70, allowing the image data read from the flash-memory card to be written to removable disk 76. Removable disk 76 could be a standard or a high-density floppy diskette, a tape drive, a write-able CD-R/W disk, or other proprietary media such as LS120 by Imation of Oakdale, Minn., or ZIP drives by Iomega Corp. of Roy, Utah.
Each of the flash-memory cards in connectors 62, 64, 66, 68 can be assigned a different drive letter by the operating system, such as E:, F:, G:, and H:. Removable mass storage 70 can also be signed a drive letter.
When Flash reader 80 is not attached to host PC 20, image files may still be copied to removable mass storage 70. Flash reader 80 may be carried along on a trip by the user, allowing the user to download image files to removable disk 76. Since removable disk 76 ordinarily has a much higher capacity than the flash-memory cards, many pictures may be captured when no access to host PC 20 is available. Flash reader 80 can be provided with battery power or with its own AC converter.
Flash reader 80 is provided with a simple user interface, including light-emitting diode LED 78 and button 79. When the user inserts a flash-memory card into one of connectors 62, 64, 66, 68, and removable disk 76 is inserted into removable mass storage 70, the user presses button 79. This activates converter chip 40, which determines which of connectors 62, 64, 66, 68 have a memory card inserted, and copies the image files to removable mass storage 70. LED 78 can be programmed to blink during the copying process, and remain lit when the copying is complete, or vice-versa. This provides a simple visual indication to the user of the copying progress. Errors can be indicated with additional LED indicator lamps, or other blinking arrangements or colors.
Converter Chip—
General-purpose input-output GPIO 99 provides registers or I/O ports that drive external I/O pins of converter chip 40, or read the logic-levels or voltages on input pins to converter chip 40. CPU 92 can read registers in GPIO 99 that are written by control signals that are coupled to I/O pins of converter chip 40 from connectors 62, 64, 66, 68 (not shown). Control signals to the flash-memory cards can be switched high or low by writing a 1 or a 0 to a register for that control signal in GPIO 99.
Timers 96 are useful for asserting control signals for a required amount of time. For example, a control signal may need to be asserted for a specified number of microseconds. CPU 92 can write a 1 to a register in GPIO 99 and start a timer in timers 96. Timer 6 can send an interrupt to CPU 96 when the specified time has elapsed, or CPU 92 can continuously or periodically poll timers 96 to determine when the specified time has elapsed. Then CPU 92 can write a 0 to the register in GPIO 99, causing the control signal to transition from 1 to 0.
Shifter 98 is connected to the data and clock signals from connectors 64, 68. When data is read from the flash-memory card, a clock is pulsed to synchronize the data transfer. Shifter 98 clocks in one bit (serial) or word (parallel) of data for each clock pulse.
A cyclical-redundancy-check (CRC) can be performed on the data to detect errors. CPU 92 can request re-transmission of data from the flash-memory card when an error is detected.
Data read by shifter 98 can be sent over internal bus 90 to be stored in a buffer in RAM/ROM 94. Later, CPU 92 can execute a routine to transfer this data from RAM/ROM 94 to USB interface 100. USB interface 100 then transmits the data over an external USB link to a host PC. When a removable mass storage is present, some of the I/O pins from GPIO 99 can connect to the removable mass storage, or a separate disk controller can be included on converter chip 40.
Advantages of a Flash Reader for Reading Several Types of Flash-Memory Cards with or without a PC
A universal adapter for flash-memory cards accepts cards of several different formats. The adapter accepts SmartMedia, MultiMediaCard, Secure Digital, and Memory Stick cards. The flash-card reader with a single slot accepts any format card using the adapter. Special detection logic on the flash reader distinguishes between the many flash-card formats. The low-cost passive adapter does not need an expensive converter chip. A multi-format reader is ideal for use with a PC. However, a stand-alone flash reader can copy image files from flash cards without a PC. Additionally, preparation of media for use in devices (format and erase operations) can be done using this reader.
A universal adapter is constructed using the CompactFlash card form factor. A reader that reads CompactFlash cards can then read any of the other flash-memory cards that plug into the CompactFlash adapter. The adapters are simple, inexpensive passive adapters without a conversion chip.
The disclosed pin mapping from the smaller flash-card formats to CompactFlash allows for easy detection of the type of flash-memory card inserted into the adapter. Detection of the type of flash-memory card is thus performed automatically by electronic detection by the CompactFlash reader. The CompactFlash reader is modified to perform this card-type detection. Signal conversion such as serial-to-parallel is performed by the CompactFlash reader rather than by the adapter. Adapter costs are reduced while CompactFlash reader cost is increased only slightly. The CompactFlash reader can use a single CompactFlash slot to read multiple flash-card types, including SmartMedia, MultiMediaCard, Secure Digital, Memory Stick, and CompactFlash.
Alternate Embodiments of a Flash Reader for Reading Several Types of Flash-Memory Cards with or without a PC
Several other embodiments are contemplated by the inventors. Different flash-card formats can be supported such as Smart Cards, and more or less than the four slots shown in the multi-card flash reader can be included. Other adapters can be used for newer flash formats for the single-slot CompactFlash reader. Any device that needs Control Bus, Clock, Data Bus and Address Bus can be designed to fit into this slot. Examples of such devices include (but are not limited to) DSL Modems, Fingerprint security devices, Miniature Hard disks, etc.
While the invention has been described as connecting to a personal computer PC host, the host may also be an Apple computer such as the iMAC or G3. The host may also be a SUN computer, or any host computer using USB or IDE interfaces. The invention can also apply to Personal Digital Assistants (PDAs) such as by Palm Computer or other handheld appliances, such as a Cell phone with USB capability.
The term “CompactFlash reader” has been used for simplicity, since digital images are often read from the flash-memory card and then written to the PC. However, the CompactFlash reader is capable of reading files from the PC or from another flash-memory card and writing the file to the flash-memory card. Thus the CompactFlash reader is really a reader/writer.
In another embodiment, the CompactFlash reader is somewhat larger, and has multiple slots. The adapter is not needed in this embodiment. Instead, a slot is provided for each of the flash-memory card formats—SmartMedia, MultiMediaCard, Secure Digital, Memory Stick, and CompactFlash. A PCMCIA slot can also be added. This CompactFlash reader can be connected to the PC by a USB cable, or it can be located within the PC chassis.
In a third embodiment, the CompactFlash reader is a stand-alone device that can operate without a PC. A removable disk media such as a R/W CD-ROM is included. The CompactFlash reader copies images from the flash-memory card to the removable disk media. A simple interface is used; such as having the user presses a button to initiate image transfer. Additionally a display of the file copy process can be done on a display device such as an LCD screen. The foregoing description of the embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention be limited not by this detailed description, but rather by the claims appended hereto.
Description of Improved Flash Reader for Reading Several Types of Flash-Memory Cards with or without a PC
A universal adapter was disclosed that can be constructed using the CompactFlash card form factor. A reader that reads CompactFlash cards can then read any of the other flash-memory cards that plug into the CompactFlash adapter. The adapters are simple, inexpensive passive adapters without a conversion chip.
Although the above-identified compact flash reader operates effectively for its stated purpose, it cannot be utilized with an Integrated Devices Electronics (IDE) interface effectively in certain circumstances. It is desirable that a compact flash reader be utilized with an IDE interface for several reasons. Firstly, the IDE interface is a proven interface and an easy interface to design to, for devices such as digital cameras, printers, etc., which may want to embed this chip in their devices. Secondly, the IDE interface is extremely fast and will boost the transfer rates of the devices. IDE ports are freely available on most systems (since only 2 or at the most 3 of the total of 4 IDE ports are used up). Finally, attaching to the front panel of an IDE interface is possible for 100% of all PCs/Macs, etc., whereas an internal expansion slot for USB is utilized in many newer systems.
A system and method in accordance with the present invention allows an IDE interface to replace the USB interface. This will allow a flash reader to be built that could be put into the front panel of a PC in a manner that is similar to placing a CDROM into the front panel. To further describe the features of the present invention, refer now to the following description.
Universal, Passive Adapters
Other kinds of flash-memory cards can also be read by CompactFlash reader 42. For example, MemoryStick adapter 34 allows Memory Stick card 18 to be read. Memory Stick adapter 34 has an opening that Memory Stick card 18 fits into, while Memory Stick adapter 34 itself fits into 50-pin connector 44, since adapter 34 has the same form factor as a CompactFlash card.
SmartMedia card 24 can also be read by CompactFlash reader 42, using SmartMedia adapter 30. Likewise, MultiMediaCard 28 or Secure Digital card 26 can be read using MMC/SD adapter 32.
Adapters 30, 32, 34 are passive adapters that only connect pins from the smaller flash-memory cards to the 50-pin CompactFlash connector. An active converter chip is not required, greatly reducing cost and complexity.
Detection of Card Type
The inventors have carefully examined the pins of the interfaces to the various flash-memory cards and have discovered that type-detection can be performed by examining two pins. Pins CE1 and CE2 are the chip enable pins for addressing the 50-pin CompactFlash interface. These pins are normally inputs to the CompactFlash card and thus are driven by the CompactFlash reader. When the reader does not drive CE1, CE2 to the inserted CompactFlash card, the CE1, CE2 pins float or are pulled high by pull-up resistors.
Address pins are not present on the other kinds of flash-memory cards. Instead, the address and data are multiplexed. For MMC/SD and Memory Stick, the address is sent serially. Using the adapters, pins from the other flash-memory cards can be connected to the CompactFlash pins. Pins CE1 and CE2 are used to detect the type of card. For SmartMedia, the addresses are sent by using a special control sequence followed by 3 or 4 bytes of starting address.
In
Card-type detector 150 has two pull-up resistors added to lines CE1, CE2. Resistor 152 pulls line CE1 high to power (Vcc) when neither the IDE converter chip 140 nor a card plugged into connector 44 drives line CE1. Likewise, resistor 154 pulls line CE2 high when line CE2 is not being actively driven. During detection mode, the IDE converter chip 140 is programmed to not drive lines CE1, CE2 and instead use then as inputs to the detector logic.
In
Detection logic in the IDE converter chip 140 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. Both inputs are high. The detection logic in the IDE converter chip 140 recognizes the HH state of CE1, CE2 as indicating that a CompactFlash card is plugged into connector 44. The IDE converter chip 140 then exits detection mode and configures its interface to connector 44 for the 50-pin CompactFlash interface as shown in
In
The IDE converter chip 140 does not drive pins CE2, CE1 during detection mode. Thus pin CE2 floats and is pulled high by resistor 154. The CE1 pin is driven low by the MMC card.
Detection logic in the IDE converter chip 140 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. While CE1 is low, CE2 is high. The detection logic in the IDE converter chip 140 recognizes the LH state of CE1, CE2 as indicating that a MMC or SD card is plugged into connector 44. The IDE converter chip 140 then exits detection mode and configures its interface to connector 44 for the 9-pin MMC/SD interface as shown in
In
The Memory Stick card does not drive either pin CE2, CE1, although adapter 34 drives pin CE2 low. Likewise, the IDE converter chip 140 does not drive pins CE2, CE1 during detection mode. Pin CE1 floats and is pulled high by resistor 152.
Detection logic in the IDE converter chip 140 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. While CE1 is high, CE2 is low. The detection logic in the IDE converter chip 140 recognizes the HL state of CE1, CE2 as indicating that a Memory Stick card is plugged into connector 44. The IDE converter chip 140 then exits detection mode and configures its interface to connector 44 for the Memory Stick interface as shown in
In
Detection logic in the IDE converter chip 140 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs. Both pins CE1, CE2 are low. The detection logic in the IDE converter chip 140 recognizes the LL state of CE1, CE2 as indicating that a SmartMedia card is plugged into connector 44. Again, this mapping shall be exemplary only, and many variations may be used instead, without departing from the spirit of the invention.
Pin Mapping
Referring back to
The ground pins on the smaller interfaces are connected to CompactFlash pins 1 and 50. Power pins are connected to CompactFlash pins 13, 38. Pins 25, 26 are the card detect signals for CompactFlash, which the adapters connect to the card-detect signals on all smaller interfaces.
The CompactFlash connectors use pins 2–6, 21–23, 27–31, and 47–49 for the 16-bit parallel data bus to the CompactFlash card. Pins 8, 10–12, and 10–20 form a separate 11-bit address bus. The separate data and address buses provide for rapid random addressing of CompactFlash cards. Other control signals include pins 6, 32 chip enables, pin 9 output enable, pin 36 write enable, interrupt pin 37, reset pin 41, and register REG pin 44. REG pin 44 is the Attribute Memory Select, defined based on the CF mode of operation, i.e. PCMCIA I/O mode, IDE or PCMCIA Memory Mode. Several pins in the 50-pin interface are not connected.
The smaller SmartMedia interface also has a parallel data bus of 8 bits. These are mapped to pins 2–6, and 21–23 of the CompactFlash interface to match the CompactFlash D0:7 signals. While no separate address bus is provided, address and data are multiplexed. Control signals for latch enables, write enable and protect, output enable, and ready handshake are among the control signals. Output Enable (OE) and Write Enable (WE) are mapped to the same function pins 9, pin 36 of the CompactFlash interface. The total number of pins in the SmartMedia interface is 22.
The Memory Stick and MMC/SD flash-memory-card interfaces are smaller still, since parallel data or address busses are not present. Instead, serial data transfers occur through serial data pin DATAIO, which is mapped to pin 19 (A1 Data is clocked in synchronization to clock SERCLK on pin 18. A command signal CMD or BITSET occupies pin 20 (A0). The MMC/SD and Memory Stick interfaces require only 6 pins plus power and ground. Others are unused.
Detection logic in the IDE converter chip 140 reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs to determine the card type. The pull-up resistors of
Multi-Slot Multi-Flash-Card Reader
Four connectors are provided in flash reader 42: a 50-pin CompactFlash connector 162 that fits CompactFlash card 16, a 9 pin MMC/SD connector 164 that fits MultiMediaCard 28 or a Secure Digital card, a 22-pin SmartMedia connector 166 that fits SmartMedia card 24, and a 10-pin Memory Stick connector 168 that fits Memory Stick card 18.
Each of the four connectors 162, 164, 166, 168 route their signals to the IDE converter chip 140. The IDE converter chip 140 detects when a flash-memory card has been inserted into one of the connectors 162, 164, 166, 168 and configures itself to read files from the inserted card using the pin interface of
The IDE converter chip 140 executes various routines to perform handshaking with the flash-memory cards and accept data, either serially or in parallel. The data is buffered and then sent to the host PC 20 through IDE connector 146. The IDE converter chip 140 generates the appropriate IDE-interface signals to transfer the data to host PC 20.
Having separate connectors 162, 164, 166, 168 with separate slots in flash reader 42 allows for card-to-card transfers. For example, images or other files from Memory Stick card 18 could be transferred to CompactFlash card 16 by the IDE converter chip 140 reading serial data from Memory Stick inserted into connector 168, converting to parallel, and writing to connector 162 and CompactFlash card 16. Each of the flash-memory cards in connectors 162, 164, 166, 168 can be assigned a different drive letter by the operating system, such as E:, F:, G:, and H:.
In this embodiment, flash reader 42 is contained in an external housing that connects to host PC 20 through an IDE cable. Of course, other cables and interfaces such as IEEE 1394 FireWire may be substituted.
Flash Reader within PC
Each of the four connectors 162, 164, 166, 168 route their signals to the IDE converter chip 140. The IDE converter chip 140 detects when a flash-memory card has been inserted into one of the connectors 162, 164, 166, 168 and configures itself to read files from the inserted card using the pin interface of
The IDE converter chip 140 executes various routines to perform handshaking with the flash-memory cards and accept data, either serially or in parallel. The data is buffered and then sent to the CPU 21 in PC 20 through an internal IDE-interface bus. The IDE converter chip 140 generates the appropriate IDE-interface signals to transfer the data to CPU 21.
Flash Reader
Flash reader 180 has four slots and four connectors are provided in Flash reader 180. A 50-pin CompactFlash connector 162 fits CompactFlash card 16, a 9-pin MMC/SD connector 164 fits MultiMediaCard 28 or a Secure Digital card, a 22-pin SmartMedia connector 166 fits SmartMedia card 24, and a 10-pin Memory Stick connector 168 fits Memory Stick card 18.
Each of the four connectors 162, 164, 166, 168 route their signals to the IDE converter chip 140. The IDE converter chip 140 detects when a flash-memory card has been inserted into one of the connectors 162, 164, 166, 168 by sensing card select lines CD0, CD1 and configures itself to read files from the inserted card using the pin interface of
The IDE converter chip 140 executes various routines to perform handshaking with the flash-memory cards and accept data, either serially or in parallel. The data is buffered and then sent either to host PC 20 through IDE connector 146 or to removable mass storage 170. The IDE converter chip 140 generates the appropriate signals to transfer the data to host PC 20. The IDE converter chip 140 also generates the control signals for removable mass storage 170, allowing the image data read from the flash-memory card to be written to removable disk 176. Removable disk 176 could be a standard or a high-density floppy diskette, a tape drive, a write-able CD-R/W disk, or other proprietary media such as LS120 by Imation of Oakdale, Minn., or ZIP drives by Iomega Corp. of Roy, Utah.
Each of the flash-memory cards in connectors 162, 164, 166, 168 can be assigned a different drive letter by the operating system, such as E:, F:, G:, and H:. Removable mass storage 170 can also be assigned a drive letter.
When Flash reader 180 is not attached to host PC 20, image files may still be copied to removable mass storage 170. Flash reader 180 may be carried along on a trip by the user, allowing the user to download image files to removable disk 176. Since removable disk 176 ordinarily has a much higher capacity than the flash-memory cards, many pictures may be captured when no access to host PC 20 is available. Flash reader 180 can be provided with battery power or with its own AC converter. Optionally an LCD display can be used to preview file names and pictures.
Flash reader 180 is provided with a simple user interface, including light-emitting diode LED 178 and button 179. When the user inserts a flash-memory card into one of connectors 162, 164, 166, 168, and removable disk 176 is inserted into removable mass storage 170, the user presses button 179. This activates the IDE converter chip 140, which determines which of connectors 162, 164, 166, 168 has a memory card inserted, and copies the image files to removable mass storage 170. LED 178 can be programmed to blink during the copying process, and remain lit when the copying is complete, or vice-versa. This provides a simple visual indication to the user of the copying progress. Errors can be indicated with additional LED indicator lamps, or other blinking arrangements or colors.
IDE Converter Chip 140
General-purpose input-output GPIO 199 provides registers or I/O ports that drive external I/O pins of the IDE converter chip 140, or read the logic-levels or voltages on input pins to the IDE converter chip 140. CPU 192 can read registers in GPIO 199 that are written by control signals that are coupled to I/O pins of the IDE converter chip 140 from connectors 162, 164, 166, 168. Control signals to the flash-memory cards can be switched high or low by writing a 1 or a 0 to a register for that control signal in GPIO 199.
Timers 196 are useful for asserting control signals for a required amount of time. For example, a control signal may need to be asserted for a specified number of microseconds. CPU 192 can write a 1 to a register in GPIO 199 and start a timer in timers 196. Timer 196 can sent an interrupt to CPU 192 when the specified time has elapsed, or CPU 192 can continuously or periodically poll timers 196 to determine when the specified time has elapsed. Then CPU 192 can write a 0 to the register in GPIO 199, causing the control signal to transition from 1 to 0.
Shifter 198 is connected to the data and clock signals from connectors 164 (not shown), 168. When data is read from the flash-memory card, a clock is pulsed to synchronize the data transfer. Shifter 198 clocks in one bit (serial) or word (parallel) of data for each clock pulse. A cyclical-redundancy-check (CRC) can be performed on the data to detect errors. CPU 192 can request re-transmission of data from the flash-memory card when an error is detected.
Data read by shifter 198 can be sent over internal bus 190 to be stored in a buffer in RAM/ROM 194. Later, CPU 192 can execute a routine to transfer this data from RAM/ROM 194 to IDE interface 200. IDE interface 200 then transmits the data over an external IDE link to a host PC. When a removable mass storage is present, some of the I/O pins from GPIO 199 can connect to the removable mass storage, or a separate disk controller can be included on IDE converter chip 140.
As is well known, IDE interface only supports one drive per connector. Accordingly, in a system and method in accordance with the present invention, special IDE commands must be provided to allow the interface to be expanded. Typically, there are two slots in a PC, a Master slot and a Slave slot. Accordingly, in a preferred embodiment, two new commands from the CPU 192 are needed, a first command to awaken the device by the converter chip and a second command to identify the device.
The first command which awakens a device such as a CompactFlash+SmartMedia+MemoryStick+MultiMediaCard+Secure Digital Card reader would be described as follows:
Accordingly, through the present invention, the Master and Slave slots are expanded to handle multiple devices via the IDE converter.
Advantages of Improved Flash Reader for Reading Several Types of Flash-Memory Cards with or without a PC
A universal adapter for flash-memory cards accepts cards of several different formats. The adapter accepts SmartMedia, MultiMediaCard, Secure Digital, and Memory Stick cards. The flash-card reader with a single slot accepts any format card using the adapter. Special detection logic on the flash reader distinguishes between the many flash-card formats. The low-cost passive adapter does not need an expensive converter chip. A multi-format reader is ideal for use with a PC. However, a stand-alone flash reader can copy image files from flash cards without a PC. Additionally, preparation of media for use in devices (format and erase operations) can be done using this reader.
A universal adapter is constructed using the CompactFlash card form factor. A reader that reads CompactFlash cards can then read any of the other flash-memory cards that plug into the CompactFlash adapter. The adapters are simple, inexpensive passive adapters without a conversion chip.
The disclosed pin mapping from the smaller flash-card formats to CompactFlash allows for easy detection of the type of flash-memory card inserted into the adapter. Detection of the type of flash-memory card is thus performed automatically by electronic detection by the CompactFlash reader. The CompactFlash reader is modified to perform this card-type detection. Signal conversion such as serial-to-parallel is performed by the CompactFlash reader rather than by the adapter. Adapter costs are reduced while CompactFlash reader cost is increased only slightly. The CompactFlash reader can use a single CompactFlash slot to read multiple flash-card types, including SmartMedia, MultiMediaCard, Secure Digital, Memory Stick, and CompactFlash.
Alternate Embodiments of Improved Flash Reader for Reading Several Types of Flash-Memory Cards with or without a PC
Several other embodiments are contemplated by the inventors. Different flash-card formats can be supported such as Smart Cards, and more or less than the four slots shown in the multi-card flash reader can be included. Other adapters can be used for newer flash formats for the single-slot CompactFlash reader. Any device that needs Control Bus, Clock, Data Bus and Address Bus can be designed to fit into this slot. Examples of such devices include (but are not limited to) DSL Modems, Fingerprint security devices, Miniature Hard disks, Digital Cameras, Video Cameras etc.
While the invention has been described as connecting to a personal computer PC host, the host may also be an Apple computer such as the iMAC or G3. The host may also be a SUN computer or any host computer using IDE interfaces. The invention can also apply to Personal Digital Assistants (PDAs) such as by Palm Computer or other handheld appliances, such as a Cell phone with IDE capability.
The term “CompactFlash reader” has been used for simplicity, since digital images are often read from the flash-memory card and then written to the PC. However, the CompactFlash reader is capable of reading files from the PC or from another flash-memory card and writing the file to the flash-memory card. Thus the CompactFlash reader is really a reader/writer.
In a second embodiment, the CompactFlash reader is a stand-alone device that can operate without a PC. A removable disk media such as a R/W CD-ROM is included. Images from the flash-memory card are copied to the removable disk media by the CompactFlash reader. A simple interface is used; such as having the user press a button to initiate image transfer.
In other alternate embodiments, the CompactFlash reader/multi-flash reader can be designed into a self-hosted appliance such as an MP3 player or a keyboard or a monitor or a stereo appliance. Additionally, the CompactFlash/multi-flash reader can also be designed into handheld data collection scanner devices. The CompactFlash/multi-flash reader can also be designed into personal digital assistant devices, pocket personal computer devices that use, for example, Microsoft Palm operating systems. The compact Flash/multi-flash reader can also be designed into hand terminal devices, personal communicator devices, advanced two-way pager devices, audio recorder and player devices.
In addition, the compact Flash/multi-flash could be designed into monitoring devices for various purposes. The devices include, but are not limited to, any device which requires a PC or paper readout, projector devices, industrial computer devices, printer devices, human input devices, medical devices and digital picture frame devices. These monitoring devices, for example, could be pacemakers, fetal monitors, insulin monitors, chemical monitors, seismic monitors, or the like.
Description of Active Adapter Chip for use in a Flash Card Reader
Although the above-identified CompactFlash readers operate effectively for the stated purpose, they cannot be utilized effectively in certain circumstances. The flash readers only allow for interface to USB on the output side and therefore cannot act as a translator between other interfaces such as IDE, CompactFlash or PCMCIA interfaces. In addition, the conventional method for storing the memory necessarily means that the some of the slots are inverted. A system and method in accordance with the present invention provides an active adapter that overcomes the above-identified problems.
Universal Active Adapter
CompactFlash reader 242 can also read other kinds of flash-memory cards. For example, active adapter 240 allows Memory Stick card 247 to be read. Active adapter 240 has an opening that Memory Stick card 247 fits into, while active adapter 240 itself fits into 50-pin connector, since active adapter 240 has the same form factor as a CompactFlash card.
The SmartMedia card can also be read by CompactFlash reader 242, using active adapter 240. Likewise, MultiMediaCard or Secure Digital card can be read using active adapter 240. The active adapter 240 acts as translation between flash media and the plurality of interfaces.
Active Adapter Chip 240A
Input Side
MMC/SD Memory Stick Interface 256
This interface provides support for MMC/SD and Memory Stick cards. The MultiMediaCard (MMC), Secure Digital Card (SD Card) and MemoryStick are serial access devices. These devices typically require in-bound/out-bound data to be appended with CRC information. The processor provides support in hardware to generate the CRC and to convert serial to parallel and parallel to serial bit streams. A programmable clock speed is provided to set the clock speed based on the media's capabilities.
EEPROM Interface 252
This port is used to read a serial EEPROM that contains programs for the internal processor.
CompactFlash/Smart Media Interface 254
This is the port for connecting a parallel device such as CompactFlash or SmartMedia cards. ECC generation and checking is provided for SmartMedia.
Clock Generator 258
This is the oscillator for the chip's internal clock.
UART Port 270
The UART port supports 7200 to 115.2K baud. Is useful as a debug port and can also be used to access the EEPROM for reads/writes from the serial port.
Output Side
Timers 268
The timers are used for time-dependent functions. For example, when power is turned on to a flash card there must be a delay before the card is accessed.
GPIO 274 and IRQ 272
The GPIOs 274 and IRQ 172 are general-purpose input/output pins. They are used to control various Flash Card functions such as turning power on and off, detecting when a card is plugged in, detecting if a card is write protected, etc. For example, GPIO {11:10} can be used to generate an interrupt to the internal processor when there is change of state on one of these pins. This is used to detect the removal of a flash card.
CF/PCMCIA/IDE Interface 276
This interface is used to connect to a CompactFlash, PCMCIA, or IDE port. Compact Flash is a subset of PCMCIA, the only real difference being the CompactFlash uses a smaller connector than PCMCIA. IDE is the standard disk connection inside a PC. CompactFlash/PCMCIA or IDE mode is selected when the chip is reset. If—OE is low during reset then IDE mode is selected.
Processing System (Processor 260, and ROM 264 and RAM 264)
Processor 260
The processor (preferably a 16-bit processor) along with the RAM and ROM controls the interface 276. The processor 260 detects the type of flash card plugged into the CF/Smart Media or MMC/SD/Memory Stick ports, configures itself accordingly and then translates commands received on the CF/PCMCIA/IDE interface 260 and passes them to the attached flash card.
Pin Mapping
The ground pins on the smaller interfaces are connected to CompactFlash pins 1 and 50. Power pins are connected to CompactFlash pins 13, 38. Pins 25, 26 are the card detect signals for CompactFlash, which the adapters connect to the card-detect signals on all smaller interfaces.
The CompactFlash connectors use pins 2–6, 21–23, 27–31, and 47–49 for the 16-bit parallel data bus to the CompactFlash card. Pins 8, 10–12, and 10–20 form a separate 11-bit address bus. The separate data and address buses provide for rapid random addressing of CompactFlash cards. Other control signals include pins 7, 32 byte enables, pin 9 output enable, pin 36 write enable, interrupt pin 37, reset pin 41. Several pins in the 50-pin interface are not connected.
The smaller SmartMedia interface also has a parallel data bus of 8 bits. These are mapped to pins 2–6, and 21–23 of the CompactFlash interface to match the CompactFlash D0:7 signals. While no separate address bus is provided, address and data are multiplexed. Control signals for latch enables, write enable and protect, output enable, and ready handshake are among the control signals. Output Enable (OE) and Write Enable (WE) are mapped to the same function pins 9, 36 of the CompactFlash interface. The total number of pins in the SmartMedia interface is 22.
The Memory Stick and MMC/SD flash-memory-card interfaces are smaller still, since parallel data or address busses are not present. Instead, serial data transfers occur through serial data pin DATAIO, which is mapped to pin 17 (A3). Data is clocked in synchronization to clock SERCLK on pin 18. A command signal CMD or BITSET occupies pin 20 (A0). The MMC/SD and Memory Stick interfaces require only 6 pins plus power and ground.
Detection logic in the active adapter chip 240A reads card-select pins CD0, CD1 to detect the presence of a flash-memory card. When a new card is present, detection logic then reads pins CE1, CE2 as inputs to determine the card type. The wiring inside the adapter and the card's behavior determines whether CE1, CE2 are pulled low or pulled high by the active adapter chip 240A.
Advantages of the Active Adapter Chip for use in a Flash Card Reader
An active adapter chip for flash-memory cards in accordance with the present invention accepts cards of several different formats. The active adapter chip accepts SmartMedia, MultiMediaCard, Secure Digital, and Memory Stick cards.
The active adapter is constructed using the CompactFlash card form factor. A reader that reads CompactFlash cards can then read any of the other flash-memory cards that plug into the CompactFlash adapter.
The disclosed pin mapping from the smaller flash-card formats to CompactFlash allows for easy detection of the type of flash-memory card inserted into the adapter. Detection of the type of flash-memory card is thus performed automatically by electronic detection by the CompactFlash reader. Signal conversion such as serial-to-parallel is performed by the CompactFlash reader rather than by the adapter. Adapter costs are reduced while CompactFlash reader cost is increased only slightly. The CompactFlash reader can use a single CompactFlash slot to read multiple flash-card types, including SmartMedia, MultiMediaCard, Secure Digital, Memory Stick, and CompactFlash and can also interface on the output side to a plurality of standards, including but not limited to CF, MMD/SC, IDE and PCMCIA standards.
Alternate Embodiments for Active Adapter Chip for use in a Flash Card Reader
The inventors contemplate several other embodiments. Different flash-card formats can be supported such as Smart Cards, and more or less than the four slots shown in the multi-card flash reader can be included. Any device that needs Control Bus, Clock, Data Bus and Address Bus can be designed to fit into these slots. Examples of such devices include (but are not limited to) DSL Modems, Fingerprint security devices, Miniature Hard disks, Digital Cameras, Video Cameras, printers and the like.
While the invention has been described as connecting to a personal computer PC host, the host may also be an Apple computer such as the iMAC or G3. The host may also be a SUN computer, or any host computer using a variety of interfaces. The invention can also apply to personal digital assistants (PDAs) such as by Palm Computer, printers or other handheld appliances, such as a cell phone with a variety of interface capabilities.
The term “CompactFlash reader” has been used for simplicity, since digital images are often read from the flash-memory card and then written to the PC. However, the CompactFlash reader is capable of reading files from the PC or from another flash-memory card and writing the file to the flash-memory card. Thus the CompactFlash reader is really a reader/writer.
In other alternate embodiments, the CompactFlash reader/multi-flash reader can be designed into a self-hosted appliance such as an MP3 player, printer, or a keyboard or a monitor or a stereo appliance. Additionally, the CompactFlash/multi-flash reader can also be designed into handheld data collection scanner devices. The CompactFlash/multi-flash reader can also be designed into personal digital assistant devices, pocket personal computer devices that use, for example, Microsoft Palm operating systems. The compact Flash/multi-flash reader can also be designed into hand terminal devices, personal communicator devices, advanced two-way pager devices, audio recorder and player devices.
Description of Memory Module which Includes a Form Factor Connector
A plurality of flash media are coupled to a single form factor connector to provide a module, i.e., referred to as a SmartStack module that can be coupled directly to the device. The SmartStack module does not include a controller and is controlled from the host side. The form factor connector would typically be a CompactFlash (CF) form factor or some other form factor that are used in a variety of devices. The SmartStack memory module in a preferred embodiment includes a write protect switch that will allow for certain portions of the memory within the SmartStack module not to be written to. In addition, a portion of the flash memory will be allocated to the secure area for storing information to implement various forms of security. Another portion of the flash memory is allocated to store optional biometric information such as a user's fingerprint or retinal scan information, etc.
To more fully describe the present invention, refer now to the following description in conjunction with accompanying figures.
In a preferred embodiment the SmartStack module would have the same form factor as a CompactFlash (CF) card. The module could then be plugged into any CF slot.
Card Detection
Addressing
Security and Biometric Information
An additional improvement for performance would be to add random access memory (RAM) to the stack.
Additionally the SmartStack module can be designed to function like daughter boards on a base board so the capacity can be modularly increased. The SmartStack module can also be designed such that you can plug one card at the end of the previous one to form a chain (or daisy chain).
Multimode Controller for Intelligent and “Dumb” Flash Cards
Most flash card system controllers can only work together with one type of flash medium.
Host computer 4000 may be any of a variety of computers, such as a PC, notebook, PDA, etc., having an interface connection 4001 that connects to controller IC 4010. For purposes of simplicity and clarity, the connection details are not shown. As described earlier, the interface connection may be any of a wide variety of types, such as IDE, USB, or (not shown above) Ethernet. Or it may be a system bus (PCI, etc.), or any other kind of suitable network interface or connectivity offered by computer 4000. Said interface is converted by controller IC 4010 into an interface 4011 to the flash medium 4020. Many aspects of that interface 4011 (and possible adapters, not shown here for clarity) have been described in great detail in previous sections, above.
Host computer 4000 also typically has driver software 4002, and adapter chip 4010 contains firmware 4012. Flash medium 4020 typically may consist of a controller section 4021 and a flash section 4022. In most cases, these sections are at least two separate ICs, although in some cases they may be integrated into one IC. However, in all cases, there is a significant added cost for the controller section, whether it comprises a separate chip or is integrated into a single IC with the flash.
Typically, the purpose of controller 4021 is to present a flawless medium to the system, in a specific format, so the computer 4000 sees an error-free storage medium 4020, rather than a flash 4022 that may have certain defects that must be mapped away.
Often this error mapping and other functions may be handled in combination between those two software elements (firmware 4012b and driver software 4002b), or in some cases it may be shifted entirely to firmware 4012b, which allows the driver software 4002 to remain a standard removable medium driver rather than including specialized firmware. Shifting control entirely to firmware 4012b allows for transparent use of the flash, much as the original controller 4021 (
Identification 4030 makes use of those pins discussed in the sections' above (see
ID 4030c achieves the same result by having a small E2 programmable ROM as a digital ID. This could be a mask program or E2-type serial memory, which is available very inexpensively. The E2 could be programmed at the factory or in the field through firmware 4012b. Many types of low pin count serial buses are known to the inventor and to those skilled in the art (such as Single Wire™ by Dallas Semiconductor, I2C etc.), counting from 1–4 pins including power in some cases. The advantage of using the E2 would be, for example, to allow use of a flash chip 4022 that even has a bad boot sector, because a new boot sector address could be incorporated into 4030c, rather than having to rely on the main storage 4022 to be error free.
As the industry moves to higher and higher single-chip capacity, the chances of having bad sectors in the boot section increase. By moving the boot sector address into an auxiliary device, such as ID 4030c, the yield of usable chips 4022 can be dramatically increased, and therefore costs can be further reduced.
Also, elimination of the controller 4021 helps to further reduce the cost of medium 4022. By having a combined firmware 4012b that can handle both media cards 4022 with controllers of all formats discussed above and of others not discussed, as well as controller-less media cards such as 4020b, with an ID 4030, backward compatibility is guaranteed in the market.
Although the present invention has been described in accordance with the embodiments shown, one of ordinary skill in the art will readily recognize that there could be variations to the embodiments and those variations would be within the spirit and scope of the present invention. Accordingly, many modifications may be made by one of ordinary skill in the art without departing from the spirit and scope of the appended claims.
Claims
1. A controller chip comprising:
- an interface mechanism capable of receiving flash storage systems with controllers and flash storage systems without controllers, a flash storage system to be coupled to a computer system;
- a detector to determine whether the flash storage system includes a controller for error correction; and
- a flash adapter to interface the computer system with the flash storage system, the flash adapter comprising:
- a first interface to be coupled to the computer system;
- a second of interface to be coupled to the flash storage system, wherein the flash storage system comprises a flash section and at least a medium ID; and
- a firmware in the flash adapter, in an event where the flash storage system does not have a controller for error correction, to perform operations to manage error correction of the flash section in the flash storage system that is coupled to the flash adapter by the second interface, including bad block mapping of the flash section.
2. The controller chip of claim 1, wherein the medium ID contains specifications of the flash storage system.
3. The controller chip of claim 2, wherein the flash adapter further comprises at least another portion of the medium ID.
4. The controller chip of claim 2, wherein the medium ID comprises a pull-up resistor and a pull-down resistor.
5. The controller chip of claim 2, wherein the medium ID further comprises a voltage divider.
6. The controller chip of claim 2, wherein the medium ID further comprises an EEPROM device to store the specifications of the flash storage system.
7. A method comprising:
- using a controller chip to interface a flash storage system with or without a controller to a computing device, the controller chip comprising a flash adapter, wherein the flash storage system comprises a flash section and at least a medium ID;
- determining whether the flash storage system includes a controller for error correction; and
- in an event where the flash storage system does not have a controller for error correction, using firmware in the flash adapter to perform operations to manage error correction of the flash section, including bad block mapping of the flash section in the flash storage system that is coupled to the flash adapter section.
8. The method of claim 7, further comprising: storing specifications of the flash storage system in the medium ID.
9. The method of claim 7, further comprising updating the specifications in the medium ID during bad block mapping of the flash section, wherein the medium ID comprises one or more EEPROM devices to store the specifications.
10. The method of claim 7, further comprising examining the medium ID to identify a type of the flash storage system, wherein the medium ID comprises at least one of a pull-up resistor, a pull-down resistor, and a voltage divider.
11. A system comprising:
- a computing device;
- a flash storage system comprising a flash section and at least a portion of a medium ID; and
- a controller chip coupled between the computing device and the flash storage system to interface the flash storage system to the computing device, the controller chip comprising an interface mechanism capable of receiving flash storage systems with controller and controllerless flash storage systems, a detector to determine whether the flash storage system includes a controller for error correction and a flash adapter which comprises firmware to perform, in an event where the flash storage system does not have a controller for error correction, operations to manage error correction of the flash section, including bad block mapping of the flash section in the flash storage system that is coupled to the flash adapter section.
12. The system of claim 11, wherein the medium ID contains specifications of the flash storage system.
13. The system of claim 12, wherein the flash adapter further comprises at least another portion of the medium ID.
14. The system of claim 12, wherein the medium ID comprises a pull-up resistor and a pull-down resistor.
15. The system of claim 12, wherein the medium ID comprises a voltage divider.
16. The system of claim 12, wherein the medium ID comprises an EEPROM device to store the specifications of the flash storage system.
17. The controller chip of claim 1, wherein the flash adapter further comprises a plurality of interfaces for receiving a plurality of flash storage systems.
18. The controller chip of claim 1, wherein the bad block mapping includes addressing a new boot sector to allow use of the storage system with a bad boot sector.
19. The method of claim 7, wherein the flash adapter further comprises a plurality of interfaces for receiving a plurality of flash storage systems.
20. The method of claim 7, wherein the bad block mapping includes addressing a new boot sector to allow use of the storage system with a bad boot sector.
21. The system of claim 11, wherein the flash adapter further comprises a plurality of interfaces for receiving a plurality of flash storage systems.
22. The controller chip of claim 11, wherein the bad block mapping includes addressing a new boot sector to allow use of the storage system with a bad boot sector.
5296692 | March 22, 1994 | Shino |
5740349 | April 14, 1998 | Hasbun et al. |
5786769 | July 28, 1998 | Coteus et al. |
5802553 | September 1, 1998 | Robinson et al. |
5815426 | September 29, 1998 | Jigour et al. |
5844910 | December 1, 1998 | Niijima et al. |
5887145 | March 23, 1999 | Harari et al. |
5928347 | July 27, 1999 | Jones |
D416541 | November 16, 1999 | Hirai et al. |
5995376 | November 30, 1999 | Schultz et al. |
6006295 | December 21, 1999 | Jones et al. |
6075706 | June 13, 2000 | Learmonth et al. |
6088802 | July 11, 2000 | Bialick et al. |
6145046 | November 7, 2000 | Jones |
6175517 | January 16, 2001 | Jigour et al. |
6182162 | January 30, 2001 | Estakhri et al. |
6199122 | March 6, 2001 | Kobayashi |
6266724 | July 24, 2001 | Harari et al. |
6279069 | August 21, 2001 | Robinson et al. |
6292863 | September 18, 2001 | Terasaki et al. |
6330688 | December 11, 2001 | Brown |
6353870 | March 5, 2002 | Mills et al. |
6405323 | June 11, 2002 | Lin et al. |
6408352 | June 18, 2002 | Hosaka et al. |
6438638 | August 20, 2002 | Jones et al. |
20010014934 | August 16, 2001 | Toba |
20020111771 | August 15, 2002 | Huang et al. |
20020185533 | December 12, 2002 | Shieh et al. |
20030038177 | February 27, 2003 | Morrow |
20030041203 | February 27, 2003 | Jones et al. |
20030041284 | February 27, 2003 | Mambakkam et al. |
20030046469 | March 6, 2003 | Liu et al. |
20030084220 | May 1, 2003 | Jones et al. |
20030084221 | May 1, 2003 | Jones et al. |
20030093606 | May 15, 2003 | Mambakkam et al. |
20040027879 | February 12, 2004 | Chang |
08-235028 | September 1996 | JP |
11-53485 | February 1999 | JP |
WO 00/23936 | April 2000 | WO |
- JPO Machine Translation of JP11-53485.
- JPO Machine Translation of JP08-235028.
Type: Grant
Filed: Oct 4, 2002
Date of Patent: Jan 9, 2007
Patent Publication Number: 20030093606
Assignee: Onspec Electronics, Inc. (Cupertino, CA)
Inventors: Sreenath Mambakkam (San Jose, CA), Larry Lawson Jones (Palo Alto, CA), Arockiyaswamy Venkidu (Menlo Park, CA), Nicholas Antonopoulos (San Jose, CA)
Primary Examiner: Kim Huynh
Assistant Examiner: Alan S. Chen
Attorney: Greenberg Traurig, LLP
Application Number: 10/264,466
International Classification: G06F 3/00 (20060101); G06F 13/00 (20060101); G06F 11/00 (20060101); G11C 29/00 (20060101);