TWI261788B - Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter - Google Patents

Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter Download PDF

Info

Publication number
TWI261788B
TWI261788B TW91117942A TW91117942A TWI261788B TW I261788 B TWI261788 B TW I261788B TW 91117942 A TW91117942 A TW 91117942A TW 91117942 A TW91117942 A TW 91117942A TW I261788 B TWI261788 B TW I261788B
Authority
TW
Taiwan
Prior art keywords
data
memory card
packet
small memory
communication
Prior art date
Application number
TW91117942A
Other languages
Chinese (zh)
Inventor
Chia-Li Chen
Hsiang-An Hsieh
Original Assignee
Carry Computer Eng Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Carry Computer Eng Co Ltd filed Critical Carry Computer Eng Co Ltd
Priority to TW91117942A priority Critical patent/TWI261788B/en
Priority to JP2002340218A priority patent/JP2004078880A/en
Priority to DE2003110770 priority patent/DE10310770A1/en
Priority to DE20321576U priority patent/DE20321576U1/en
Application granted granted Critical
Publication of TWI261788B publication Critical patent/TWI261788B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

A small-form-factor memory card having multi-functional communication interface employs a half-duplex and 4-bit streaming method that is based on clock (CLK) signals, each for transmitting 4-bit information, wherein the transmission through the interface is in the unit of data packet, and its communication protocol takes a simulated endpoint in the memory card as a source or a sink of data transmission. The data packet has a starting bit, a packet identification code, an endpoint, a data length, a payload data, a packet status code, a data format, and an ending bit. Particularly, the interface data of the multi-functional small-form-factor memory card are easy to be compatible with 4-bit USB interface and thus can be adopted in a small electronic application device.

Description

1261788 九、發明說明: 【發明所屬之技術領域】 本發明係有關於記憶卡介面之通訊協定,尤其是一種可 具有多功能小型記憶卡介面及USB介面的多功能小型記憶卡 介面之通訊協定,可使得業界避免傳統上使用轉接器以介接 小型電子裝置與電腦裝置之間的不便。 【先前技術】 小型 S己憶卡(Small-F'onn-FaetQi' Memory Card)係採 用具備大量儲存空間,且可重複抹寫之石夕晶片作為儲存媒 體’並内建-微控㈣,作為控綱^片讀取及抹寫作業, 並連接應用小己憶卡之電子應用裝置介面,接受其指令進 行相應讀寫作業等用途。 知用石夕晶片作為儲存媒體之小型記憶卡,因具備體積 小、重置輕、讀寫速度快、省電等優點,廣泛應用於數位化 之資訊產業與資訊家電產業,作為儲存與交換數位資訊之 用。目前市場上常見之小型記憶卡可分為卡 (CF 卡)SmartMedia 卡(SM 卡)、MultiMedia 卡⑽c 卡)、Mem〇ryStlck 卡⑽卡)、SeCureDlgltal 卡(SD 卡) 1261788 等不同種類。各種小型記憶卡,其外觀尺寸、機械構裝、電 氣接觸位置、通訊協^、軟_令代碼、控制流程等各有不 同,亦各有其優劣點。 小型圮憶卡廣泛應用於各種可攜式數位裝置,涵蓋行動 電話、數位相機、數位音樂隨雜、可攜式數位隨身助理 (PDA)等。為拓展其應用領域,除儲存功能外,亦有開拓其 他應用領域之產品出現。例如:σ介面之數據機卡、網路 卡;MemoryStick介面之數位相機卡、BlueT〇〇th通訊卡; SD介面之BlueTooth通訊卡等。為有別於僅具儲存功能之 記憶卡,一般均將上述其他功能之應用泛稱為1〇卡。 上述各種小型記憶卡介面,雖可適用於各式可攜式數位 裝置’與不同顧,然而卻因各有其缺失,崎遺珠之撼。 就其規格之缺失而言,今略舉數例分別予以說明: 就CompactFlash卡而言,其介面需5〇組接點,機構 採插針、插孔結合式,電氣介面採8位元、16位元並存之並 列式資料匯流排、具26組信號之位址匯流排,及多組各種 不同用途之控制信號線。1261788 IX. Description of the Invention: [Technical Field] The present invention relates to a communication protocol of a memory card interface, and more particularly to a communication protocol of a multifunctional small memory card interface capable of having a multi-functional small memory card interface and a USB interface. It can enable the industry to avoid the traditional inconvenience between using an adapter to interface between a small electronic device and a computer device. [Prior Art] Small-F'onn-FaetQi' Memory Card is a storage medium that has a large amount of storage space and can be repeatedly transcribed as a storage medium' and built-in micro-control (4). The control unit reads and erases the work, and connects to the electronic application device interface of the application of the small memory card, and accepts the instructions for reading and writing operations. Known to use Shixi wafer as a small memory card for storage media, because of its small size, light reset, fast reading and writing, and power saving, it is widely used in the digital information industry and information appliance industry as a storage and exchange digital. Information use. The small memory cards that are commonly found on the market can be classified into cards (CF card) SmartMedia card (SM card), MultiMedia card (10) c card), Mem〇ryStlck card (10) card, and SeCureDlgltal card (SD card) 1261788. Various small memory cards have different appearances, mechanical configurations, electrical contact positions, communication protocols, soft-codes, control procedures, etc., and each has its own advantages and disadvantages. Small memory cards are widely used in a variety of portable digital devices, including mobile phones, digital cameras, digital music, and portable digital assistants (PDAs). In order to expand its application areas, in addition to storage functions, there are also products that open up other application areas. For example: σ interface data card, network card; MemoryStick interface digital camera card, BlueT〇〇th communication card; SD interface BlueTooth communication card. In order to distinguish it from a memory card with only a storage function, the application of the above other functions is generally referred to as a "1" card. The above-mentioned various small memory card interfaces can be applied to various portable digital devices, and they are different from each other. In terms of the lack of its specifications, a few examples will be explained here: For the CompactFlash card, the interface requires 5 sets of contacts, the mechanism adopts pins and jacks, and the electrical interface adopts 8 bits, 16 A side-by-side data bus with two bits, a bus with 26 sets of signals, and a plurality of control signal lines for various purposes.

CompactFlash介面之缺點為··一、機構上須具備5〇組 連接子’數a最多’造成連接器成本較高,亦較佔空間。 1261788 二、採用插針、插孔結合式連接設計,造成插入、退出需較 尚力度。二、插針麵合插孔定位不準確時,容易造成插針歪 斜偏離損壞。四、採用並列式匯流排設計,連接多卡時,電 子應用裝置必須分別提供啟動選擇信號,無法逕行並連多' 卡。五、未具備防寫保護設計,無法確保記憶内容不受毁損。 就SmartMedia卡而言,其介面需22組接點,機構採 箸片與平面接觸端子接觸式。另需兩組菁片分別作為侦測記 憶卡疋否插入定位,以及是否黏貼防寫導電貼紙之用。 、smartMedia介面之缺點為:一、機構上須具備22組 連接端子,另須具備摘測定位與防寫導電貼紙之菁片造成 連接器成本較高,亦較佔空間。二、連接端子採前後雙排設 置’於插置或退出時,第—排接觸位置纽連接第二排連接 端子,造成插置時不穩定的現象。三、電源連接信號VCC與 GND均於兩觸接舒H斷整組連接錄,亦容易端 子間短路等不敎財。四 ⑽ 刼用貼軚戴方式區別記憶卡是 Γ寫,需額外供應特殊導電之防寫標籤,域防寫功能並 卡内谷’而需仰賴電子應用裝置偵測識別防 五、採實體定址方式,不能直接支援一般系統採用 之線性邏輯定址方式,增加 應用#置之成本與開發困難 I261788 度。六、因採實體定址方式,每逢錯存媒體擴增容量,即需 因應石夕晶片規劃之格式,修訂新版規格以支援容量更大的可 抹寫式矽晶片。 就MMC卡而言,其介面需7組接點,機構採菁片與平 接觸端子接觸式H組·作為制域卡是否插入 定位。 緬C介面之缺點為:一、採串列通訊傳輸模式,每一時 低。:、採綱防寫保護 模式’需特殊軟體控制,防護功能實用性較差。 上卡而。’其介面需9組接點,嗓構採簧片與平面 接觸端子接觸式。另需兩組簧片作為侧記憶卡是否插入定 位’及伽’]防g保護滑塊位置之用途。 、SD卡介面之缺點為··防寫保護滑塊需電子應用裝置偵 测其位置,並支援防寫功能。 、卡而。其介面共需10組接點,機構採箸片與 平面接觸端子_式。雜介畔·卡_信號,且記憶 卡本身/、谢謂_ ’輯卡本身即可支援㈣魏為其優The shortcomings of the CompactFlash interface are: 1. The organization must have 5 sets of connectors. The number of connectors is the largest, resulting in higher connector cost and space. 1261788 Second, the use of pin and jack combined connection design, resulting in the insertion and withdrawal of the need for more strength. 2. When the positioning of the pin surface is not accurate, it is easy to cause the pin to be skewed and damaged. Fourth, the use of side-by-side bus design, when connecting multiple cards, the electronic application device must provide a separate start signal, can not run and even more 'card. 5. There is no anti-write protection design, and it is impossible to ensure that the memory content is not damaged. In the case of a SmartMedia card, the interface requires 22 sets of contacts, and the mechanism picks up the contact piece with the flat contact terminal. In addition, two sets of crystals are required as the detection memory card, whether to insert the positioning, and whether to stick the anti-write conductive sticker. The shortcomings of the smartMedia interface are as follows: 1. The system must have 22 sets of connection terminals, and the green film with the measurement position and the anti-write conductive sticker must have higher connector cost and space. Second, the connection terminal before and after the double row setting ‘When inserting or exiting, the first row contact position button is connected to the second row connection terminal, which causes instability during insertion. Third, the power connection signal VCC and GND are connected to the two sets of contact H, and it is easy to short-circuit between the terminals. Four (10) 区别 軚 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别 区别It is not possible to directly support the linear logic addressing method adopted by the general system, and increase the cost and development difficulty of the application #261788 degree. 6. Due to the physical location method, whenever the media expansion capacity is misplaced, the new version of the specification should be revised to support the larger rewritable silicon wafer in accordance with the format of the Shixi wafer plan. In the case of the MMC card, the interface requires 7 sets of contacts, and the mechanism picks the contact piece and the flat contact terminal contact type H. As the domain card is inserted or positioned. The shortcomings of the Myanmar C interface are: First, the serial communication transmission mode is adopted, and each time is low. : The anti-write protection mode of the sequel requires special software control, and the protection function is less practical. On the card. The interface requires 9 sets of contacts, and the pick-up reeds are in contact with the planar contact terminals. Two sets of reeds are also required as the side memory card to insert the positioning 'and gamma'] anti-g protection slider position. The disadvantage of the SD card interface is that the anti-write protection slider requires the electronic application device to detect its position and support the anti-writing function. Card. A total of 10 sets of contacts are required for the interface, and the mechanism picks up the contact piece and the flat contact terminal. Miscellaneous card · card _ signal, and the memory card itself /, thank you _ _ card itself can support (four) Wei is excellent

