1. Field of the Invention
The present invention relates to a detecting device and method for determining insertion and type of flash memory card.
2. Description of the Related Art
Flash memory has DRAM (DRAM, dynamic random access memory) which has a characteristic of directly changing data by current and ROM (ROM, read-only memory) which has a characteristic of keeping data after power-down. In addition, the information of the wireless mobile multimedia are popularize progressively, many new products, such as digital camera, PDA (PDA, personal digital assistant), mobile phone and MP3 player, etc., are needed portable memories such as flash memory card which has advantages of small size, big capacity, fast read/write speed, power saving and anti-shock properties, etc. Compare flash memory card with other portable storage interface like disk and optical disk, the capacity of disk is too small, and the size is too big, and it is easy to be damaged. Optical disk is sensitive to vibration and needed more power. For this reason, flash memory card gradually becomes a mainstream product of portable memory device. However, flash memory card specifications are not unified at present, there are five specifications of flash memory cards: Compact Flash Card (CF Card), Smart Media Card (SM Card), Secure Digital Card (SD Card), Multi Media Card (MMC Card), and Memory Stick Card (MS Card). All kinds of specifications of flash memory cards are produced by worldwide mainstream manufacturers, and these mainstream manufacturers have their own organized associations which have their own members supporting their manufacturers. Currently various specifications are well developed and incompatible with each other. Therefore, a unified specification is not likely in the near future. In respect of reading flash memory card, it is not difficult to support a unitary specification of flash memory card technique. However, to satisfy the need of all kinds of specifications of flash memory cards, it is needed to develop a storage device with multiple flash memory cards interface to integrate and read different flash memory cards with different specifications in sizes and pins.
A detecting device for determining type and insertion of flash memory card in prior art is illustrated as
A detecting method and a detecting device for determining type and insertion of flash memory card are provided according to an embodiment of the present invention. The method and device are used for detecting whether flash memory card is inserted or not and determining type and numbers of inserted flash memory cards. It is suitable for the device with multiple flash memory card slots in one flash memory card interface, wherein the wires of data pins of the different flash memory card slots are connected in a predetermined corresponding way which will be described in detail according to an embodiment of the present invention.
A detecting method for determining type and insertion of flash memory card according to an embodiment of the present invention includes detecting the voltage level transitions of a plurality conductive wires connected to pins of a plurality of flash memory card slots, wherein the conductive wires comprise detecting wires and signal wires, wherein each detecting wire is respectively connected to detect pin of each flash memory card slot and one side of each signal wire is connected to all data pins of these flash memory card slots in a predetermined corresponding way which will be described in detail according to an embodiment of the present invention. Determining type and numbers of at least one inserted flash memory card by the signals of these detecting wires. If more than one flash memory card are inserted, then at least one warning message is provided to users, and if only one flash memory card is inserted, then a corresponding type of flash memory card program is executed.
A detecting device for determining type and insertion of flash memory card according to an embodiment of the present invention at least includes a flash memory card interface which provides a plurality of flash memory card slots, a control module detecting the signals transmitted from these flash memory card slots and a bus which comprises a plurality of detecting wires and a plurality of signal wires, wherein one side of each detecting wire is respectively connected to detect pin of each flash memory card slot, and the other side is respectively connected to the control module. One side of each signal wire is connected to all data pins of these flash memory card slots in a predetermined corresponding way, and the other side is connected to the control module.
The benefits, features, and advantages of the present invention will become better understood with regard to the following description, and accompanying drawings where:
The following description is presented to enable one of ordinary skill in the art to make and use the present invention as provided within the context of a particular application and its requirements. Various modifications to the preferred embodiment will, however, be apparent to one skilled 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 herein, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
In one embodiment, above described flash memory slots 201˜20n (and 301˜20n) can be designed as five kinds of flash memory card slots respectively corresponded to five kinds of flash memory cards in one flash memory card interface. Five kinds of flash memory cards include Compact Flash Card (CF Card), Smart Media Card (SM Card), Secure Digital Card (SD Card), Multi Media Card (MMC Card), and Memory Stick Card (MS Card). The conductive wires used to transmitted data of these five flash memory cards are respectively connected in a predetermined corresponding way for reducing size and saving more cost, wherein the predetermined corresponding way is illustrated in
The connected conductive wires as described above are the wires of data pins of each flash memory card slot. The detecting wires of these flash memory card slots are not connected with any other conductive wires and directly connected to the control module. If the detecting wires are connected to other data pin wires, when a first flash memory card are being accessing the data, the data will be transmitted through collectively connected wires. If a second flash memory card is inserted, then the signal of detecting wires of the second flash memory card slot is transmitted to the control module. That is, the collectively connected conductive wires are also used by the second flash memory card slot, and it is easy to result in disorder of the transmitted data. The detecting wires are designed to directly connect to the control module. The control module detects the voltage level transitions of the wires of these flash memory card slots, and compares the database of corresponding transitions of pins of each flash memory card (as shown in
Above described control module 220 and 320 detects the signals transmitted from the plurality of flash memory card slots and determines type of inserted flash memory card by the voltage level transitions of the signals. The predetermined corresponding mapping table of detecting and determining five kinds of flash memory cards is listed below:
Consequently, a detecting method for determining type and insertion of flash memory card is provided, more particularly suitable for the device with multiple flash memory card slots in one flash memory card interface. The control module detects the voltage level transitions of wires connected to pins of a plurality of flash memory card slots and compares the database of corresponding transitions of pins of each flash memory card, then determines the insertion, type and numbers of flash memory cards, and then access the data. The detecting method further comprises the functions of warning users. If more than one kind of flash memory card are inserted in one time, then at least a warning message is showed to users to tell users to choose one flash memory card to use and to remove other disused flash memory card. If at least two flash memory cards are inserted, then at least a warning message is showed. If only one flash memory card is inserted, then starting to execute the corresponding flash memory card program.
Finally, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the spirit and scope of the invention as defined by the appended claims.
Number | Date | Country | |
---|---|---|---|
60495116 | Aug 2003 | US |