1298850 九、發明說明: 【發明所屬之技術領域】 、本發明有關一種快閃記憶卡介面,特別是一種具有複數個插槽,可連接 複數個不同類型之快閃記憶卡之快閃記憶卡介面。 【先前技術】 快閃記憶體(Flash memory)擁有可直接用電流來更改資料以及在電源 • _閉後資料可儲存的特性。近年來,隨著無線行動多媒體資訊逐漸普及化, 、 許多新興產品如數位相機、PDA、大哥大、MP3播放裝置等,正好需要如快 閃記憶卡這樣具有體積小、容量大、讀寫快速、省電、耐震等優點的可攜 帶式記憶體。快閃記憶卡跟其他可攜帶的儲存媒介,如磁碟片和光碟片相 比較,由於磁碟片(如1· 44MB)的容量太小、體積太大及容易損壞,而光碟 片(機)不耐震也較耗電,於是快閃記憶卡魏成為可攜帶式記憶裝置的主 流產品。 不過目4市%上販售的快閃記憶卡規格並不統一,一般而言可大致區 分為以下五種:CF 卡(Compact Flash Card)、SM 卡(Smart Media Card)、 SD 卡(Secure Digital Card)、MMC 卡(Multi Media Card)和 MS 卡(Memory1298850 IX. Description of the Invention: [Technical Field] The present invention relates to a flash memory card interface, in particular to a flash memory card interface having a plurality of slots for connecting a plurality of different types of flash memory cards . [Prior Art] Flash memory has the characteristics that it can directly change the data with current and can be stored in the power supply. In recent years, with the increasing popularity of wireless mobile multimedia information, many emerging products such as digital cameras, PDAs, big brothers, MP3 players, etc., just need to have small size, large capacity, fast reading and writing, such as flash memory cards. Portable memory with the advantages of power saving and shock resistance. Compared with other portable storage media, such as floppy disks and optical discs, the flash memory card is too small, too large and easily damaged, and the optical disc (machine) Non-seismic is also more power-hungry, so the flash memory card Wei has become the mainstream product of portable memory devices. However, the specifications of flash memory cards sold in the market are not uniform. In general, they can be roughly classified into the following five types: CompactFlash Card, Smart Media Card, and SD Card (Secure Digital). Card), MMC card (Multi Media Card) and MS card (Memory)
Stick),各種規格的快閃記憶卡皆有世界級的大廠商帶頭組織協會生產, 因此各有各的紐廠誠貞,目前各規格也都制—定的賴而互不相 讓,短期之内是不容易有整合標準化的情況。在讀取快閃記憶卡方面,要 支援單一規格的記憶卡技術並不難,但為滿足各種規格的需求,必須要發 • 1298850 展多卡合一之存取裝置,以整合並讀取不同大小規格及腳位數的快閃記憶 卡。 習知的快閃記憶卡之存取裝置如第一圖所示,快閃記憶卡介面1〇〇上具 有複數個快閃記憶卡插槽1002、1〇〇4…l〇〇n,以對應兩種類型以上的快閃 記憶卡。每一快閃記憶卡插槽對應於一種類型之快閃記憶卡,且均包含複 數個腳位(例如快閃記憶卡插槽1002包含複數個腳位〔Ρ1、Ε1、Χ11〜Χ1η), 各腳位分別透過一傳輸導線11Q而與控制模組12〇相連接。控制模組120 藉由接收/偵測各條傳輸導線110上的訊號,可以判斷哪個插槽已插入快閃 記憶卡,並控制此插槽上的快閃記憶卡資料的存取。舉例來說,若控制模 組12偵測到CD1腳位之電壓由高位轉為低位(由邏輯“丨,,轉為邏輯“〇”) 時,則控制模組120即認定快閃記憶卡插槽1〇〇2已插入快閃記憶卡。利用 以上之方法,控制板組120得以偵測出快閃記憶卡所插入的插槽、快閃記 憶卡之插入的數量以及判斷插入的快閃記憶卡之類型。 然而,上述習知之快閃記憶卡存取裝置有一缺點:當快閃記憶卡介面 100所包含的快閃記憶卡插槽的數目越多時,連接到控制模組12〇的傳輸導 線110的數目也隨著增加,進而會提高所需之製造成本,相對地,傳輪導 線110也會佔用到電路板所需的面積。 【發明内容】 本發明的目的之一,即在於揭露一種多卡合一的快閃記憶卡存取裝置 可以偵測快閃記憶卡之插入與否,與快閃記憶卡之數量、類型。而更特別 的是,本發明提出之快閃記憶卡存取裝置所使用的傳輪導線,特別是訊號 •1298850 導、、友並不k著快閃§己憶卡插槽的數目而增加,因而可降低製造成本。 本發明之另-目的’則是揭露一種應用於本發明之快閃記憶卡存取裝 置偵謝夬閃δ己憶卡疋否插入、判斷插入快閃記憶卡類型的方法。 根據上述’本發明的快閃記憶卡存取裝置包含:一快閃記憶卡介面,包 含複數個快閃記憶卡插槽,各快閃記憶卡插槽均具有複數個訊號腳位;一 控制模組’用以制判斷插入的快閃記憶卡類型,並控制存取快閃記憶卡 • 鋪,以及複數條訊號導線,用以將複數働閃記憶卡插槽之複數個訊號 • 職與控槪_性她,其巾複數働閃記憶卡插射減應的訊號腳 位於並接後分別連接一訊號導線。其中,複數條訊號導線可以是-資料匯 流排,而各快閃記憶卡插槽更可包含偵測腳位與致能腳位,控制模組透過 偵測腳位來判斷是否插入快閃記憶卡,而透過致能腳位來控制允許存取的 快閃記憶卡插槽。 而本發明提出的快閃記憶卡存取裝置,其存取資料的方法包含以下步 驟:於插入一快閃記憶卡,偵測特定之訊號腳位的訊號變化;根據特定之 訊號腳位的訊號變化,判斷插入的快閃記憶卡類型;以及執行對應此快閃 記憶卡類型的快閃記憶卡程式。 【實施方式】 本發明的實施方式會詳細描述如下。然而,除了詳細描述的内容外,本 創作還可以經等效修飾改變而廣泛地在其他的實施例施行,其以之後的申 請專利範圍為準。 1298850 參考第二A圖,其顯示本發明一較佳實施例之快閃記憶卡存取裝置的架 構圖,主要包含一快閃記憶卡介面200與一控制模組220。快閃記憶卡介 面200上具有複數個快閃記憶卡插槽201、202、…、20η,可對應兩種以 上之快閃記憶卡。每一快閃記憶卡插槽對應於一種類型之快閃記憶卡,且 各快閃記憶卡_分別具有複數個職。此實補巾,每麵閃記憶卡插 槽的複數個腳位更可區分為偵測腳位、致能腳位與訊號腳位。其中偵測腳 位是用來判斷快閃記憶卡插槽是否插入快閃記憶卡(如CDi、CD2、…、 CDn),致能腳位是用來決定一快閃記憶卡插槽致能(enab|e)與否(如E1、 E2、…、En),而訊號腳位則用來傳輸訊號(如χι1〜χΐη、χ21〜χ2η…等)。 各债測腳位(即CD1、CD2、…、CDn)分別由-偵測導線210連接至控制 核組220,各致能腳位(即E1、E2、…、En)分別由一致能導線212連接至 控制核組220。而與習知技術不同在於各插槽相對應之各訊號腳位係先於 快閃記憶卡介面200中並接後才連接至控制模組22〇,例如第二a圖中, 訊號腳位X11、X21、…、χηι先於快閃記憶卡介面2〇〇中相接後再以同 一訊號導線214連接至控制模組22〇。換言之,每一訊號導線214以一對 多的方式連接各個快閃記憶卡插槽相對應的複數個訊號腳位。上述複數條 訊號導線214之一較佳實施例即一資料匯流排(data bus)。, 於另一實施例中,例如第二B圖,各快閃記憶卡插槽相對應的訊號腳 位可分別拉出一導線,並於快閃記憶卡介面2〇〇外並接後再分別以訊號導 線214連接至控制模組22〇。 以下將描述上述之快閃記憶卡存取裝置如何運作。參考第三圖,假設快 1298850 閃記憶卡插槽201為一 CF卡插槽,而目前僅插入一 CF卡。控制模組22〇 偵測各偵測腳位(CD1〜CDn)的訊號變化(例如CD1腳位訊號由高位變低 •位),而得知目前係快閃記憶卡插槽201插入一快閃記憶卡,則控制模組22〇 可判斷出此時是插入一 CF卡。之後控制模組220透過致能導線2〇12,致 能快閃記憶卡插槽201,進行資料之存取。 於另一實施例中,假設快閃記憶卡插槽2〇1為一 CF卡插槽,而快閃 鲁 §己憶卡插槽2〇2為一 SM卡插槽,而目前插入一 卡與一 SM卡。控制 模組220偵測各偵測腳位(CD1〜CDn)的訊號變化(例如CD1腳位訊號由高 位變低位,CD2腳位訊號由高位變低位),而得知目前係快閃記憶卡插槽2〇1 與202插入快閃記憶卡,則控制模組220可判斷出此時是插入—CF卡與 一 SM卡。此時存取裝置將發出一警示訊息予使用者,通知使用者選擇一 快閃§己憶卡來使用,並將另一快閃記憶卡拔除。之後,控制模組220透過 致能導線2012或是2013,致能快閃記憶卡插槽2〇1或是2〇2,進行資料 • 之存取。換言之,本發明共用的訊號導線,同一時間内僅致能一快閃記憶 卡的致月b腳位,可避免傳輸訊5虎的混亂。而若是同時插入多個快閃記懷卡 的情形下,透過選擇性地致能特定的快閃記憶卡插槽,可以切換存取不同 的快閃記憶卡。 參考第四圖,其顯示了五種快閃記憶卡各個腳位,與偵測導線、致能 導線與訊號導線間的連結關係,其中,SD、MMC、MS卡插槽具有相同的 腳位配置,故將其納入同一欄位之中。參照第四圖的配置表,其中編號為1 的偵測導線SMCD一為SM卡的偵測導線;編號為2的偵測導線SDCD為 1298850 MMC卡的偵測導線;編號為21與24的偵測導線CFCD1 一與CFCD0一為 CF卡的偵測導線;編號為19的偵測導線MSINS為MS卡的偵測導線;編 號為6的偵測導線SDD3_CD為SD卡的偵測導線,其與CF卡訊號CFDA0 以及SM卡訊號SDM2共用;而SD/MMC/MS卡插槽的SDD1腳位,與 CF卡的CFD2腳位、SM卡的SMD4腳位並接後,共用編號為3的訊號導 線而連接至控制模組220;CF卡的CFDA2腳位與SM卡的SMD1卡並接, 並共用編號為8的訊號導線與控制模組220相接。其餘各腳位請參閱第四 圖依此類推。換言之,各條訊號導線以一對多方式(少部分如編號為1、2、 12…等訊號導線僅接一腳位)’連接到各個快閃記憶卡插槽的特定訊號腳 位。 本實施例的五種快閃記憶卡之判斷情況如下: 1 _當腳位CFCD0一和腳位CFCD1 一變為低電位(即編號21與24之偵測 導線),判斷係CF卡插入。 2_當腳位SMCD一變為低電位(編號彳之偵測導線),判斷係SM卡插入。 3_當腳位SDD3一CD變為高電位或腳位SDCD變為低電位(編號6或2 之债測導線),判斷係SD卡插入。 4·當腳位SDCD變為低電位(編號2之細導線),判斷係_c卡插入。 5_备腳位MSINS變為低電位(編號19之偵測導線),判斷係MS卡插入。 舉例來說,現在插入一快閃記憶卡。控制模組22〇偵測到第21與24 -11 - 1298850 之訊號導線(CFCD0一和CFCD1—腳位)的電壓變為低電位,此時即判斷插入 之快閃記憶卡為CF卡。透過上列之特定腳位的訊號變化,可偵測並判斷目 前插入的快閃記憶卡的類型。而於判斷插入的快閃記憶卡後,透過不致能 其他的快閃記憶卡插槽的致能接腳,縱使此刻再插入其他之快閃記憶卡, 亦不會影響控制模組220存取各腳位的訊號。 上一實施例中’快閃記憶卡存取裝置同一時間僅允許存取一快閃記憶 # 卡。若以上述所提及之例子為例,當控制模組220根據第21與24之訊號 . 導線的電壓變為低電位而判斷插入一 CF卡,之後若更偵測到編號為1之訊 號導線(SMCD一腳位)其電壓變為低位,代表目前同時插入一 cf卡與一 SM 卡。此時存取裝置將發出一警示訊息予使用者,通知使用者選擇一快閃記 憶卡來使用,並將另一快閃記憶卡拔除。之後,存取裝置以選擇的快閃記 憶卡(CF或SM卡)對應的處理程式來存取資料。 綜合上述,本發明提供了一種多卡合一的快閃記憶卡的存取裝置。由於 控制模組與快閃§己憶卡介面之間的訊號導線並不隨快閃記憶卡插槽數目而 增加,因此可降低製造成本,而另一方面,傳輸線佔用的面積亦可有效地 縮小。 以上所述僅為本創作之較佳實施例而已’並非用以限定本創作之申請專 利權利;同時以上之描述,對於熟知本技術領域之專門人士應可明瞭及實 施,因此其他未脫離本創作所揭示之精神下所完成的等效改變或修飾,均 應包含在下述之申請專利範圍中。 -12- 1298850 【圖式簡單說明】 第一圖為習知技術之快閃記憶卡存取裝置; 第二A圖為本發明之一較佳實施例之快閃記憶卡存取裝置之架構圖; 第二B圖為本發明之另一較佳實施例之快閃記憶卡存取裝置之架構圖; 第三圖為本發明之另一實施例之快閃記憶卡存取裝置;以及 第四圖之圖表顯示本發明之再一實施例,其各插槽腳位之間的連接關 係0 【主要元件符號說明】 100、200 快閃記憶卡介面 1002、1004··· 100η、201、202、…、20η 快閃記憶卡插槽 110 傳輸導線 120、220控制模組 210 偵測導線 212、2012、2013致能導線 214 複數條訊號導線 -13-Stick), all kinds of flash memory cards are produced by world-class manufacturers. Therefore, each of the new factories is sincere. At present, all specifications are also based on each other. It is not easy to have integrated standardization. In order to read the flash memory card, it is not difficult to support a single-size memory card technology, but in order to meet the requirements of various specifications, it is necessary to send a 1298850 multi-card access device to integrate and read different Flash memory card with size and pin count. The access device of the conventional flash memory card is as shown in the first figure, and the flash memory card interface has a plurality of flash memory card slots 1002, 1〇〇4...l〇〇n, corresponding to Two or more types of flash memory cards. Each flash memory card slot corresponds to one type of flash memory card, and each includes a plurality of pins (for example, the flash memory card slot 1002 includes a plurality of pins (Ρ1, Ε1, Χ11~Χ1η), each The pins are respectively connected to the control module 12 through a transmission line 11Q. By receiving/detecting signals on the various transmission lines 110, the control module 120 can determine which slot has been inserted into the flash memory card and control access to the flash memory card data on the slot. For example, if the control module 12 detects that the voltage of the CD1 pin changes from a high bit to a low bit (by logic "丨, turn to logic "〇"), the control module 120 determines that the flash memory card is inserted. The slot 1〇〇2 has been inserted into the flash memory card. With the above method, the control panel group 120 can detect the slot into which the flash memory card is inserted, the number of insertions of the flash memory card, and the flash memory for judging insertion. The type of card. However, the above-mentioned flash memory card access device has a disadvantage: when the number of flash memory card slots included in the flash memory card interface 100 is increased, the transmission to the control module 12 is transmitted. The number of wires 110 also increases, which in turn increases the required manufacturing cost. Relatively, the transfer wire 110 also occupies the required area of the circuit board. SUMMARY OF THE INVENTION One of the objects of the present invention is to disclose A multi-card flash memory card access device can detect the insertion of a flash memory card, and the number and type of flash memory cards, and more particularly, the flash memory card provided by the present invention Take the device used The wire, especially the signal 1298850, is not increased by the number of flash memory cards, thereby reducing the manufacturing cost. The other object of the present invention is to disclose a method for applying the present invention. The flash memory card access device detects whether the flash memory card type is inserted or not. The flash memory card access device according to the above invention includes: a flash memory card interface , comprising a plurality of flash memory card slots, each of the flash memory card slots has a plurality of signal pins; a control module is used to determine the type of the inserted flash memory card, and control access to the flash memory Card and shop, and a plurality of signal wires, which are used to connect a plurality of signals of a plurality of flash memory card slots, and to control the _ _ her, the number of signals of the flash memory card insertion and subtraction is located in parallel Then, a signal wire is connected to each of the plurality of signal wires, wherein the plurality of signal wires can be - data bus, and each flash memory card slot can further include a detection pin and an enable pin, and the control module can detect the pin position. Determine whether to insert a flash The memory card controls the flash memory card slot that is allowed to access through the enable pin. The flash memory card access device of the present invention has a method for accessing data including the following steps: The memory card detects the signal change of the specific signal pin; determines the type of the inserted flash memory card according to the signal change of the specific signal pin; and executes the flash memory card program corresponding to the type of the flash memory card. The embodiments of the present invention will be described in detail below. However, in addition to the detailed description, the present invention can be implemented in other embodiments by equivalent modification, which is subject to the scope of the following patent application. 1298850 Referring to FIG. 2A, there is shown a block diagram of a flash memory card access device according to a preferred embodiment of the present invention, which mainly includes a flash memory card interface 200 and a control module 220. A flash memory card interface The 200 has a plurality of flash memory card slots 201, 202, ..., 20n, which can correspond to more than two kinds of flash memory cards. Each flash memory card slot corresponds to one type of flash memory card, and each flash memory card has a plurality of jobs. In this practical patch, the plurality of pins of each flash memory card slot can be further divided into a detection pin, a enable pin and a signal pin. The detection pin is used to determine whether the flash memory card slot is inserted into the flash memory card (such as CDi, CD2, ..., CDn), and the enable pin is used to determine a flash memory card slot enablement ( Enab|e) or not (such as E1, E2, ..., En), and the signal pin is used to transmit signals (such as χι1~χΐη, χ21~χ2η...etc.). Each of the debt measuring pins (ie, CD1, CD2, ..., CDn) is connected to the control core group 220 by the detecting wire 210, and the respective enabling pins (ie, E1, E2, ..., En) are respectively connected by the uniform energy wires 212. Connected to control core group 220. The difference from the prior art is that the corresponding signal pins of each slot are connected to the control module 22 before being connected to the flash memory card interface 200. For example, in the second figure, the signal pin X11 The X21, ..., χηι are connected to the control module 22A by the same signal wire 214 before being connected to the flash memory card interface. In other words, each of the signal conductors 214 connects the plurality of signal pins corresponding to the respective flash memory card slots in a one-to-many manner. A preferred embodiment of the plurality of signal conductors 214 is a data bus. In another embodiment, for example, in the second B diagram, the corresponding signal pins of the flash memory card slots can respectively pull out a wire and connect them to the flash memory card interface 2 The signal conductor 214 is connected to the control module 22A. How the above-described flash memory card access device operates will be described below. Referring to the third figure, it is assumed that the flash memory card slot 201 is a CF card slot, and only one CF card is currently inserted. The control module 22 detects the signal change of each detection pin (CD1~CDn) (for example, the CD1 pin signal changes from the high bit to the low bit), and learns that the flash memory card slot 201 is currently inserted into the flash. The memory card, the control module 22 can determine that a CF card is inserted at this time. Then, the control module 220 enables the flash memory card slot 201 to access the data through the enable wire 2〇12. In another embodiment, it is assumed that the flash memory card slot 2〇1 is a CF card slot, and the flash memory card slot 2〇2 is an SM card slot, and a card is currently inserted. A SM card. The control module 220 detects the signal change of each detection pin (CD1~CDn) (for example, the CD1 pin signal changes from the high bit to the low bit, and the CD2 pin signal changes from the high bit to the low bit), and the current flash memory card is inserted. When the slots 2〇1 and 202 are inserted into the flash memory card, the control module 220 can determine that the CF card and the SM card are inserted at this time. At this time, the access device will send a warning message to the user, informing the user to select a flash § recall card to use, and to remove another flash memory card. Then, the control module 220 enables the flash memory card slot 2〇1 or 2〇2 through the enable line 2012 or 2013 to access the data. In other words, the signal line shared by the present invention can only enable the flashing of the flash memory card at the same time to avoid the confusion of the transmission. If multiple flash cards are inserted at the same time, different flash memory cards can be switched by selectively enabling a particular flash memory card slot. Referring to the fourth figure, it shows the relationship between the various pins of the five flash memory cards and the detection wires, the enable wires and the signal wires, wherein the SD, MMC, and MS card slots have the same pin configuration. Therefore, it is included in the same field. Referring to the configuration table of the fourth figure, the detection wire SMCD number 1 is the detection wire of the SM card; the detection wire SDCD number 2 is the detection wire of the 1298850 MMC card; the detection number is 21 and 24 The test wire CFCD1 and CFCD0 are the detection wires of the CF card; the detection wire MSINS number 19 is the detection wire of the MS card; the detection wire SDD3_CD numbered 6 is the detection wire of the SD card, and the CF The card signal CFDA0 and the SM card signal SDM2 are shared; and the SDD1 pin of the SD/MMC/MS card slot is connected with the CFD2 pin of the CF card and the SMD4 pin of the SM card, and the signal wire numbered 3 is shared. Connected to the control module 220; the CFDA2 pin of the CF card is connected to the SMD1 card of the SM card, and the signal wire numbered 8 is connected to the control module 220. For the rest of the feet, please refer to the fourth figure and so on. In other words, each of the signal wires is connected to a specific signal pin of each flash memory card slot in a one-to-many manner (a small number of signal wires numbered 1, 2, 12, etc.). The judgments of the five types of flash memory cards in this embodiment are as follows: 1 _ When the pin CFCD0 and the pin CFCD1 become low (i.e., the detection wires of numbers 21 and 24), it is judged that the CF card is inserted. 2_When the pin SMCD becomes low (the numbered detection wire), it is judged that the SM card is inserted. 3_When the pin SDD3-CD becomes high or the SDCD becomes low (deblot wire of No. 6 or 2), it is judged that the SD card is inserted. 4. When the SDCD of the pin becomes low (the thin wire of No. 2), it is judged that the _c card is inserted. 5_The standby pin MSINS becomes low (detection wire No. 19), and it is judged that the MS card is inserted. For example, now insert a flash memory card. The control module 22 detects that the voltages of the signal wires (CFCD0 and CFCD1 - pins) of the 21st and 24th through 1198850 become low, and then judges that the inserted flash memory card is a CF card. The type of flash memory card currently inserted can be detected and judged by the signal change of the specific pin in the above column. After judging the inserted flash memory card, by enabling the other flash memory card slot enable pins, even if other flash memory cards are inserted at the moment, the control module 220 will not be affected. The signal of the foot. In the previous embodiment, the flash memory card access device only allows access to a flash memory card at the same time. If the above-mentioned example is taken as an example, when the control module 220 determines to insert a CF card according to the signals of the 21st and 24th wires, the voltage of the wire becomes low, and then the signal wire numbered 1 is detected. (SMCD pin) Its voltage becomes low, which means that a cf card and an SM card are currently inserted at the same time. At this time, the access device will send a warning message to the user, notify the user to select a flash memory card to use, and remove another flash memory card. Thereafter, the access device accesses the data by a processing program corresponding to the selected flash memory card (CF or SM card). In summary, the present invention provides an access device for a multi-card flash memory card. Since the signal wires between the control module and the flash memory card interface do not increase with the number of flash memory card slots, the manufacturing cost can be reduced, and on the other hand, the area occupied by the transmission lines can be effectively reduced. . The above description is only for the preferred embodiment of the present invention and is not intended to limit the patent application rights of the present invention; and the above description should be understood and implemented by those skilled in the art, so that the other is not divorced from the creation. Equivalent changes or modifications made in the spirit of the disclosure are intended to be included in the scope of the claims below. -12- 1298850 BRIEF DESCRIPTION OF THE DRAWINGS The first figure is a flash memory card access device of the prior art; the second A is a block diagram of a flash memory card access device according to a preferred embodiment of the present invention. FIG. 2B is a structural diagram of a flash memory card access device according to another preferred embodiment of the present invention; FIG. 3 is a flash memory card access device according to another embodiment of the present invention; The diagram of the figure shows a further embodiment of the present invention, the connection relationship between the slots of each slot 0 [Description of main component symbols] 100, 200 flash memory card interface 1002, 1004 ··· 100η, 201, 202, ..., 20η flash memory card slot 110 transmission line 120, 220 control module 210 detection wire 212, 2012, 2013 enable wire 214 a plurality of signal wires-13-