MS 卡’I面之缺點為:—、採串列通訊傳輸模式,每— 1261788 時脈週期僅能傳輸1位元,傳輸速率低。二、採實體定址方 式,不能支援一般系統採用之線性邏輯定址方式,增加電子 應用裝置之成本及開發困難度。三、因採實體定址方式,每 逢儲存媒體擴增容量,即需因應矽晶片規劃之格式,修訂新 版規格以支援容量更大的可抹寫式矽晶片。 有鑒於眾多記憶卡標準各自相異,亦各具優缺點,且個 人電腦需擴充配備額外之USB介面、PCMCIA介面或ide 介面之記憶卡電子應用裝置,方能達到與記憶卡溝通交換數 位貧訊的目的,創作人乃有提出一更先進新穎之標準,一舉 克服上述諸多缺失,並發展出:一、體積更小,速度更快, 更適合可攜式數位裝置應用;二、無須額外擴充電子應用裝 置即能輕糾接個人電腦系統;三、兼顧IG應賴充性; 等優點之新穎標準介面,並稱之為「多功能小型記憶卡介 面」〇 【發明内容】 本發明的目的為提供一種具有多功能通訊協定介面之 小型圯憶卡,其中該多功能小型記憶卡具有4腳位及8腳位 的^又计了同時支援傳統的USB介面,及本發明中所定義的 1261788 通訊協定’因此可適用於電腦設備及多種電子應用裝置。 為達到上述目的本發明提供一種具有多功能通訊介面 之小型記憶卡,其採用半雙工,4位元串流方式,以時脈(CLK) 信號為基準’而每一時脈可傳輸4位元資訊刖,!)〗,D2,D3, 其中,介面傳輸以資料封包(packet)為單位,且其通訊協 定以記憶卡内模擬之通訊端點(endp〇int)為資訊傳輸之 來源(source)或目標(sink),其中資料封包具有起始位 兀’封包識別碼,通訊端點,資料長度,酬載資料,封包狀 態碼,資料格式,結束位元。 本發明尚提供-種多魏小型記憶卡鋪,具有4腳位 及8腳位的糾’其中4腳位的設計係用於於基本之脇介 面8腳位的设计用於卿介面,8腳位的霞介面有四 個插腳同於腦介面的4腳位,另四格插腳則分佈在該· 介面的四腳位之間。該插槽分為公插槽及母插槽。 本發明尚提供—種格式器(f_tter)係將數據轉換成 具有多功能通訊介面之小型記憶卡,其中數據由記憶體輸d 後卩才。式化成付合具有多功能通訊介面之小型記憶卡之却 l貧料封包,物杜具細低,糊網,勒 端點,資料長度,酬载資料,封包狀態碼,資料格式,結京 、1261788 位元。 本發明尚長:供一種格式轉換裔(format converter)係將 USB資料封包轉換成具有多功能通訊介面之小型記憶卡,係 將USB資料封包解包封,然後將所得的數據格式化成符合具 有多功能通訊介面之小型記憶卡之通信資料封包,該具有多 功能通訊介面之小型記憶卡之資料封包具有起始位元,封包 識別碼,通訊端點,資料長度,酬載資料,封包狀態碼,資 料格式,及結束位元。 為使貴審查委員能進一步瞭解本發明之結構、特徵及其 目的,效附以圖式及較佳具體實施例之詳細說明如后·· 【實施方式】 本發明的多功能小型記憶卡,主要區分為兩種,第一種 以儲存數位資訊功能為主,第=種以支援其他1〇功能為 主。兩種魏龍騎:—、域乡魏㈣錢卡介面之 主控制器220,提供儲存數位資訊功能者,其主控制器铷 另須具備可重縣料轉發性記之鋪介面;提供 10功能者,其主控制器咖另須具備可支援10功能模組 之控制”面。―、提供儲存數位資訊魏者,須具備一大容 χ26ΐ788 量重複抹寫式非揮發性記憶儲存模組,以儲存數位資訊;提 供10功能者,須具備一支援1〇功能之1〇功能模組。 本發明之多功能小型記憶卡如附圖1中所示者,其中該 多功此小型§己憶卡200包含一記憶卡I/O功能模組,一 主控制器220,及一記憶體230。經整合裝置於印刷電路板 上後,於印刷電路板上並提供多功能小型記憶卡介面端子, 裸於於外’以連接電子應用裝置100。最後並於此已具完整 電氣功能之電路板外加塑膠射出成型之機殼,組裝成為完整 之多功能記憶卡或10卡。 與該多功能小型記憶卡對接的電子應用裝置1〇〇包含裝 置模組110,格式轉換器120,裝置I/O 130。 該記憶卡I/O功能模組21〇係用於記憶卡之數據輸入及 輸出之多功能模組及其包含連結端子及相關之電路結構。本 發明之多功能小型記憶卡可以同時支援USB介面及本發明定 義的SFMI介面。其中該端子具有4腳位及8腳位的設計。 4腳位的設計係用於於基本之USB介面,其包含一 Vcc 腳位係由對接之裝置端提供直流電源予本發明之多功能小 型冗憶卡的腳位,以對多功能小型記憶卡賦能,一 GND(接地 腳位)’係對於本發明之設計提供接地保護及參考電位之 12 I261788 用’另兩個腳位分別為贼D-腳位,為數據傳輸腳位。 本發明的多魏小型纖卡介面為_8驗的設計,由 tbit雙向指令/資料/狀態匯流排⑽〜⑻、時脈同步信號 (CLK)、系統介面及記針插置伽膽號㈣,以及電源腳 位⑽)與接地腳位(_所組成,總共僅需8組接 點。防寫保護功能由多魏小型記憶卡内建之㈣保護開關 刀換位置獅’並且透過介面軌通知電子應職置⑽。 其中該Vcc為- DC電源接點,係用於提供%電流予多功能 小型記憶卡,以賦能該多功能小型記憶卡·為接地接點, 係用於提供接點保護及參考電位;ακ為同步時脈信號,對 於輪出及輸人數據提供同步時脈,讀於數據錄的時序重 建及L號對齊之用’ BD_CD為系統介面及記憶卡插置偵測信 號’係用於_輸人及輸出數據係為介面信號,亦或· 介面錢。DO為雙向指令/資料/狀態匯流排信號bit〇,於 USB拉式工作中’為D__信號線;di為雙向指令/資料線態匯 流排信號bitl,於USB模式工作中,為d+信號線;d2為 雙向指令/資料/狀態匯流排信號阶2,於廳模式工作 不存在此L5虎線,且D3為雙向指令/資料/狀態匯流排 信號阶3,則SB模式工作中,不存在此信號線。 1261788 由上文中的說明可以了解本發明的SFMI介面與基本上 的USB介面共用四個接點,即Vcc,GND D—(D〇^ D+(D1)。 另外本發明尚包含CLK,BD—CD,D2及D3四個接點。所以在The disadvantages of the MS card 'I side are: -, serial communication transmission mode, only 1 bit can be transmitted per 1261788 clock cycle, and the transmission rate is low. Second, the physical location method can not support the linear logic addressing method adopted by the general system, increasing the cost and development difficulty of the electronic application device. Third, due to the physical location method, each time the storage media is amplified, it is necessary to revise the new version to support the larger capacity rewritable silicon chip in accordance with the format of the chip plan. In view of the fact that many memory card standards are different, each has its own advantages and disadvantages, and the PC needs to expand the memory card electronic application device with additional USB interface, PCMCIA interface or ide interface to communicate with the memory card. The purpose of the creator is to propose a more advanced and novel standard, to overcome the above-mentioned many shortcomings, and to develop: First, smaller, faster, more suitable for portable digital device applications; Second, no additional expansion of electronics The application device can lightly connect the personal computer system; the third is to take into account the IG's ability to charge; the novel standard interface of advantages and the like, and is called "multi-function small memory card interface" 发明 [Summary] The object of the present invention is to provide A small memory card with a multi-function communication protocol interface, wherein the multi-function small memory card has a 4-pin and 8-pin position, and also supports a conventional USB interface, and the 1261788 communication protocol defined in the present invention. 'Therefore, it can be applied to computer equipment and a variety of electronic applications. In order to achieve the above object, the present invention provides a small memory card having a multi-functional communication interface, which adopts a half-duplex, 4-bit stream method, based on a clock (CLK) signal, and transmits 4 bits per clock. Information 刖, !), D2, D3, where the interface transmission is in units of data packets, and its communication protocol uses the communication end point (endp〇int) in the memory card as the source of information transmission (source) Or sink (sink), wherein the data packet has a start bit 兀 'packet identification code, communication endpoint, data length, payload data, packet status code, data format, end bit. The invention further provides a multi-wei small memory card shop, which has a 4-pin position and an 8-pin position correction. The design of the 4-pin position is used for the design of the basic threat interface 8 feet for the Qing interface, 8 feet. The position of the Xia interface has four pins that are the same as the four-pin position of the brain interface, and the other four pins are distributed between the four positions of the interface. The slot is divided into a male slot and a female slot. The present invention also provides a formatter (f_tter) for converting data into a small memory card having a multi-functional communication interface, wherein the data is input from the memory. It is a small memory card with a multi-functional communication interface, but it is a low-cost package, with a low profile, a paste network, a Le endpoint, a data length, a payload data, a packet status code, a data format, and a 1261788 bits. The invention is still long: for a format converter to convert a USB data packet into a small memory card with a multi-functional communication interface, the USB data packet is unencapsulated, and the resulting data is formatted into a conforming The communication data packet of the small memory card of the function communication interface, the data packet of the small memory card with the multifunctional communication interface has a start bit, a packet identification code, a communication end point, a data length, a payload data, a packet status code, Data format, and end bit. The detailed description of the drawings and the preferred embodiments is as follows. [Embodiment] The multifunctional small memory card of the present invention is mainly used for the present invention. It is divided into two types. The first type is mainly for storing digital information functions, and the first type is mainly for supporting other ones. Two types of Weilong riding: -, the domain controller Wei (four) money card interface of the main controller 220, to provide the storage of digital information function, the main controller must also have a heavyweight material forwarding record shop; provide 10 functions The main controller and the coffee controller must also have the control to support the 10-function module. ―, provide storage digital information Wei, must have a large capacity 26ΐ 788 amount of repeated rewritable non-volatile memory storage module, The digital information is stored; if the function is provided, a function module supporting one function is required. The multifunctional small memory card of the present invention is as shown in Fig. 1, wherein the multi-function small § recall card The 200 includes a memory card I/O function module, a main controller 220, and a memory 230. After being integrated on the printed circuit board, the multi-function small memory card interface terminal is provided on the printed circuit board. For the purpose of connecting the electronic application device 100. Finally, the circuit board with the complete electrical function is added with a plastic injection molded casing, and assembled into a complete multifunctional memory card or 10 cards. With the multifunctional small memory card Docking The electronic application device 1 includes a device module 110, a format converter 120, and a device I/O 130. The memory card I/O function module 21 is a multifunctional module for data input and output of a memory card. The utility model further comprises a connecting terminal and a related circuit structure. The multifunctional small memory card of the invention can simultaneously support the USB interface and the SFMI interface defined by the invention, wherein the terminal has a design of 4 pin and 8 pin. The design is used for the basic USB interface, which includes a Vcc pin to provide DC power to the docking device to the pin of the multi-function small memory card of the present invention to empower the multifunctional small memory card. GND (grounding pin)' provides grounding protection and reference potential for the design of the present invention. 12 I261788 uses 'the other two feet are the thief D-pin, which is the data transmission pin. The multi-wei small fiber of the present invention The card interface is designed for _8 test, and is composed of tbit bidirectional command/data/state bus (10)~(8), clock synchronization signal (CLK), system interface and pin insertion gamma (4), and power pin (10). Ground pin (_ composed of total A total of only 8 sets of contacts are required. The anti-write protection function is built-in by the multi-wei small memory card (4) the protection switch is changed to the position lion' and the electronic service is notified through the interface rail (10). The Vcc is the - DC power contact. It is used to provide % current to the multi-function small memory card to enable the multi-function small memory card. It is used as a ground contact to provide contact protection and reference potential. ακ is a synchronous clock signal for round-trip and The input data provides the synchronization clock, the time series reconstruction of the data record and the alignment of the L number. BD_CD is the system interface and the memory card insertion detection signal is used for the interface signal of the input and output data. Or · Interface money. DO is bidirectional command / data / status bus signal bit 〇, 'D__ signal line in USB pull operation; di is bidirectional command / data line bus signal bitl, working in USB mode , d + signal line; d2 is bidirectional command / data / state bus signal level 2, the L5 tiger line does not exist in the hall mode work, and D3 is the bidirectional command / data / state bus signal level 3, then the SB mode works This signal line does not exist. 1261788 It can be understood from the above description that the SFMI interface of the present invention shares four contacts with the basic USB interface, namely Vcc, GND D-(D〇^D+(D1). In addition, the present invention also includes CLK, BD-CD. , D2 and D3 four contacts. So in

插接結構(包含插入端子及插槽)的設計上。可以在原來USB ;丨面的四個接點之間另安排四個接點,而使得本發明sfmi 介面的插接結構可以與USB介面的插接結構共用,而毋需另 行配置不同的插接結構。 本介面之另一特點,則在於4位元雙向匯流排中,D〇 及D1兩組信號線,於電子應用裝置1〇〇採用USB介面連 接記憶卡時,改採㈣介_作模式,喊為介面所 需之D+與D-信號線。並支援標準介面之通訊模 式,得以無須任何額外電子應職置⑽,即可裝置於個人 電月自或支援USB糸統介面之數位裝置。 本發明尚提供—種多功能小型記憶卡插槽,具有4腳位 及8腳位的設計’其中4腳位的設計係用於於基本之USB介 面’ 8腳位的設計用於_介面,8腳位的s簡介面有四 個插腳同於脇介面物位,另四格插·分佈在麵 介_四腳位之間。該插槽分為公插槽及母插槽。 請參見圖3,本發明的主控制器22{)包含四個組件,一 ,1261788 I/〇控制為221,—記憶體控制器222,-格式器223,及- 解格式器224。其中該1/〇主控制器221係用於控制記憶卡 力月匕核、、且210 ’包含決定該記憶卡1/〇功能模組训係 ^輸入模式操作或以輸出模式操作,或以_介面或腿 介面模式操作等。該記憶體主控制器222則用於控制記憶體 230 ’而格式器223 ’及—解格式器⑽則進行介面信號 及觀1介面信號的格式轉換,以配合記憶卡I/O功能模組 的操作极式。有關於格式器223,及解格式器现的動作此 將於下文中加以說明。 系統介面與記憶卡插置偵測信號: ' 記憶卡插置_錄,於記憶切料接至控制晶片之 多功能輸出入控制信號,於支援多功能小型記憶卡介面之電 子應用裝置100端則經—電阻連接至電源,於支援㈣系統 端之介面财連接此錄,岐❹魏記針可藉由離 賴測電子應職置⑽_之_介面,㈣子應用裝置 1〇〇亦可_此信號達成_小型記憶卡是否插置定位之多 功能。 ^己隐卡I/O舰模組之介㈣測·包含一電源 310 ’ -肋輸入_端32〇,一⑶輸出傾測端咖,一第— 1261788 —極體360 , —第二二極體370,一第一電阻340,及一第二 電阻350。 該記憶卡I/O功能模組的功能係經由偵測系統介面及記 憶卡插置偵測信號(BD_CD)之出現與否而決定插入端為USB 介面或SFMI介面。 小型記憶卡插置於支援小型記憶卡介面之電子應用裝 置100,由於電子應用裝置1〇〇不論小型記憶卡是否插置均 持續供應電源,小型記憶卡於啟動時,應首先維持CD信號 為咼阻抗狀態,以免影響BD一CD信號偵測檢查動作。然後 隨即檢查BD_CD信號之狀態,若BD-CD信號狀態為高電 位’即代表系統端支援小型記憶卡介面,而進入小型記惊卡 介面動作模式。並隨即驅動輸出CD信號為低電位,通知電 子應用裝置100小型記憶卡已插置定位;反之,若肋CD作 號為低電位,則表示系統端未將BD—CD信號透過電阻連接 到電源,代表支援USB介面,而進入USB介面動作模式。 在圖4所示的電路中,Vcc接點連結電源31〇,系統介 面及記憶卡插置偵測信號BD—CD經順向連結的第一二極體 360連結BD輸入偵測端320,且經逆個連結的第二二極體37〇 連結該CD輸出偵測端,而系統介面及記憶卡插置偵測信號 16 1261788 既CD以一第二電阻連結接地端_,該Vcc與系統介面及 記憶卡插置細信號之間連結該第—電阻。在圖中第一電阻 為10ΚΩ且第二電阻為醜Ω,其係本發明之—較佳之實施 例,其他適當的數值也可以朗在本發日种,而不受限於圖 式中的#χ佳貝歸彳。該第—電阻及第二電阻的功能在於將 BD一CD及Vcc升壓以提供所需要的電路動作。 當USB介面插入該多功能小型記憶卡時,參考圖4A,則 第一二極體360將導通,而使得肋輸入32〇端導通,因此 速度可以知道插入的介面為SFMI介面,反之當系統介面及 記憶卡插置偵測信號BD—CD沒有輸入時,第一二極體36〇不 導通,所以得知輪入的信號為USB介面信號。 反之在輸出模式下,當輸出的信號為SFMI介面信號時, 第二二極體370導通,知出的信號為邠犯面信號,反之為 USB介面信號。 具有多功能通訊介面之小型記憶卡說明: 多功能小型記憶卡介面,係採用半雙工,4位元串流方 式,以CLK信號為基準,而每一時脈可傳輸4位元資訊。 資訊傳輸方式則由電子應用裝置1〇〇主控,於下達傳輸指令 及傳輸長度後,決定資料階段傳輸長度。為了提高本介面之 17 1261788 應用性’及簡化整體系統設計,介面傳輸係以資料封包 (packet)為單位。且其通訊協定以記憶卡内模擬之通訊端 點(endpoint)為資訊傳輸之來源(source)或目標 (sink) 〇 所有支援「多功能小型記憶卡介面」之記憶卡或10 卡,均至少需支援一組通訊端點,稱為「控制端點」,其端 點位址為0。讀寫裝置得透過此一控制端點取得記憶卡或 10卡之詳細描述,得知其功能及其他通訊端點之設定,並 進行適當之設置後,啟動其功能,並進行資料之傳輸。 (1)起始位元/結束位元—start bit / End bit 電子應用裝置100與記憶卡於啟動資料傳輸時,均須於 資料封包最前端產生—個雜週期DG〜D3均為〇之起始 位兀’於貝料封包最末端附加兩個時脈週期DO〜D3均為1 之結束位元。 2 封包翻碼—Paeket Identifier (pID) 凊參考圖5,通訊封包自封包識別碼⑽)開始,並考 識別碼種類不同,得應獨場合。每-組#料封包含 有1.= 包識别碼:標示封包傳輸資料的方向,傳輸端點 位址及貝料長度,2.嶋資料,内含一組哪資料錯誤 1261788 _代碼’ 3·爿包狀態碼’接收酬載資料的—方,傳回接 收狀態確認資料是否正確收到。封包識別碼_標示電子 應用裝置100將進行資料輸出之傳輸。封包識別碼職標 不電子應用衣置100將進行資料輸入之傳輸。封包識別碼 1101標示電子_裝置⑽將針對_端點進行設置或取得 相關資訊。封包翻碼_標讀訊接受端確認資料封包 收t。封包識別碼1010標示資訊接受端暫時無法接收資訊, 或傳出端暫時無法傳出資訊。封包辨識碼111G標示通訊端 』停止工作’或控制端點不支援該控制指令。 PID識別合計&彳立元,為防通訊失誤,予以反向附 加4位元,形成合計8位元以昇幂方式排列,分兩次於兩 組時脈中完成傳輸。如圖6中所示者。接收端收到正確完整 的PID及PID,,且PID = (PID,),即確認所收到pid正 確無誤。 (3)通訊端點-Endpoint 通訊端點係支援小型記憶卡介面之小型記憶卡或10卡 與電子應用震置1〇〇進行資料傳輸之基本單位。對應個別通 於小型記憶卡或⑴卡中,具備特定容量大小之資 料緩衝區’作為暫時存儲電子應用裝置100與小型記憶卡之 19 1261788 間通訊封包所酬載資料之用。 支援小型記憶卡介面之小型記憶卡或10卡,最高可支 援16組通訊端點,分別以通訊封包中之通訊端點位址指定 封包傳輸之對象。 支援小型記憶卡介面之小型記憶卡或1〇卡,至少須具 備一組通訊端點,其位址設定為〇。電子應用裝置1〇〇透過 小型記憶卡介面偵測到小型記憶卡插置後,即可透過通訊端 點〇取得有關小型記憶卡之識別碼、功能形式、支援通訊端 點數量、各通訊端點位址及通訊端點形式等相關資訊。 通訊端點區分為下列四種,分別適用於電子應用裝置 100與小型記憶卡或1〇卡之間進行不同型態之資料傳輸。 控制端點-小型記憶卡與1〇卡必須具備一組端點位址 為0之控制端點。控制端點之功能係容許電子應用裝置100 於啟動小型記憶卡時,取得小型記憶卡之識別碼、功能形 式、支援通訊端點數量、各通訊端點位址及通訊端點形式等 相關資訊。 資料輸入端點-用於容許電子應用裝置1〇〇自小型記 憶卡或10卡輸入大量資料。 資料輸出端點-用於容許電子應用裝置1〇〇將大量資 1261788 料輸出至小型記憶卡。 狀態中斷輸入端點-用於容許小型記憶卡或1〇卡設定 要求電子應用裝置100以設定之間_期,重複自小型記憶 卡或10卡輸入狀態中斷輸入資訊。 如圖7中所示者,傳輸標示封包藉由標示通訊端點,指 定後續資料封包或狀態封包對應之通訊端點。通訊端點在傳 輸標示封包中’以4位元,緊接著PID後面在—個時脈週 期中完成傳輸。 (4) 資料長度-Data Length 如圖8中所示者,在ENDP後,以3個時脈週期内傳輸i2 個位元代表DATA長度的DATL。DATL以1個位元組為 早位’ 0x000代表4096 jUM立元組,最小值為〇χ〇〇1代表 1個位元組。 (5) 酬载資料-Payload Data 1封包實際承載之資料⑽τ),並傳輸至通訊端點之資 成。DATL設定酬㈣料長度。傳輸時,每—位植分別於 2伽夺脈週_傳輸完畢。傳輸方向由電子應職置議於 线另J馬中指定,如圖9中所示者,。酬載資料最後附加Μ 寺脈週期之CRC16錯誤檢查碼。其中,CRC16之演算法 1261788 為除2求餘除法’更進一步可為具有G⑴= I式的夕項式除2求餘除法。資料傳輸順序如圖 10中所示 者。 - Packet Status Acknowledge 由接收資料之-方’ _健料魏完畢後,確認檢查 瑪是否符合’織鎌触絲顧接㈣料是紅確。若 正確完成接收,則傳回織,若暫時無法完成接收,或檢查 碼顯示資料有錯誤,則傳回謹要求重傳,若記憶卡内部 ^生錯誤’或執行指令結果發生錯誤,則伽STALL。如圖 11中所示者。 (7)資料格式 所有通訊封包均由電子應職置1GG (純端)發動進 打傳輸’資料封包_序依序為起始位元,封包識別碼,通 訊端點’資料長度,酬載資料,封包狀態碼,資料格式,結 束位元由系統端啟動資料傳輸,產生封包識別碼、指定通 訊端點及資料長度。 若封包屬於IN封包,裝置端收到上述資訊後,若未能 &即產生所需之資料’可回應裝置狀態碼臓 中止後續傳輪,並可隨”瓶動·,再度2= ,1261788 資料封包。若裝置端已可回應所需資料,則裝置端產生起始 位元,並緊接著開始傳回裝置内部通訊端點内所佔存之資 訊,待滿足系統端要求之資料長度後,隨即附加16位元之 CRC檢查碼。系統端收到檢查碼後,經檢查確認無誤,即可 傳回ACK。若資料有誤,則傳回眶,並可重新啟動封包, 以取得正確的資料。 若封包屬於OUT s SETUP封包,系統端於完成封包識 另J碼、通訊端點位址、資料長度後,隨即開始傳入擬傳入之 貝料,待達到系統端要求傳入之資料長度後,隨即附加16 位几之CRC檢查碼。裝置端收到檢查碼後,經檢查確認無 誤,即可傳S ACK。若資料有誤,則傳回祖,並且由系統 端主控決定是否飾啟_包,以取得正確資料。 (8)控制傳輸模式 電子應用褒龍〇可透過控制傳輸模式,自預設之傳輸 m取彳讀多功能記憶卡相關之魏,或設定其相關功 能。控制傳輸模式區分為腳p階段、ΜΤΑ階段、s_s 階段,其格式如下: 在SETUP階段’系統端將送出SETUP封包,包含 SETUP封包酬碼,料職健為^,㈣紐為8位 1261788 元組,接著由系統裝置送出8位元組之SETUP指令代碼與 參數與2位元組CRC16,最後由裝置端傳回狀態碼確認封 包是否接收正常。 在8位元組的指令與參數中,自第一位元組開始,分 別代表:bmRequestType、bRequest、wValue、wIndex、wLength 等其定義及用途請參閱USB標準。其中各個參數的意義可 參見圖11中的控制傳輸資料格式表: 偏移位址攔位名稱佔用空間(位元組)設定值說明 OBmReduestTypel位元值指令形式 D7:資料傳輸方向 〇 =讀寫裝置輸出至小型記憶卡 1 =小型記憶卡至讀寫裝置 D6…5:指令種類 〇 =標準指令 1 =裝置類別專屬指令 2 =廠商專屬特殊指令 3二保留 Μ···0··指令目標對象 1261788 〇二裝置本身 1 =介面 2 =通訊端點 3 =其他 4···31 =保留 lbRequestl設定值設定指令代碼(代碼參閱下表) 2wValue2設定值依不同指令代碼具備不同意義之設定 值,長度為兩個位元組 4wlndex2索引值依不同指令代碼具備不同意義之設定 值,用於指定索引值或偏移值 6wLength2數值設定資料長度 表一控制傳輸資料格式表 除標準指令碼以外,裝置類別專屬指令與廠商專屬特殊 指令均由個別裝置視其應用,或由廠商自行制定之。支援小 型記憶卡標準介面之小型記憶卡或1〇卡均必須必須支援標 準指令碼。標準指令碼之定義請參閱下表: bmRequestTypebRequestwVa1uewIndexwLengthDataThe design of the plug-in structure (including the insertion terminal and the slot). Four contacts can be arranged between the four contacts of the original USB; the plug-in structure of the sfmi interface of the present invention can be shared with the plug-in structure of the USB interface, and different plugs need to be configured separately. structure. Another feature of this interface is the 4-bit bidirectional bus bar, D〇 and D1 two sets of signal lines. When the electronic application device 1 uses a USB interface to connect the memory card, it is changed to (4) _ mode, shouting The D+ and D- signal lines required for the interface. It also supports the communication interface of the standard interface, so that it can be installed on a personal digital device or a digital device supporting the USB interface without any additional electronic application (10). The present invention also provides a multi-functional small memory card slot with a 4-pin and 8-pin design. The 4-pin design is used for the basic USB interface. The 8-pin design is used for the _ interface. The s introduction surface of the 8-pin position has four pins that are the same as the threat interface level, and the other four are inserted and distributed between the four-pin position. The slot is divided into a male slot and a female slot. Referring to Fig. 3, the main controller 22{) of the present invention comprises four components, a 1261788 I/〇 control 221, a memory controller 222, a formatter 223, and a - formatter 224. Wherein the 1/〇 main controller 221 is used to control the memory card, and 210 'includes the decision to operate the memory card 1/〇 function module ^ input mode operation or operate in output mode, or _ Interface or leg interface mode operation, etc. The memory main controller 222 is used to control the memory 230' and the formatter 223' and the deformatter (10) perform format conversion of the interface signal and the interface interface signal to match the memory card I/O function module. Operating poles. The current actions of the formatter 223, and the formatter will be described below. The system interface and the memory card are inserted into the detection signal: 'memory card insertion_recording, multi-function input and output control signal connected to the control chip in the memory cutting material, and the electronic application device 100 supporting the multifunctional small memory card interface Connected to the power supply via a resistor, in support of the (4) interface of the system side of the connection, the Wei Wei needle can be separated from the electronic device (10) _ interface, (4) sub-application device 1 〇〇 _ This signal achieves the versatility of whether the small memory card is inserted or positioned. ^Hidden card I / O ship module (4) measured · contains a power supply 310 ' - rib input _ end 32 〇, one (3) output tilt test end coffee, a first - 1261788 - polar body 360, - second two pole The body 370 is a first resistor 340 and a second resistor 350. The function of the memory card I/O function module determines whether the plug-in terminal is a USB interface or an SFMI interface by detecting the presence of the system interface and the memory card insertion detection signal (BD_CD). The small memory card is inserted into the electronic application device 100 supporting the small memory card interface. Since the electronic application device 1 continuously supplies power regardless of whether the small memory card is inserted or not, the small memory card should first maintain the CD signal when starting up. Impedance state, so as not to affect the BD-CD signal detection check action. Then, the status of the BD_CD signal is checked, and if the BD-CD signal status is high, it means that the system side supports the small memory card interface, and enters the small memory card interface operation mode. And then drive the output CD signal to a low potential, and notify the electronic application device 100 that the small memory card has been inserted and positioned; conversely, if the rib CD is low, it means that the BD-CD signal is not connected to the power supply through the resistor. The representative supports the USB interface and enters the USB interface operation mode. In the circuit shown in FIG. 4, the Vcc contact is connected to the power supply 31, and the system interface and the memory card insertion detection signal BD-CD are coupled to the BD input detection terminal 320 via the forwardly coupled first diode 360. The reversed-connected second diode 37 connects the CD output detection end, and the system interface and the memory card insertion detection signal 16 1261788 both the CD and the second resistor are connected to the ground terminal _, the Vcc and the system interface And connecting the first resistor to the fine signal inserted in the memory card. In the figure, the first resistance is 10 ΚΩ and the second resistance is ugly Ω, which is a preferred embodiment of the present invention, and other suitable values can also be used in the present day, without being limited to the # in the figure. χ佳贝 彳. The function of the first and second resistors is to boost BD-CD and Vcc to provide the required circuit operation. When the USB interface is inserted into the multi-function small memory card, referring to FIG. 4A, the first diode 360 will be turned on, and the rib input 32 is turned on, so that the speed can know that the inserted interface is the SFMI interface, and vice versa when the system interface When the memory card insertion detection signal BD-CD is not input, the first diode 36 is not turned on, so that the signal that is rounded is the USB interface signal. Conversely, in the output mode, when the output signal is the SFMI interface signal, the second diode 370 is turned on, and the known signal is the slap signal, and vice versa. Small memory card with multi-function communication interface: Multi-function small memory card interface adopts half-duplex, 4-bit stream mode, based on CLK signal, and each bit clock can transmit 4-bit information. The information transmission method is controlled by the electronic application device 1 and determines the data phase transmission length after the transmission command and the transmission length are issued. In order to improve the application of the interface and simplify the overall system design, the interface transmission is based on data packets. And the communication protocol uses the analog communication endpoint in the memory card as the source or sink of the information transmission. All the memory cards or 10 cards supporting the "multi-function small memory card interface" need at least Supports a set of communication endpoints, called "control endpoints" whose endpoint address is 0. The read/write device can obtain a detailed description of the memory card or the 10 card through the control terminal, learn the function and other communication endpoint settings, and perform appropriate settings, activate its function, and transmit the data. (1) Start bit/end bit_start bit / End bit When the electronic application device 100 and the memory card are used to start data transmission, they must be generated at the forefront of the data packet. The beginning position 兀 'adds two end periods of the clock period DO to D3 at the end of the billet packet. 2 Packet Flip Code—Paeket Identifier (pID) 凊 Refer to Figure 5, the communication packet self-packing packet identification code (10), and the type of identification code is different. Each-group# material seal contains 1.= package identification code: indicates the direction of the packet transmission data, the transmission endpoint address and the length of the material, 2. The data, which contains a set of data error 1261788 _ code '3·爿The packet status code 'receives the payload data' and returns the reception status confirmation data to be received correctly. The packet identification code_marking electronic application device 100 will perform the transmission of the data output. Packet identification code job No electronic application clothing 100 will carry out the data input transmission. The packet identification code 1101 indicates that the electronic_device (10) will set or obtain relevant information for the _ endpoint. The package is overwritten. _ The receiving end confirms the data packet and receives t. The packet identification code 1010 indicates that the information receiving end is temporarily unable to receive information, or the outgoing end is temporarily unable to transmit information. The packet identification code 111G indicates that the communication terminal "stops working" or the control terminal does not support the control command. PID identification total & 彳立元, in order to prevent communication errors, add 4 bits in reverse, form a total of 8 bits in ascending power, and divide the transmission twice in two sets of clocks. As shown in Figure 6. The receiving end receives the correct complete PID and PID, and PID = (PID,), which confirms that the received pid is correct. (3) Communication Endpoint - The Endpoint communication endpoint is a basic unit that supports a small memory card or a 10-card with a small memory card interface and an electronic application to transmit data. Corresponding to the individual small-size memory card or (1) card, the data buffer with a specific capacity size is used for temporarily storing the data carried by the communication package between the electronic application device 100 and the small memory card. A small memory card or 10 cards supporting a small memory card interface can support up to 16 communication endpoints, and specify the packets to be transmitted by the communication endpoint address in the communication packet. A small memory card or a 1-inch card that supports a small memory card interface must have at least one set of communication endpoints with the address set to 〇. After detecting the insertion of the small memory card through the small memory card interface, the electronic application device can obtain the identification code, the function form, the number of communication terminals, and the communication terminal of the small memory card through the communication terminal. Information about the address and the form of the communication endpoint. The communication endpoints are divided into the following four types, which are respectively applicable to different types of data transmission between the electronic application device 100 and a small memory card or a 1-inch card. Control Endpoint - A small memory card and a 1st card must have a set of control endpoints with an endpoint address of 0. The function of the control endpoint allows the electronic application device 100 to obtain information such as the identification code, the functional form of the small memory card, the number of communication terminals supported, the address of each communication endpoint, and the form of the communication endpoint when the small memory card is activated. Data Entry Endpoint - Used to allow the electronic application device 1 to input a large amount of data from a small memory card or 10 cards. Data Output Endpoint - Used to allow the electronic application device to output a large amount of 1261788 material to a small memory card. Status Interrupt Input Endpoint - Used to allow small memory card or 1 card setting. The electronic application device 100 is required to interrupt the input information from the small memory card or the 10-card input state by the setting period. As shown in FIG. 7, the transport indication packet specifies the communication endpoint corresponding to the subsequent data packet or status packet by indicating the communication endpoint. The communication endpoint transmits in the transmission indication packet by 4 bits, followed by the PID in the clock cycle. (4) Data length - Data Length As shown in Fig. 8, after ENDP, i2 bits representing the length of the DATA DATL are transmitted in 3 clock cycles. DATL takes 1 byte as the early position ' 0x000 for 4096 jUM triad, and the minimum value is 〇χ〇〇1 for 1 byte. (5) Remuneration data - the information (10) τ) actually carried by the Payload Data 1 packet and transmitted to the communication endpoint. DATL sets the salary (four) material length. During transmission, each station is separated by 2 gamma pulses. The direction of transmission is specified by the electronic application in the line J, as shown in Figure 9. The payload data is appended with the CRC16 error check code of the temple cycle. Among them, the algorithm CRC16 1261788 is divided by 2 and the remainder method can be further divided into two equations with G(1)=I. The data transmission sequence is as shown in FIG. - Packet Status Acknowledge After receiving the data - the party ' _ Jian Wei Wei finished, confirm that the inspection of the horse is in compliance with the woven fabric contact (four) is red. If the reception is completed correctly, it will be returned to the weaving. If the reception cannot be completed temporarily, or the inspection code indicates that there is an error in the data, it will be sent back to request retransmission. If the internal error of the memory card is incorrect or the result of the execution instruction is wrong, then the STALL . As shown in Figure 11. (7) Data format All communication packets are sent by the electronic application 1GG (pure end) to transmit the 'data packet _ sequence as the starting bit, packet identification code, communication endpoint 'data length, payload data The packet status code, data format, and end bit are initiated by the system to transmit data, and the packet identification code, the designated communication endpoint, and the data length are generated. If the packet belongs to the IN packet, if the device receives the above information, if it fails to generate the required data, it can respond to the device status code to stop the subsequent transmission, and can follow the bottle movement, again 2 = , 1261788 Data packet. If the device end can respond to the required data, the device generates a start bit, and then starts to return the information stored in the internal communication terminal of the device. After the data length required by the system is satisfied, The 16-bit CRC check code is added. After receiving the check code, the system can return the ACK after checking and confirming the error. If the data is incorrect, it will be sent back and the packet can be restarted to get the correct data. If the packet belongs to the OUT s SETUP packet, after the system completes the packet and recognizes the J code, the communication endpoint address, and the data length, the system then starts to import the incoming data, and the length of the data to be transmitted by the system is required. After that, the 16-digit CRC check code is added. After receiving the check code, the device can pass the S ACK after checking and confirming it. If the data is incorrect, it will be sent back to the ancestor, and the system-side master decides whether to decorate it. Kai _ package to (8) Control transmission mode electronic application 褒龙〇 can control the transmission mode, read the multi-function memory card related Wei from the preset transmission m, or set its related functions. Control transmission mode is divided into feet The p phase, the ΜΤΑ phase, and the s_s phase have the following format: In the SETUP phase, the system will send a SETUP packet containing the SETUP packet payload, the job security is ^, and the (4) button is the 8 bit 1261788 tuple, which is then sent by the system device. 8-bit SETUP instruction code and parameter and 2-byte CRC16, and finally the device side returns the status code to confirm whether the packet is received normally. In the 8-bit instruction and parameters, starting from the first byte, Representation: bmRequestType, bRequest, wValue, wIndex, wLength, etc. For definition and use, please refer to the USB standard. The meaning of each parameter can be seen in the control transmission data format table in Figure 11: Offset address block name occupied space (bit Tuple) setting value description OBmReduestTypel bit value command form D7: data transmission direction 〇 = read/write device output to small memory card 1 = small memory card to read/write device D6...5: Command type 标准=standard command 1=device class exclusive instruction 2=vendor-specific special instruction 3 two reserved Μ···0·· instruction target object 1261788 〇2 device itself 1 = interface 2 = communication end point 3 = Other 4···31 = Reserved lbRequestl setting value setting instruction code (code refers to the following table) 2wValue2 setting value has different meaning setting values according to different instruction codes, length is two bytes 4wlndex2 index value is different according to different instruction codes Set value of meaning, used to specify index value or offset value 6wLength2 value setting data length table - control transmission data format table In addition to standard instruction code, device class exclusive instructions and vendor-specific special instructions are applied by individual devices, or It is developed by the manufacturer itself. A small memory card or a 1-inch card that supports the small memory card standard interface must support the standard script code. See the following table for definitions of standard scripts: bmRequestTypebRequestwVa1uewIndexwLengthData

00000000B00000000B

00000001B 25 1261788 00000010BCLEAR_FEATUREFeature SelectorOO 無 lOOOOOOBGETJONFIGURATIONOOl 組態設定值 lOOOOOOBGET—DESCRIPTOR描述元種類與索引值〇或語 言代碼描述元長度描述元資料 10000001BGET^.STATUS00 介面碼00000001B 25 1261788 00000010BCLEAR_FEATUREFeature SelectorOO None lOOOOOOBGETJONFIGURATIONOOl Configuration Settings lOOOOOOBGET—DESCRIPTOR Description Metatype and Index Value〇 or Language Code Description Meta Length Description Metadata 10000001BGET^.STATUS00 Interface Code

端點碼2取得裝置、介面、或傳輸端點狀態 0000000BSET_ADDRESS 裝置位址 00 無 OOOOOOOBSET_CONFIGURATION 組態設定值 〇〇 無 OOOOOOOBSET-DESCRIPTOR描述元種類與索引碼〇或語 言代碼描述元長度描述元 00000000B 00000001BEndpoint code 2 fetch device, interface, or transport endpoint status 0000000BSET_ADDRESS device address 00 no OOOOOOOBSET_CONFIGURATION configuration set value 〇〇 none OOOOOOOBSET-DESCRIPTOR description meta type and index code 〇 or language code description meta length description element 00000000B 00000001B

OOOOOOlOBSET—FEATUREFeature SelectorO 介面碼 端點碼0無 OOOOOOOlBSET—INTERFACEAlternate Setting 介面碼 〇 Μ. 表一 標準指令代碼表· 1261788 在資料階段,視bRequest代碼及wLength,來決定後 、’i資料街段傳輪之方向及長度。並由系統端啟動依一般資料 傳輸作業進行,傳輸長度依設定。 在狀態階段,資料階段完成後,視資料階段之方向,由 接收資料之一方傳回狀態碼確認資料傳輸結果是否正確。 (9)多功能小型記憶卡介面之應用 多功能小型記憶卡介面可應用於不同之用途,前述僅涵 蓋實體層之定義,並未關其應用躺。於補充做適用之 才曰令集與通訊協定,即可應用於儲存裝置、通訊裝置,或其 他適用之應用領域。 练上所陳,本發明無論就目的、手段及功效,在在均顯 示其迥異於習知技術之特徵,為網路封包分類之設計上的一 大突破’懇請f審查委員明察,早日賜准專利,俾嘉惠社 會’實感德便。惟應注意的是,上述諸多實施例僅係為了便 於說明而舉躺已’本發明所主張之侧範圍自應以申請專 利範圍所料準,而_限於上述實施例。 【圖式簡單說明】 圖1不本發明之具有乡舰觀介面之小型記針及對接之 1261788 電子應用裝置的基本架構。 圖2示本發明中SFMI介面之各個插腳的定義及功能。 圖3示本發明中主控制器的基本結構。 圖4示本發明偵測電路的元件配置圖,其中圖4A為對接SFMI 介面的狀態;圖4B為對接USB介面的狀態。 圖5示本發明中封包識別碼的内容。 圖6示本發明中封包識別碼的資料結構及該資料結構與時脈 的關係圖。 旧示本發明巾通信端點的資料結構及該____ 關係圖。 圖8示本發明中資料長度的資料結構及該資料結構與時脈的 圖9示本發明中資料傳輸順序的 脈的關係圖。 資料結構及該資料結構與時 構及該資 構及該資 料結構與時 料結構與時 圖10示本發明中錯誤檢查碼的資料結 脈的關係圖。 圖Π示本發明中封包狀態碼的資料結 脈的關係圖。 【主要元件符號說明】 28' 1261788 100電子應用裝置 110裝置模組 120格式轉換器OOOOOOlOBSET—FEATUREFeature SelectorO interface code endpoint code 0 no OOOOOOOlBSET—INTERFACEAlternate Setting interface code 表. Table 1 standard instruction code table · 1261788 In the data phase, depending on the bRequest code and wLength, after the decision, the 'i data street segment Direction and length. It is started by the system side according to the general data transmission operation, and the transmission length is set according to the setting. In the status phase, after the data phase is completed, depending on the direction of the data phase, the status code is returned by one of the received data to confirm whether the data transmission result is correct. (9) Application of multi-function small memory card interface The multi-function small memory card interface can be applied to different purposes. The foregoing only covers the definition of the physical layer, and does not apply to the application. Supplementary and applicable protocols and communication protocols can be applied to storage devices, communication devices, or other applicable applications. In the practice of the invention, the present invention, regardless of its purpose, means and efficacy, is showing its distinctive features of the prior art, and is a major breakthrough in the design of the classification of network packets. Patent, 俾嘉惠社会's real feelings. It is to be noted that the various embodiments described above are merely for ease of explanation and that the scope of the invention is intended to be limited by the scope of the application, and is limited to the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic diagram of the basic structure of the 1261788 electronic application device having the small-sized needle and docking interface of the present invention. Figure 2 shows the definition and function of the various pins of the SFMI interface in the present invention. Fig. 3 shows the basic structure of the main controller in the present invention. 4 is a component configuration diagram of the detecting circuit of the present invention, wherein FIG. 4A is a state in which the SFMI interface is docked; and FIG. 4B is a state in which the USB interface is docked. Figure 5 shows the contents of the packet identification code in the present invention. Figure 6 is a diagram showing the data structure of the packet identification code and the relationship between the data structure and the clock in the present invention. The data structure of the communication endpoint of the invention and the ____ diagram are shown. Fig. 8 is a view showing the data structure of the data length in the present invention and the structure of the data and the clock. Fig. 9 is a view showing the relationship of the data transmission sequence in the present invention. The data structure and the structure and structure of the data and the structure and the structure and time structure of the data are shown in Fig. 10 as a relationship diagram of the data of the error check code in the present invention. The figure shows the relationship diagram of the data link of the packet status code in the present invention. [Main component symbol description] 28' 1261788 100 electronic application device 110 device module 120 format converter

130裝置I/O 200多功能小型記憶卡 210記憶卡I/O功能模組 220主控制器 221 I/O控制器 222記憶體控器 223格式器 224解格式器 230記憶體 310電源 320 BD輸入 330 CD輸入 340第一電阻 350第二電阻130 device I / O 200 multi-function small memory card 210 memory card I / O function module 220 main controller 221 I / O controller 222 memory controller 223 formatter 224 formatter 230 memory 310 power supply 320 BD input 330 CD input 340 first resistor 350 second resistor

Claims (1)

1261788 十、申請專利範圍: 1·一種具有多功能通訊介面之小型記憶卡,其介面係採用半 雙工’ 4位元串流方式,以時脈(CL1Q信號為基準,而每一 時脈可傳輪4位元資訊DO,Dl,D2,D3,其中,介面傳輸 以貧料封包(Packet)為單位,且其通訊協定係以記憶卡 内杈擬之通訊端點(en(ip〇int)為資訊傳輸之來源 (source)或目標(sink),其中資料封包具有起始位元, 亍匕識別馬,通訊端點,資料長度,酬載資料,封包狀態 碼,資料格式,結束位元。 2·如申請專利範圍第1項之小型記憶卡,其中資料封包最前 端產生-個在—時脈週射4位元均為G讀始位元。 3. 如申請專·圍第丨項之小型記憶卡,其中封包最末 端附加長兩伽械職且D(H)3均為丨之結束位元。 4. 如申請專利範圍第丨項之小型記憶卡,其中通訊封包自封 識別馬(PID)帛始,並依據糊碼種類不㈤,得應用於 不同場合,每一組資料封包含有: 封匕識別碼·標不封包傳輸資料的方向,傳輸端點位址, 及資料長度; 酬載資料,内含一組CRC 資料錯誤偵測代碼;以及 30 1261788 封匕狀怨碼,接收酬載資料的一方,傳回接收狀態確認資 料是否正確收到。 5. 如申請專利範圍第w之小型記憶卡 ’其中封包識別碼合 °十4位元’為防通訊失誤,予以附加位元排序反向的4位 几’形成合計8位元以4冪方式排列,分兩次於兩組時脈 中完成傳輸。 6. 如申請專利範圍第4項之小型記憶卡,其中封包識別碼標 示電子應用I置將進行資料輸出之傳輸。 7. 如申請專利範圍第6項之小型記憶卡,其中封包識別碼為 0001。 8. 如申請專利範圍第4項之小型記憶卡,其中封包識別碼標 不為電子應用装置將進行資料輪入之傳輪。 9. 如申請專·_紹、敎齡,射細別碼為 10(H。 10. 如申請專侧第4項之小物卡,其中封包識別碼標 不電子應躲職妨賴取得相關資 訊。 11·如申睛專利範圍第1〇項之 h己卡,其中封包識別碼 為 1101 〇 1261788 12. 如申請專利範圍第4項之小型記憶卡,其中封包識別碼標 示資訊接受端確認資料封包收妥。 13. 如申請專利範圍第12項之小型記憶卡’其中封包識別碼 為 0010 〇 14. 如申請專利範圍第4項之小型記憶卡,其中封包識別碼標 示資訊接受端暫時無法接收資訊,或傳送端暫時無法傳出 資訊。 15·如申請專利範圍第14項之小型記憶卡,其中封包識別碼 為 1010 。 16·如申請專利範圍第4項之小型記憶卡,其中封包識別碼標 示通訊端點停止工作,或控制端點不支援該控制指令。 17·如申請專利範圍第14項之小型記憶卡,其中封包識別碼 為 1110 。 18·如申請專利範圍第4項之小型記憶卡,其中傳輸標示封包 係標示通訊端點,而指定資料封包或狀態封包係對應之通 訊端點’通訊端點在傳輸標示封包中,係以4位元且PID 將在一個時脈週期中完成傳輸。 19·如申請專利範圍第4項之小型記憶卡,其中對應個別通訊 端點,而於小型記憶卡或1〇卡中,具備有特定容量大小之 32 12^1788 貝料缓衝區’作騎時存儲電子顧裝置與彳、型記憶卡之 間之通訊封包所酬载資料之用。 齡申請專利範圍第4項之小型記憶卡,其中支援小型記憶 卡’I面之小型讀、卡或IQ卡,最高可支援16組通訊端點, 而分別以通訊封包中之通訊端點位址為指定封包傳輸之對 象。 21.如申凊專利乾圍第4項之小型記憶卡,其中支援小型記憶 卡”面之小型疏卡或1()卡,至少須具備—組通訊端點, 其位址設定為〇,當電子應用裝置藉由小型記憶卡介面谓 測到小型記憶卡插置後’即可透過通訊端點0而取得有關 小型記憶卡之識別碼、功能形式、支援通訊端點數量、各 通訊端點位址及通訊端點形式等相關資訊。 說如申請專利範圍第4項之小型記憶卡,其中通訊端點包含 控制端點,即小型記憶卡與1()卡必須具備_組控制端點, 其功能係容許電子顧健於啟動小型記憶切,取得小 型記憶卡之碼、魏形式、域舰端陳量、各通 訊端點位址及通訊端點形式等相關資訊。 23.如申請專利範圍第4項之小型記憶卡’其中通訊端點包含 資料輸入端點,係用於容許電子應用裝置自小型記憶卡或 33 I261788 10卡輪入大量資料。 24·如申請專利範圍第4項之小型記憶卡,其中通訊端點包含 貪料輪出端點,係用於容許電子應用襄置將大量資料輸出 至小型記憶卡。 5·如申睛專利挑圍第4項之小型記憶卡,其中通訊端點包含 狀態中斷輸入端點,係用於容許小型記憶卡或1〇卡設定要 求電子應用裝置以設定之間隔週期,重複自小型記憶卡或 10卡輪入狀態中斷輸入資訊。 26·如申睛專利範圍第1項之小型記憶卡,其中於3個時脈週 期内,傳輪12個位元為代表傳輸數據長度。 27·如申請專利範圍第26項之小型記憶卡,其中雜數據長 度係以1個位元組為單位,最大長度為4〇96個位元組, 最小長度為1個位元組。 28. 如欠申請專利範圍第1項之小型記憶卡,其中封包為實際承 載資料’並傳輸至通訊端點,每一位元組分別於2個時脈 週期内傳輪完畢,傳輸方向係由電子應用裳置往所指定之 封包識別瑪。 29. 如申請專利範圍第28項之小型記憶卡,其中酬載資料最 後附加錯誤檢查碼。 34 、1261788 3〇.如申請專利範圍第29項之小型記憶卡’其中錯誤檢查碼 長度為16個時脈週期。 礼如申請專利範圍㈣項之小型記憶卡,其中錯誤檢查碼 之#法係採除2求餘除法,其包含多項式除2求餘除法。 32·如申請專利範圍第(項之小型記憶卡,其中由接收資料之 一方,於酬载資料接收完畢後,確認檢查碼是否符合,然 後依據接收結果確認接收資料是否正確,若正確完成接 收’則傳回接收無誤(acknowledge)信號。 33·如申請專利細第1項之小型記憶卡,其巾接收資料之一 方若暫時無法完成接收,或檢查碼顯示資料有錯誤時,則 傳回接收有問題(non-acknowledge)信號,要求重傳。 34·如申請專利範圍第1項之小型記憶卡,其中接收資料之一 方,若記憶卡内部發生錯誤,或執行指令結果發生錯誤, 則傳回指令錯誤(stall)信號。 35·如申睛專利範圍第丨項之小型記憶卡,其中又包含一控制 傳輪模式,係自預設之傳輸端點取得與多功能記憶卡相關 之資訊’或設定其相關功能。 36·如申睛專利範®第34項之小型記憶卡,其中控制傳輸模 式區分為設定(SETUP)階段,數據(DATA)階段,狀態 35 1261788 (STATUS)階段。 37·如申請專利範圍第36項之小型記憶卡,其中在SETUp階 段中,系統端送出SETUP封包,其包含有SETUP封包識 別碼,通訊端點位址,及傳輸資料,其次由系統裝置送出 SETUP指令代碼,參數與CRC,最後由裝置端傳回狀態碼 確認封包是否接收正常。 38·如申明專利範圍第37項之小型記憶卡,其中資料長度為 8位元組’ SETUP指令代碼與參數為8位元組,CRC為2 位元組CRC16。 39.如申請專利範圍第38項之不型記憶卡,其中在指令與參 數中,包含指令形式,尚含 資料傳輸方向,具有電+處壯, 电于應用裝置輸出至小型記憶卡及小 型記憶卡至電子應崎置兩方向; 装置類別專屬指令,廠商專屬特 指令種類,含標準指令, 殊指令,及保留; 才曰令目標對象,含裝置本身 身,介面,通訊端點,及其他。 40·如申請專利範圍第38 $之小型記憶卡,其中在指令與參 數中,包含設定指令代螞。 41·如申請專利範圍第38 ’之小型記憶卡,其中在指令與參 36 1261788 數中,包含依不同指令代碼具備不同意義之設定值的參數。 42. 如申請專利範圍第38項之小型記憶卡,其中在指令與參 數中,包含依不同指令代碼具備不同意義之奴值的參 數,係用於指定索引值或偏移值。 43. 如申請專利範圍第38項之小型記憶卡,其中在指令與參 數中,包含設定資料長度的參數。 44. 如申請專利範圍第36項之小型記憶卡,其中在狀態階 段’當資料階段完成後,視資料階段之方向,由接收資料 之一方傳回狀態碼以確認資料傳輸結果是否正確。 45. -種格式器㈤耐㈣,係將數據轉換成具有多功能通 訊介面之小型記憶卡(_),其中數據由記憶體輸出後, 即格式化成符合具有多功能通訊介面之小型記憶卡之通信 資料封包;該資料封包具有起始位元,封包識別碼,通訊 端點,資料長度,酬載資料,封包狀態碼,資料格式,結 束位元。 ° 仇如申請專利範圍第45項之格式器,其中資料封包依序為 起始位-,封包識別碼,通訊端點,資料長度,酬載資料, 封包狀態瑪,資料格式,及結束位元。 从如申請專侧第46項之格式器,射通訊封包自封包 37 ,1261788 識別碼(PID)㈤始’並視識別碼種類不同,得應用於不同 場合,每一組資料封包含有: 封包識別碼:標示封包傳輸資料的方向,傳輸端點位址, 及資料長度,以及 酬載貝料’内含-組CRC資料錯誤偵測代碼;以及 封包狀態碼,接收酬載資料的一方,傳回接收狀態確認資 料是否正確收到。 48.-種格式轉換器(f〇rmat c〇nverter),係將資料封包 轉換成具有多功能通訊介面之小型記憶卡;其係將_資 料封包解包封,然後將所得的數據格式化成符奋小型記憶 卡之通信資料封包’該小型記憶卡之資料封包具有起始位 元’封包識別碼,通訊端點,資料長度,酬載資料,封包 狀態碼,資料格式,及結束位元。 饥如申請專利範圍第48項之格式轉換器’其中資料封包依 序為起始位元’封包識別碼’通訊端點,資料長度,酬載 資料’封包狀態碼,資料格式,結束位元。 5〇.如申請專利範圍第48項之格式轉換器,其中通訊封包自 封包識別碼⑽)開始’並視識別碼種類不同,得應用於 不同場合,每一組資料封包含有·· 38 1261788 封包識別碼:標示封包傳輸資料的方向,傳輸端點位址, 及資料長度,以及 酬載資料,内含一組CRC資料錯誤偵測代碼;以及 封包狀態碼,接收酬載資料的一方,傳回接收狀態確認資 料是否正確收到。1261788 X. Patent application scope: 1. A small memory card with multi-functional communication interface, the interface adopts half-duplex '4-bit stream method, with clock (CL1Q signal as the reference, and each clock can be transmitted Round 4-bit information DO, Dl, D2, D3, wherein the interface transmission is in the form of a packet of poor materials, and the communication protocol is based on the communication terminal (en(ip〇int) in the memory card) The source or sink of the information transmission, in which the data packet has a starting bit, a 亍匕 identifying horse, a communication endpoint, a data length, a payload data, a packet status code, a data format, and an end bit. · For example, the small memory card of the first application of the patent scope, in which the data packet is generated at the forefront of the front end - the clock is 4 bits of the G-reading position. 3. If the application is small, the small item is small. The memory card, in which the end of the package is attached with a long two-gauge and D(H)3 is the end of the 。. 4. A small memory card as claimed in the patent application, in which the communication packet self-styled identification horse (PID) Start, and depending on the type of paste code (5), it must be applied to no Occasionally, each set of data seals includes: a seal identification code, a direction of the packet transmission data, a transmission endpoint address, and a data length; a payload data containing a set of CRC data error detection codes; and 30 1261788 The sealed complaint code, the party receiving the payload data, returns the receipt status confirmation data is correctly received. 5. If the patent application scope w of the small memory card 'where the packet identification code is ° 10 4 ' In the case of communication errors, the additional bits are reversed and the four bits are formed to form a total of eight bits arranged in a four-power manner, and the transmission is completed twice in two sets of clocks. 6. Small memory as in claim 4 The card, wherein the packet identification code indicates that the electronic application I is to transmit the data output. 7. If the small memory card of claim 6 is applied, the packet identification code is 0001. 8. The small size of the patent application category 4 The memory card, wherein the packet identification code is not the transmission wheel in which the electronic application device will carry the data. 9. If the application is _ Shao, the age of the film is 10 (H. 10. If the application is on the 4th item Small object card, in which the identification code of the packet is not electronic, it is necessary to obtain relevant information. 11·If the application of the scope of the patent scope is the first one, the packet identification code is 1101 〇 1261788. 4 small memory cards, in which the packet identification code indicates that the information receiving end confirms that the data packet is received. 13. If the small memory card of claim 12 is applied, the packet identification code is 0010 〇 14. If the patent application scope is 4 The small memory card of the item, wherein the packet identification code indicates that the information receiving end is temporarily unable to receive the information, or the transmitting end is temporarily unable to transmit the information. 15. A small memory card as claimed in item 14 of the patent scope, wherein the packet identification code is 1010. 16. A small memory card as claimed in claim 4, wherein the packet identification code indicates that the communication endpoint has stopped working, or the control terminal does not support the control command. 17. A small memory card as claimed in item 14 of the patent application, wherein the packet identification code is 1110. 18. A small memory card as claimed in claim 4, wherein the transmission label is a communication endpoint, and the designated data packet or status packet corresponds to a communication endpoint 'the communication endpoint is in the transmission label packet, which is 4 The bit and the PID will complete the transfer in one clock cycle. 19. A small memory card as claimed in item 4 of the patent application, which corresponds to an individual communication endpoint, and in a small memory card or a 1 〇 card, has a specific capacity of 32 12 ^ 1788 bedding buffer 'for riding The data stored in the communication packet between the device and the memory card is stored. The small memory card of the fourth application patent scope, which supports the small memory card 'I side of the small read, card or IQ card, up to 16 groups of communication endpoints, respectively, and the communication endpoint address in the communication packet The object to be transferred for the specified packet. 21. For a small memory card of the fourth paragraph of the patent application, in which a small memory card or a 1 () card supporting a small memory card is required, at least a communication terminal must be provided, and the address is set to 〇, when The electronic application device can detect the identification code, the function form, the number of communication terminals, and the communication terminal positions of the small memory card through the communication terminal 0 by means of the small memory card interface. Information about the address and the format of the communication endpoint. For example, a small memory card as claimed in claim 4, wherein the communication endpoint includes a control endpoint, that is, the small memory card and the 1 () card must have a _ group control endpoint, The function allows the electronic camera to start small memory cuts, and obtain information such as the code of the small memory card, the Wei form, the domain end of the ship, the address of each communication endpoint, and the form of the communication endpoint. 4 small memory cards' where the communication endpoints contain data input endpoints, which are used to allow electronic applications to transfer large amounts of data from small memory cards or 33 I261788 10 cards. 24·If you apply for patent item 4 The type of memory card, wherein the communication end point includes the greedy wheel out terminal, which is used to allow the electronic application device to output a large amount of data to the small memory card. 5. If the application of the patent is selected, the small memory card of the fourth item, wherein The communication endpoint includes a status interrupt input endpoint, which is used to allow the small memory card or the 1 card setting to require the electronic application device to repeat the input information from the small memory card or the 10 card wheeled state interrupt at the set interval period. The small memory card of the first item of the patent scope, in which the 12 bits of the transmission wheel represent the length of the transmission data in 3 clock cycles. 27·The small memory card of the 26th item of the patent application, in which the data is miscellaneous The length is in units of 1 byte, the maximum length is 4〇96 bytes, and the minimum length is 1 byte. 28. If the small memory card of the first application of the patent scope is owed, the packet is actual. The bearer data is transmitted to the communication endpoint, and each tuple is transmitted in two clock cycles, and the transmission direction is set by the electronic application to the designated packet identification. 29. The small memory card of item 28, in which the error data is attached with the error check code. 34, 1261788 3〇. For the small memory card of claim 29, the length of the error check code is 16 clock cycles. Apply for the small-size memory card of the patent scope (4), in which the error check code is #法法除除2余余除法, which includes the polynomial divide by 2 and the remainder of the division. 32. If you apply for the patent scope (the small memory card, which consists of After receiving the data, confirm whether the check code is consistent, and then confirm whether the received data is correct according to the receiving result. If the receiving is completed correctly, the receiving acknowledgement signal is returned. 33·If the patent application is fine In the small memory card of item 1, if one of the received data of the towel cannot be received temporarily, or if the check code indicates that there is an error in the data, a non-acknowledge signal is transmitted back to request retransmission. 34. If the small memory card of the first application of the patent scope is used, one of the received data, if an error occurs inside the memory card, or an error occurs in the execution of the instruction result, the command error (stall) signal is returned. 35. The small memory card of the third item of the scope of the patent application, which further comprises a control transmission mode, which obtains information related to the multifunctional memory card from the preset transmission end point or sets its related function. 36. The small memory card of claim 34, wherein the control transfer mode is divided into a SETUP phase, a data phase, and a state 35 1261788 (STATUS) phase. 37. The small memory card of claim 36, wherein in the SETUp phase, the system sends a SETUP packet, which includes the SETUP packet identification code, the communication endpoint address, and the transmission data, and the system device sends the SETUP. The instruction code, parameters and CRC, and finally the device side returns the status code to confirm whether the packet is received normally. 38. A small memory card as claimed in item 37 of the patent scope, wherein the data length is 8 bytes. The SETUP command code and parameters are 8 bytes, and the CRC is 2 bytes CRC16. 39. The non-type memory card of claim 38, wherein the instruction and the parameter include the instruction form, and the data transmission direction is included, and the electric device is strong, the electric device is output to the small memory card and the small memory. The card is connected to the electronics in two directions; the device type exclusive instruction, the manufacturer's exclusive special instruction type, including standard instructions, special instructions, and reservations; the target object, including the device itself, interface, communication endpoint, and others. 40. For example, the small memory card of the patent application No. 38 $, in which the command and the parameter include the setting command generation. 41. A small memory card as claimed in the 38th section of the patent application, wherein the number of instructions and the parameter 36 1261788 includes parameters having different set values according to different instruction codes. 42. A small memory card as claimed in item 38 of the patent application, in which the parameters and the parameters containing the different values of the different instruction codes are used to specify the index value or the offset value. 43. A small memory card as claimed in claim 38, wherein the commands and parameters include parameters for setting the length of the data. 44. If the small memory card of claim 36 is applied, in the status stage, when the data phase is completed, depending on the direction of the data phase, the status code is returned from one of the received data to confirm whether the data transmission result is correct. 45. - Formatter (5) Resistance (4), which converts data into a small memory card (_) with a multi-functional communication interface. After the data is output by the memory, it is formatted into a small memory card with a multi-functional communication interface. The communication data packet; the data packet has a start bit, a packet identification code, a communication end point, a data length, a payload data, a packet status code, a data format, and an end bit. ° Qiuru applied for the formatter of item 45 of the patent scope, in which the data packet is in order of start-point, packet identification code, communication endpoint, data length, payload data, packet status, data format, and end bit . From the formatter of the application for the 46th item, the radio communication packet self-sealing package 37, 1261788 identification code (PID) (five), and depending on the type of identification code, it can be applied to different occasions. Each group of data seals includes: Code: indicates the direction of the packet transmission data, the transmission endpoint address, and the length of the data, as well as the payload-packaged 'inclusion-group CRC data error detection code; and the packet status code, the party receiving the payload data, and returns Receive status confirmation data is received correctly. 48.- format converter (f〇rmat c〇nverter), which converts the data packet into a small memory card with a multi-functional communication interface; it unpacks the data packet and formats the resulting data into a character The communication data packet of the Fen small memory card 'The data packet of the small memory card has the starting bit' packet identification code, communication end point, data length, payload data, packet status code, data format, and end bit. The format converter of the 48th item of the patent application scope is 'the data packet is in the order of the start bit' packet identification code' communication end point, data length, payload data 'package status code, data format, end bit. 5〇. If the format converter of the 48th patent application scope, the communication packet self-package identification code (10) starts with 'depending on the type of identification code, it can be applied to different occasions, each group of data seals contains · 38 1261788 Identification code: indicates the direction of the packet transmission data, the transmission endpoint address, and the data length, and the payload data, which contains a set of CRC data error detection codes; and the packet status code, the party receiving the payload data, and returns Receive status confirmation data is received correctly. 3939
TW91117942A 2002-08-09 2002-08-09 Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter TWI261788B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
TW91117942A TWI261788B (en) 2002-08-09 2002-08-09 Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter
JP2002340218A JP2004078880A (en) 2002-08-09 2002-11-25 Communication protocol of multi-functional small memory card
DE2003110770 DE10310770A1 (en) 2002-08-09 2003-03-12 Communication protocol for mini-memory card, has data that is transferred through semi-duplex process and four bitstreams of data transferred in parallel, and signal used as base clock in data transfer
DE20321576U DE20321576U1 (en) 2002-08-09 2003-03-12 Interface of a multi-function memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91117942A TWI261788B (en) 2002-08-09 2002-08-09 Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter

Publications (1)

Publication Number Publication Date
TWI261788B true TWI261788B (en) 2006-09-11

Family

ID=31185936

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91117942A TWI261788B (en) 2002-08-09 2002-08-09 Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter

Country Status (3)

Country Link
JP (1) JP2004078880A (en)
DE (1) DE10310770A1 (en)
TW (1) TWI261788B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI474168B (en) * 2009-09-24 2015-02-21 Toshiba Kk Semiconductor device and host

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI474168B (en) * 2009-09-24 2015-02-21 Toshiba Kk Semiconductor device and host
US9146866B2 (en) 2009-09-24 2015-09-29 Kabushiki Kaisha Toshiba Semiconductor device
USRE47290E1 (en) 2009-09-24 2019-03-12 Toshiba Memory Corporation Semiconductor device
USRE48514E1 (en) 2009-09-24 2021-04-13 Toshiba Memory Corporation Semiconductor device
USRE49424E1 (en) 2009-09-24 2023-02-21 Kioxia Corporation Semiconductor device

Also Published As

Publication number Publication date
DE10310770A1 (en) 2004-02-26
JP2004078880A (en) 2004-03-11

Similar Documents

Publication Publication Date Title
TWI287751B (en) Multi-functional small-form-factor memory card interface for use in a USB interface
TWI289313B (en) Removable electronic device and method thereof
US7069369B2 (en) Extended-Secure-Digital interface using a second protocol for faster transfers
TWI222564B (en) Flashtoaster for reading several types of flash memory cards with or without a PC
US7844763B2 (en) Differential data transfer for flash memory card
US7467249B2 (en) Efficient connection between modules of removable electronic circuit cards
JP2007172630A (en) Interface for removable electrical card
EP1632886A1 (en) Interface for a removable electronic device
JP2006507608A (en) Composite non-volatile memory / input / output card with direct memory access
US6776348B2 (en) Combined flash memory card driver
JP2006513491A (en) Means for communicating with a USB smart card using the fastest or fastest transfer
US20080126588A1 (en) Memory card
EP1403814B1 (en) Electronic apparatus, information processing apparatus, adapter apparatus, and information exchange system
TWI322535B (en) Adapter element, conversion apparatus and conversion method
TWI405087B (en) Differential data transfer for flash memory card
CN208141371U (en) A kind of multi-functional UART debugging board
TWI261788B (en) Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter
CN102544919B (en) Cable
CN100489758C (en) Method and apparatus for contactless ICC connectivity
CN101094464A (en) Device and method for handset to manage files in U disk
TWI281117B (en) Detachable interface I/O card device
US7137564B2 (en) Communication protocol for multi-functional mini-memory card suitable for small form memory interface and usb interfaces
CN1198196C (en) Multifunctional mini memory card interface adaptable for USB port
CN100426278C (en) Multi-function small memory card communication protocol
CN2590061Y (en) Multifunctional small-sized storing card and slot

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees