TWI654602B - Storage device and operating method thereof - Google Patents

Storage device and operating method thereof

Info

Publication number
TWI654602B
TWI654602B TW106146499A TW106146499A TWI654602B TW I654602 B TWI654602 B TW I654602B TW 106146499 A TW106146499 A TW 106146499A TW 106146499 A TW106146499 A TW 106146499A TW I654602 B TWI654602 B TW I654602B
Authority
TW
Taiwan
Prior art keywords
connector
electronic device
switching circuit
circuit
state
Prior art date
Application number
TW106146499A
Other languages
Chinese (zh)
Other versions
TW201812747A (en
Inventor
鍾明坤
王聖發
Original Assignee
慧榮科技股份有限公司
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 慧榮科技股份有限公司 filed Critical 慧榮科技股份有限公司
Publication of TW201812747A publication Critical patent/TW201812747A/en
Application granted granted Critical
Publication of TWI654602B publication Critical patent/TWI654602B/en

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Abstract

本發明揭露一種儲存裝置,包含一第一連接器、一第二連接器以及一記憶體電路。該第一連接器係選擇地連接於一第一電子裝置,且該第二連接器係選擇地連接於一第二電子裝置。該記憶體電路係連接於該第一連接器以及該第二連接器之間。其中,當該第一連接器連接於該第一電子裝置且該第二連接器連接於該第二電子裝置時,該第二連接器由一裝置模式切換至一充電模式,使得該第一電子裝置透過該儲存裝置對該第二電子裝置充電,該第二電子裝置不會經由該第二連接器供電給該儲存裝置,並且該第一電子裝置經由該第一連接器對該記憶體電路存取資料。 The invention discloses a storage device comprising a first connector, a second connector and a memory circuit. The first connector is selectively coupled to a first electronic device, and the second connector is selectively coupled to a second electronic device. The memory circuit is connected between the first connector and the second connector. When the first connector is connected to the first electronic device and the second connector is connected to the second electronic device, the second connector is switched from a device mode to a charging mode, so that the first electronic device The device charges the second electronic device through the storage device, the second electronic device does not supply power to the storage device via the second connector, and the first electronic device stores the memory circuit via the first connector Take the information.

Description

儲存裝置及其操作方法  Storage device and method of operating same  

本發明係涉及一種儲存裝置,特別係一種具有兩個連接器之儲存裝置。 The present invention relates to a storage device, and more particularly to a storage device having two connectors.

快閃記憶體裝置(例如快閃隨身碟)是現今非常普及的電子產品,由於體積小、重量輕並且可以儲存大量資料,因此廣泛地應用到各個領域。快閃記憶體裝置一般採用通用序列匯流排連接器(Universal Serial Bus Connector),可以插到另一電子裝置(例如桌上型電腦、筆記型電腦或平板電腦)的USB通用序列匯流排連接埠(USB port),而使得該電子裝置可以對快閃記憶體裝置讀取或寫入資料。 Flash memory devices (such as flash flash drives) are very popular electronic products today, and are widely used in various fields due to their small size, light weight, and the ability to store large amounts of data. A flash memory device generally uses a Universal Serial Bus Connector, which can be plugged into a USB universal serial bus connection port of another electronic device (such as a desktop computer, a notebook computer, or a tablet computer). USB port), so that the electronic device can read or write data to the flash memory device.

然而,筆記型電腦或平板電腦的設計越來越簡約,而使得筆記型電腦或平板電腦可能僅具有一個通用序列匯流排連接埠,因此當使用者將快閃記憶體裝置連接於唯一的通用序列匯流排連接埠來存取資料時,便無法再將筆記型電腦或平板電腦連接於其他電子裝置(例如智慧型手機)來對智慧型手機充電。 However, the design of a notebook or tablet is becoming more and more simple, so that a notebook or tablet may have only one universal serial bus connection, so when the user connects the flash memory device to a unique universal sequence. When the bus is connected to access data, it is no longer possible to connect the notebook or tablet to other electronic devices (such as smart phones) to charge the smart phone.

有鑑於此,一種可同時傳輸資料並對另一電子裝置充電之快閃記憶體裝置,便是現今值得研究的課題。 In view of this, a flash memory device capable of simultaneously transmitting data and charging another electronic device is a subject worthy of study today.

有鑑於此,本發明提出一種儲存裝置,以解決上述之問題。 In view of this, the present invention proposes a storage device to solve the above problems.

本發明揭露一種儲存裝置,其包含一第一連接器、一第二連接器、一切換電路、一控制器電路以及一記憶體電路。該切換電路係電性連接於該第一連接器與該第二連接器之間,且該切換電路包括一電源切換電路、一控制切換電路與一資料切換電路。該控制器電路係設置於該第一連接器與該第二連接器之間。該記憶體電路係設置於該第一連接器與該第二連接器之間。其中,當該第一連接器連接一第一電子裝置且該第二連接器連接一第二電子裝置時,該第一連接器由該第一電子裝置接收一供應電壓。該資料切換電路根據該供應電壓由一第二裝置狀態切換為一第一裝置狀態,使得該第一電子裝置經由該第一連接器、該資料切換電路以及該控制器電路對該記憶體電路存取資料。該控制切換電路根據該供應電壓由一第二控制狀態切換為一第一控制狀態,使得該第二連接器由一裝置模式切換至一充電模式。該電源切換電路根據該供應電壓由一關閉狀態切換至一開啟狀態,使得該供應電壓經由該第二連接器對該第二電子裝置充電。 The invention discloses a storage device comprising a first connector, a second connector, a switching circuit, a controller circuit and a memory circuit. The switching circuit is electrically connected between the first connector and the second connector, and the switching circuit comprises a power switching circuit, a control switching circuit and a data switching circuit. The controller circuit is disposed between the first connector and the second connector. The memory circuit is disposed between the first connector and the second connector. Wherein, when the first connector is connected to a first electronic device and the second connector is connected to a second electronic device, the first connector receives a supply voltage from the first electronic device. The data switching circuit switches from a second device state to a first device state according to the supply voltage, so that the first electronic device stores the memory circuit via the first connector, the data switching circuit, and the controller circuit. Take the information. The control switching circuit switches from a second control state to a first control state according to the supply voltage, so that the second connector is switched from a device mode to a charging mode. The power switching circuit switches from an off state to an on state according to the supply voltage, so that the supply voltage charges the second electronic device via the second connector.

本發明另揭露一種儲存裝置,包含一第一連接器、一第二連接器以及一記憶體電路。該第一連接器係選擇性地連接於一第一電子裝置,且該第二連接器係選擇性地連接於一第二電子裝置。該記憶體電路係連接於該第一連接器以及該第二連接器之間。其中,當該第一連接器連接於該第一電子裝 置且該第二連接器連接於該第二電子裝置時,該第二連接器由一裝置模式切換至一充電模式,使得該第一電子裝置透過該儲存裝置對該第二電子裝置充電,該第二電子裝置不會經由該第二連接器供電給該儲存裝置,並且該第一電子裝置經由該第一連接器對該記憶體電路存取資料。 The invention further discloses a storage device comprising a first connector, a second connector and a memory circuit. The first connector is selectively coupled to a first electronic device, and the second connector is selectively coupled to a second electronic device. The memory circuit is connected between the first connector and the second connector. When the first connector is connected to the first electronic device and the second connector is connected to the second electronic device, the second connector is switched from a device mode to a charging mode, so that the first electronic device The device charges the second electronic device through the storage device, the second electronic device does not supply power to the storage device via the second connector, and the first electronic device stores the memory circuit via the first connector Take the information.

本發明另揭露一種儲存裝置之操作方法,該儲存裝置包含一第一連接器、一第二連接器以及一記憶體電路,該第一連接器係選擇性地連接於一第一電子裝置,該第二連接器係選擇性地連接於一第二電子裝置,且該方法包含:當該第一連接器連接於該第一電子裝置且該第二連接器連接於該第二電子裝置時,該儲存裝置藉由該第一連接器擷取該第一電子裝置之一供應電壓;該第二連接器根據該供應電壓由一裝置模式切換至一充電模式;該儲存裝置藉由該第二連接器提供該供應電壓給該第二電子裝置,其中該第二電子裝置不會經由該第二連接器供電給該儲存裝置;以及該記憶體電路經由該第一連接器與該第一電子裝置傳輸資料。 The present invention further discloses a method of operating a storage device. The storage device includes a first connector, a second connector, and a memory circuit. The first connector is selectively connected to a first electronic device. The second connector is selectively connected to a second electronic device, and the method includes: when the first connector is connected to the first electronic device and the second connector is connected to the second electronic device, The storage device draws a voltage from one of the first electronic devices by the first connector; the second connector switches from a device mode to a charging mode according to the supply voltage; the storage device is configured by the second connector Providing the supply voltage to the second electronic device, wherein the second electronic device does not supply power to the storage device via the second connector; and the memory circuit transmits data to the first electronic device via the first connector .

本發明提供一儲存裝置,其包含第一連接器以及第二連接器,當第一連接器連接於第一電子裝置(例如平板電腦)且第二連接器連接於第二電子裝置(例如智慧型手機)時,電源切換電路會根據第一電子裝置所提供之供應電壓而自動切換至開啟狀態,並且控制切換電路切換至該第一控制狀態,使得第二連接器由該裝置模式切換到該充電模式。因此第一電子裝置所提供之供應電壓便可透過儲存裝置對第二電子裝置進行充電,並且第一電子裝置也能同時對儲存裝置存取資料。在 使用過程中,使用者並不需要手動對儲存裝置進行切換,只要將儲存裝置連接於第一電子裝置以及第二電子裝置即可完成前述操作過程。因此,解決了先前技術中,當平板電腦的序列周邊匯流排連接埠數量不足而無法同時連接快閃記憶體裝置以及對智慧型手機充電的問題。 The present invention provides a storage device including a first connector and a second connector, when the first connector is connected to the first electronic device (for example, a tablet) and the second connector is connected to the second electronic device (for example, smart type) The mobile phone switching circuit automatically switches to the on state according to the supply voltage provided by the first electronic device, and controls the switching circuit to switch to the first control state, so that the second connector is switched from the device mode to the charging mode. Therefore, the supply voltage provided by the first electronic device can charge the second electronic device through the storage device, and the first electronic device can also access the data to the storage device at the same time. During use, the user does not need to manually switch the storage device, and the foregoing operation process can be completed by connecting the storage device to the first electronic device and the second electronic device. Therefore, in the prior art, the problem that the number of peripheral bus bars of the tablet is insufficient to simultaneously connect the flash memory device and charge the smart phone is solved.

100‧‧‧儲存裝置 100‧‧‧ storage device

102‧‧‧第一連接器 102‧‧‧First connector

104‧‧‧第二連接器 104‧‧‧Second connector

106‧‧‧切換電路 106‧‧‧Switching circuit

108‧‧‧控制器電路 108‧‧‧Controller Circuit

110‧‧‧記憶體電路 110‧‧‧ memory circuit

112‧‧‧電源切換電路 112‧‧‧Power switching circuit

114、114'‧‧‧控制切換電路 114, 114'‧‧‧Control switching circuit

116‧‧‧資料切換電路 116‧‧‧Data switching circuit

117‧‧‧通用序列匯流排切換器 117‧‧‧Common serial bus switcher

200‧‧‧第一電子裝置 200‧‧‧First electronic device

300‧‧‧第二電子裝置 300‧‧‧Second electronic device

A、B‧‧‧接點 A, B‧‧‧ contacts

C‧‧‧電容 C‧‧‧ capacitor

ID‧‧‧控制接腳 ID‧‧‧Control pin

CC‧‧‧配置通道接腳 CC‧‧‧Configure channel pin

F1‧‧‧第一光耦合繼電器 F1‧‧‧First optical coupling relay

F11‧‧‧第一端 F11‧‧‧ first end

F12‧‧‧第二端 F12‧‧‧ second end

F13‧‧‧第三端 F13‧‧‧ third end

F14‧‧‧第四端 F14‧‧‧ fourth end

F2‧‧‧第二光耦合繼電器 F2‧‧‧Second optical coupling relay

F21‧‧‧第一端 F21‧‧‧ first end

F22‧‧‧第二端 F22‧‧‧ second end

F23‧‧‧第三端 F23‧‧‧ third end

F24‧‧‧第四端 F24‧‧‧ fourth end

M1‧‧‧第一電晶體 M1‧‧‧first transistor

M2‧‧‧第二電晶體 M2‧‧‧second transistor

R1‧‧‧第一電阻 R1‧‧‧first resistance

R2‧‧‧第二電阻 R2‧‧‧second resistance

R3‧‧‧第三電阻 R3‧‧‧ third resistor

R4‧‧‧第四電阻 R4‧‧‧fourth resistor

R5‧‧‧第五電阻 R5‧‧‧ fifth resistor

R6‧‧‧第六電阻 R6‧‧‧ sixth resistor

R7‧‧‧第七電阻 R7‧‧‧ seventh resistor

R8‧‧‧第八電阻 R8‧‧‧ eighth resistor

R9‧‧‧第九電阻 R9‧‧‧ ninth resistor

R10‧‧‧第十電阻 R10‧‧‧10th resistor

S1‧‧‧第一組訊號端 S1‧‧‧The first set of signal ends

S2‧‧‧第二組訊號端 S2‧‧‧Second group signal end

S3‧‧‧第三組訊號端 S3‧‧‧ third group signal end

SE‧‧‧選擇端 SE‧‧‧Selection

S100、S102、S104、S106、S108、S110、S112、S114、S116‧‧‧步驟 Steps S100, S102, S104, S106, S108, S110, S112, S114, S116‧‧

第1圖為本發明一實施例之一儲存裝置與外部裝置之示意圖;第2圖為本發明一實施例之一電源切換電路之示意圖;第3圖為本發明一實施例之一控制切換電路之示意圖;第4圖為本發明另一實施例之一控制切換電路之示意圖;第5圖為本發明一實施例之一資料切換電路之示意圖;以及第6A圖與第6B圖為本發明一實施例之儲存裝置之操作方法之流程圖。 1 is a schematic diagram of a storage device and an external device according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a power switching circuit according to an embodiment of the present invention; and FIG. 3 is a control switching circuit according to an embodiment of the present invention; FIG. 4 is a schematic diagram of a control switching circuit according to another embodiment of the present invention; FIG. 5 is a schematic diagram of a data switching circuit according to an embodiment of the present invention; and FIG. 6A and FIG. A flow chart of a method of operation of a storage device of an embodiment.

本發明的各種實施例會以相關之附圖加以詳細說明。在圖示中所使用的相同的參考編號指的是相同或是相似的元件。這些實施例的目的係用來說明本發明的一般原則而不應以限制性的意義來理解。公知的功能以及結構的詳細描述將會省略以避免混淆本發明的主題。 Various embodiments of the invention are described in detail in the associated drawings. The same reference numbers are used in the drawings to refer to the same or similar elements. The examples are intended to illustrate the general principles of the invention and should not be construed in a limiting sense. Detailed descriptions of well-known functions and structures will be omitted to avoid obscuring the subject matter of the present invention.

值得注意的是,在本發明中所提及的不同的”一”或”一個”實施例並不一定係同一個實施例,並且所提及的指的 是至少一個。再者,當一特別的特徵、結構或特性結合於一實施例來描述時,可以認知的是,無論是否有詳細描述,習知技藝者可以在本領域的知識範圍內將此種特徵、結構或特性與其餘實施例作連結。 It is to be noted that the various "one" or "one" embodiments referred to in the present invention are not necessarily the same embodiment, and reference is made to at least one. In addition, when a particular feature, structure, or characteristic is described in connection with an embodiment, it can be appreciated that the skilled artisan can incorporate such feature or structure within the scope of the art, whether or not described in detail. Or the features are linked to the remaining embodiments.

請參考第1圖,第1圖為本發明一實施例之儲存裝置100與外部裝置之示意圖。儲存裝置100可設計為隨身碟外觀之尺寸,讓使用者可以方便攜帶。儲存裝置100可包含一第一連接器102、一第二連接器104、一切換電路106、一控制器電路108以及一記憶體電路110。其中第一連接器102可為一通用序列匯流排類型A連接器(Universal Serial Bus Type-A Connector,USB Type-A connector)、一迷你通用序列匯流排類型B連接器(mini USB Type-B connector)、一微型通用序列匯流排類型B連接器(micro USB Type-B connector)或一通用序列匯流排類型C連接器(Type-C USB connector)。第二連接器104可為一迷你通用序列匯流排類型B連接器(mini USB Type-B connector)、一微型通用序列匯流排類型B連接器(micro USB Type-B connector)或一通用序列匯流排類型C連接器(USB Type-C connector)。其中,第一連接器102係可選擇性地連接於外部的一第一電子裝置200,例如一筆記型電腦或一平板電腦,而第二連接器104可選擇性地連接於外部的一第二電子裝置300,例如一智慧型手機或一行動裝置。 Please refer to FIG. 1. FIG. 1 is a schematic diagram of a storage device 100 and an external device according to an embodiment of the present invention. The storage device 100 can be designed to be the size of the appearance of the flash drive, so that the user can carry it conveniently. The storage device 100 can include a first connector 102, a second connector 104, a switching circuit 106, a controller circuit 108, and a memory circuit 110. The first connector 102 can be a Universal Serial Bus Type-A Connector (USB Type-A connector) or a mini universal serial bus type B connector (mini USB Type-B connector). ), a micro USB Type-B connector or a Universal Type-C USB connector. The second connector 104 can be a mini USB Type-B connector, a micro USB Type-B connector or a universal serial bus. Type C connector (USB Type-C connector). The first connector 102 is selectively connectable to an external first electronic device 200, such as a notebook computer or a tablet computer, and the second connector 104 is selectively connectable to an external second. The electronic device 300 is, for example, a smart phone or a mobile device.

切換電路106係電性連接於第一連接器102與第二連接器104之間。切換電路106可包括一電源切換電路112、一控制切換電路114與一資料切換電路116。電源切換電路112會 根據所接收之一電壓於一關閉狀態以及一開啟狀態之間切換,控制切換電路114會根據所接收之一電壓於一第一控制狀態以及一第二控制狀態之間切換,並且資料切換電路116會根據所接收之一電壓於一第一裝置狀態以及一第二裝置狀態之間切換。其中,該電壓可為當第一連接器102連接第一電子裝置200時,第一電子裝置200經由第一連接器102所提供之一供應電壓Vbus。 The switching circuit 106 is electrically connected between the first connector 102 and the second connector 104. The switching circuit 106 can include a power switching circuit 112, a control switching circuit 114, and a data switching circuit 116. The power switching circuit 112 switches between a closed state and an open state according to the received voltage, and the control switching circuit 114 switches between a first control state and a second control state according to the received voltage. And the data switching circuit 116 switches between a first device state and a second device state according to a received voltage. The voltage may be a supply voltage Vbus provided by the first electronic device 200 via the first connector 102 when the first connector 102 is connected to the first electronic device 200.

控制器電路108係設置於第一連接器102與第二連接器之間104,並且記憶體電路110係設置於第一連接器102與第二連接器104之間。記憶體電路110可為一快閃記憶體,例如反或型快閃記憶體(NOR Flash)或反及型快閃記憶體(NAND Flash),用以儲存各種數位資料。當第一連接器102或第二連接器104連接一外部裝置時,該外部裝置可透過控制器電路108來存取記憶體電路110中的資料,例如可讀取資料或寫入資料。 The controller circuit 108 is disposed between the first connector 102 and the second connector 104, and the memory circuit 110 is disposed between the first connector 102 and the second connector 104. The memory circuit 110 can be a flash memory, such as a reverse flash memory (NOR Flash) or a reverse flash memory (NAND Flash), for storing various digital data. When the first connector 102 or the second connector 104 is connected to an external device, the external device can access the data in the memory circuit 110 through the controller circuit 108, such as reading data or writing data.

請參考第2圖,第2圖為本發明一實施例之電源切換電路112之示意圖。電源切換電路112包含一第一電阻R1、一電容C、一第一電晶體M1、一第二電阻R2、一第三電阻R3、一第二電晶體M2以及一第四電阻R4。第一電阻R1具有一第一端以及一第二端,第一電阻R1之該第一端係連接於第一連接器102的一電源接腳(power pin),也就是圖中所示之接點A。電容C具有一第一端與一第二端,電容C之該第一端係連接於第一電阻R1之該第二端,且電容C之該第二端係連接於一接地端。第一電晶體M1具有一第一端、一第二端以及一控制端,第一電晶體M1之該第一端係連接於第一連接器102之該電源接腳,且 第一電晶體M1之該第二端係連接於第二連接器104之一電源接腳,也就是圖中所示之接點B。第二電阻R2具有一第一端以及一第二端,第二電阻R2之該第一端係連接於第一電晶體M1之該控制端。第三電阻R3具有一第一端以及一第二端,第三電阻R3之該第一端係連接於第一電晶體M1之該第二端。第二電晶體M2具有一第一端、一第二端以及一控制端,第二電晶體M2之該第一端係連接於第二電阻R2之該第二端以及該第三電阻R3之該第二端,第二電晶體M2之該第二端係連接於該接地端,且第二電晶體M2之該控制端係連接於電容C之該第一端。第四電阻R4具有一第一端以及一第二端,第四電阻R4之該第一端係連接於第二電晶體M2之該控制端,且第四電阻R4之該第二端係連接於該接地端。於此實施例中,第一電晶體M1可為一金氧半場效電晶體(Metal-Oxide-Semiconductor Field-Effect Transistor,MOSFET)且第二電晶體M2可為一雙極性接面電晶體(Bipolar Junction Transistor,BJT),但不限於此。 Please refer to FIG. 2, which is a schematic diagram of a power switching circuit 112 according to an embodiment of the present invention. The power switching circuit 112 includes a first resistor R1, a capacitor C, a first transistor M1, a second resistor R2, a third resistor R3, a second transistor M2, and a fourth resistor R4. The first resistor R1 has a first end and a second end. The first end of the first resistor R1 is connected to a power pin of the first connector 102, that is, the connection shown in the figure. Point A. The capacitor C has a first end and a second end. The first end of the capacitor C is connected to the second end of the first resistor R1, and the second end of the capacitor C is connected to a ground. The first transistor M1 has a first end, a second end, and a control end. The first end of the first transistor M1 is connected to the power pin of the first connector 102, and the first transistor M1 The second end is connected to one of the power pins of the second connector 104, that is, the contact B shown in the figure. The second resistor R2 has a first end and a second end. The first end of the second resistor R2 is connected to the control end of the first transistor M1. The third resistor R3 has a first end and a second end. The first end of the third resistor R3 is connected to the second end of the first transistor M1. The second transistor M2 has a first end, a second end, and a control end. The first end of the second transistor M2 is connected to the second end of the second resistor R2 and the third resistor R3. The second end of the second transistor M2 is connected to the ground end, and the control end of the second transistor M2 is connected to the first end of the capacitor C. The fourth resistor R4 has a first end and a second end. The first end of the fourth resistor R4 is connected to the control end of the second transistor M2, and the second end of the fourth resistor R4 is connected to the second end. The ground terminal. In this embodiment, the first transistor M1 can be a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) and the second transistor M2 can be a bipolar junction transistor (Bipolar). Junction Transistor, BJT), but not limited to this.

當第一連接器102未連接於第一電子裝置200時,第一連接器102不會由第一電子裝置200擷取供應電壓Vbus,因此第一連接器102便不會由接點A提供任何電力,此時第一電晶體M1以及第二電晶體M2皆為關閉(turned off),並不會有電壓從接點A通過第一電晶體M1提供給接點B。此時的狀態即為前述之電源切換電路112之該關閉狀態。當第一連接器102連接於第一電子裝置200時,第一連接器102會擷取第一電子裝置200之供應電壓Vbus,並且第一連接器102會由接點A提供供應電壓Vbus給電源切換電路112。當電源切換電路112接收到第一電子 裝置200所提供之供應電壓Vbus時,第二電晶體M2會導通,並且使得第一電晶體M1也導通,因此接點A與接點B電性連接。此時的狀態即為前述之電源切換電路112之該開啟狀態。因此,供應電壓Vbus便會由接點A經由導通的第一電晶體M1提供給接點B。 When the first connector 102 is not connected to the first electronic device 200, the first connector 102 does not draw the supply voltage Vbus from the first electronic device 200, so the first connector 102 does not provide any contact by the contact A. At this time, the first transistor M1 and the second transistor M2 are both turned off, and no voltage is supplied from the contact A to the contact B through the first transistor M1. The state at this time is the closed state of the power supply switching circuit 112 described above. When the first connector 102 is connected to the first electronic device 200, the first connector 102 captures the supply voltage Vbus of the first electronic device 200, and the first connector 102 provides the supply voltage Vbus to the power supply by the contact A. Switching circuit 112. When the power supply switching circuit 112 receives the supply voltage Vbus provided by the first electronic device 200, the second transistor M2 is turned on, and the first transistor M1 is also turned on, so that the contact A and the contact B are electrically connected. The state at this time is the on state of the power supply switching circuit 112 described above. Therefore, the supply voltage Vbus is supplied from the contact A to the contact B via the turned-on first transistor M1.

請參考第3圖,第3圖為本發明一實施例之控制切換電路114之示意圖。當第二連接器104為一通用序列匯流排類型B連接器(如mini USB Type B connector或micro USB Type B connector)時,控制切換電路114可設計為包含一第五電阻R5以及一第一光耦合繼電器F1。第五電阻R5具有一第一端以及一第二端,且該第一端係連接於第一連接器102之該電源接腳(接點A)。第一光耦合繼電器F1具有一第一端F11、一第二端F12、一第三端F13以及一第四端F14。其中,第一光耦合繼電器F1之第一端F11係連接於第五電阻R5之該第二端,第一光耦合繼電器F1之第二端F12以及第三端F13係連接於一接地端,且第一光耦合繼電器F1之第四端F14連接於第二連接器104之一控制端(也就是一控制接腳ID)。 Please refer to FIG. 3, which is a schematic diagram of the control switching circuit 114 according to an embodiment of the present invention. When the second connector 104 is a universal serial bus type B connector (such as a mini USB Type B connector or a micro USB Type B connector), the control switching circuit 114 can be designed to include a fifth resistor R5 and a first light. Coupling relay F1. The fifth resistor R5 has a first end and a second end, and the first end is connected to the power pin (contact A) of the first connector 102. The first photo coupling relay F1 has a first end F11, a second end F12, a third end F13 and a fourth end F14. The first end F11 of the first photo coupling relay F1 is connected to the second end of the fifth resistor R5, and the second end F12 and the third end F13 of the first photo coupling relay F1 are connected to a ground end, and The fourth end F14 of the first photo coupling relay F1 is connected to one of the control ends of the second connector 104 (that is, a control pin ID).

當控制切換電路114沒有接收供應電壓Vbus時(也就是第一連接器102並未連接於第一電子裝置200),第一光耦合繼電器F1之第三端F13以及第四端F14之間為短路,也就是控制接腳ID會接地。此時的狀態即為前述之控制切換電路114之該第二控制狀態。當控制切換電路114接收供應電壓Vbus時(也就是第一連接器102連接於第一電子裝置200),第一光耦合繼電器F1之第三端F13以及第四端F14之間為開路,也就是控制接 腳ID不會接地。此時的狀態即為前述之控制切換電路114之該第一控制狀態。 When the control switching circuit 114 does not receive the supply voltage Vbus (that is, the first connector 102 is not connected to the first electronic device 200), the third end F13 of the first photo coupling relay F1 and the fourth end F14 are short-circuited. That is, the control pin ID will be grounded. The state at this time is the second control state of the aforementioned control switching circuit 114. When the control switching circuit 114 receives the supply voltage Vbus (that is, the first connector 102 is connected to the first electronic device 200), the third end F13 and the fourth end F14 of the first photo coupling relay F1 are open, that is, The control pin ID will not be grounded. The state at this time is the first control state of the aforementioned control switching circuit 114.

請參考第4圖,第4圖為本發明另一實施例之一控制切換電路114’之示意圖。於此實施例中,第二連接器104為之一通用序列匯流排類型C(USB Type C)連接器。控制切換電路114’包含一第六電阻R6、一第七電阻R7、一第八電阻R8以及一第二光耦合繼電器F2。第六電阻R6具有一第一端以及一第二端,第六電阻R6之該第一端係連接於第一連接器102之該電源接腳(接點A)。第七電阻R7具有一第一端以及一第二端,第七電阻R7之該第一端係連接於第一連接器102之該電源接腳。第二光耦合繼電器F2具有一第一端F21、一第二端F22、一第三端F23以及一第四端F24,第二光耦合繼電器F2之第一端F21係連接於第七電阻R7之該第二端,第二光耦合繼電器F2之第二端F22係連接於該接地端,且第二光耦合繼電器F2之第四端F24係連接於第二連接器104之一控制端(也就是一配置通道接腳CC)以及第六電阻R6之該第二端。第八電阻R8具有一第一端以及一第二端,第八電阻R8之該第一端係連接於第二光耦合繼電器F2之第三端F23,且第八電阻R8之該第二端係連接於該接地端。 Please refer to FIG. 4, which is a schematic diagram of a control switching circuit 114' according to another embodiment of the present invention. In this embodiment, the second connector 104 is a universal serial bus type C (USB Type C) connector. The control switching circuit 114' includes a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, and a second photo coupling relay F2. The sixth resistor R6 has a first end and a second end. The first end of the sixth resistor R6 is connected to the power pin (contact A) of the first connector 102. The seventh resistor R7 has a first end and a second end. The first end of the seventh resistor R7 is connected to the power pin of the first connector 102. The second optical coupling relay F2 has a first end F21, a second end F22, a third end F23 and a fourth end F24. The first end F21 of the second photo coupling relay F2 is connected to the seventh resistor R7. The second end F22 of the second optical coupling relay F2 is connected to the ground end, and the fourth end F24 of the second optical coupling relay F2 is connected to one of the control ends of the second connector 104 (that is, One configures the channel pin CC) and the second end of the sixth resistor R6. The eighth resistor R8 has a first end and a second end. The first end of the eighth resistor R8 is connected to the third end F23 of the second photo coupling relay F2, and the second end of the eighth resistor R8 is Connected to the ground.

當控制切換電路114’沒有接收供應電壓Vbus時,第二光耦合繼電器F2之第三端F23以及第四端F24之間為短路,也就是配置通道接腳CC會連接到該接地端。此時的狀態即為前述之控制切換電路114’之該第二控制狀態。當控制切換電路114’接收供應電壓Vbus時,第二光耦合繼電器F2之第三端F23以及 第四端F24之間為開路,也就是配置通道接腳CC不會接地。此時的狀態即為前述之控制切換電路114’之該第一控制狀態。 When the control switching circuit 114' does not receive the supply voltage Vbus, the third end F23 of the second photo coupling relay F2 and the fourth end F24 are short-circuited, that is, the configuration channel pin CC is connected to the ground. The state at this time is the second control state of the aforementioned control switching circuit 114'. When the control switching circuit 114' receives the supply voltage Vbus, the third terminal F23 and the fourth terminal F24 of the second photo coupling relay F2 are open, that is, the configuration channel pin CC is not grounded. The state at this time is the first control state of the aforementioned control switching circuit 114'.

請參考第5圖,第5圖為本發明一實施例之資料切換電路116之示意圖。資料切換電路116可包含一通用序列匯流排切換器117(USB switch)以及一組分壓電阻,通用序列匯流排切換器117具有一第一組訊號端S1、一第二組訊號端S2、一第三組訊號端S3以及一選擇端SE。該組分壓電阻包含一第九電阻R9以及一第十電阻R10。第一組訊號端S1係連接於第一連接器102之訊號接腳,第二組訊號端S2係連接於第二連接器104之訊號接腳,第三組訊號端S3係連接於控制器電路108,選擇端SE係連接於第九電阻R9以及第十電阻R10之間的一電壓接點。其中第九電阻R9之一第一端係連接於第一連接器102之該電源接腳,而第十電阻R10之一第一端與第九電阻R9之一第二端連接至選擇端SE,且第十電阻R10之一第二端係連接到該接地端。 Please refer to FIG. 5. FIG. 5 is a schematic diagram of a data switching circuit 116 according to an embodiment of the present invention. The data switching circuit 116 can include a universal serial bus switch 117 (USB switch) and a component voltage resistor. The universal serial bus switch 117 has a first group of signal terminals S1 and a second group of signal terminals S2. The third group of signal terminals S3 and a selection terminal SE. The component voltage resistor includes a ninth resistor R9 and a tenth resistor R10. The first group of signal terminals S1 are connected to the signal pins of the first connector 102, the second group of signal terminals S2 are connected to the signal pins of the second connector 104, and the third group of signal terminals S3 are connected to the controller circuit. 108, the selection terminal SE is connected to a voltage contact between the ninth resistor R9 and the tenth resistor R10. The first end of the ninth resistor R9 is connected to the power pin of the first connector 102, and the first end of one of the tenth resistor R10 and the second end of the ninth resistor R9 are connected to the select terminal SE. And a second end of the tenth resistor R10 is connected to the ground.

當第九電阻R9之該第一端沒有接收供應電壓Vbus時,選擇端SE便沒有接收到任何電壓輸入,此時第二組訊號端S2係與第三組訊號端S3電性連接,且此時的狀態即為前述之資料切換電路116之該第二控制狀態。 When the first terminal of the ninth resistor R9 does not receive the supply voltage Vbus, the selection terminal SE does not receive any voltage input, and the second group of signal terminals S2 is electrically connected to the third group of signal terminals S3, and this The state of the time is the second control state of the data switching circuit 116 described above.

當第九電阻R9之該第一端接收供應電壓Vbus時,選擇端SE便會接收供應電壓Vbus於該電壓接點(也就是第九電阻R9之該第二端)之一分壓,此時第三組訊號端S3與第二組訊號端S2之間的連接便會斷開,並且第三組訊號端S3會與第一組訊號端S1電性連接。此時的狀態即為前述之資料切換電路116之該第一控制狀態。因此,當第一連接器102連接於第一電子 裝置200時,資料切換電路116便會由該第二裝置狀態切換至該第一裝置狀態,使得第一組訊號端S1由第一連接器102所接收之訊號可以傳輸至第三組訊號端S3。 When the first end of the ninth resistor R9 receives the supply voltage Vbus, the selection terminal SE receives the supply voltage Vbus and divides the voltage contact (that is, the second end of the ninth resistor R9) into a voltage. The connection between the third group of signal terminals S3 and the second group of signal terminals S2 is disconnected, and the third group of signal terminals S3 is electrically connected to the first group of signal terminals S1. The state at this time is the first control state of the aforementioned data switching circuit 116. Therefore, when the first connector 102 is connected to the first electronic device 200, the data switching circuit 116 is switched from the second device state to the first device state, so that the first group of signal terminals S1 are configured by the first connector 102. The received signal can be transmitted to the third group of signal terminals S3.

接下來說明儲存裝置100的各種使用狀況。當第一連接器102未連接第一電子裝置200且第二連接器104未連接第二電子裝置300時,由於第一連接器102並未提供供應電壓Vbus,因此電源切換電路112為該關閉狀態,控制切換電路114為該第二控制狀態,且資料切換電路116為該第二裝置狀態。再者,此時第一連接器102可定義為一裝置模式,且第二連接器104定義為該裝置模式。 Next, various usage conditions of the storage device 100 will be described. When the first connector 102 is not connected to the first electronic device 200 and the second connector 104 is not connected to the second electronic device 300, since the first connector 102 does not provide the supply voltage Vbus, the power switching circuit 112 is in the off state. The control switching circuit 114 is in the second control state, and the data switching circuit 116 is in the second device state. Moreover, at this time, the first connector 102 can be defined as a device mode, and the second connector 104 is defined as the device mode.

當只有第一連接器102連接第一電子裝置200時,第一電子裝置200經由第一連接器102提供供應電壓Vbus至資料切換電路116、控制器電路108以及記憶體電路110。資料切換電路116便會如前所述根據供應電壓Vbus由該第二裝置狀態切換為該第一裝置狀態,使得第一電子裝置200經由第一連接器102、資料切換電路116以及控制器電路108對該記憶體電路存取資料。 When only the first connector 102 is connected to the first electronic device 200, the first electronic device 200 provides the supply voltage Vbus to the data switching circuit 116, the controller circuit 108, and the memory circuit 110 via the first connector 102. The data switching circuit 116 switches from the second device state to the first device state according to the supply voltage Vbus as described above, so that the first electronic device 200 passes through the first connector 102, the data switching circuit 116, and the controller circuit 108. Access data to the memory circuit.

當僅第二連接器104連接第二電子裝置300時,第二電子裝置300經由第二連接器300提供供應電壓Vbus至該控制器電路108以及記憶體電路110。由於資料切換電路116沒有接收來自第一連接器102之供應電壓Vbus,所以資料切換電路116會維持在該第二裝置狀態。因此,第二電子裝置300便可經由第二連接器104、資料切換電路116以及控制器電路108對記憶體電路110存取資料。 When only the second connector 104 is connected to the second electronic device 300, the second electronic device 300 supplies the supply voltage Vbus to the controller circuit 108 and the memory circuit 110 via the second connector 300. Since the data switching circuit 116 does not receive the supply voltage Vbus from the first connector 102, the data switching circuit 116 will remain in the second device state. Therefore, the second electronic device 300 can access the memory circuit 110 via the second connector 104, the data switching circuit 116, and the controller circuit 108.

當第一連接器102連接第一電子裝置200且第二連接器104連接第二電子裝置300時,第一連接器102會由第一電子裝置200接收供應電壓Vbus並提供給電源切換電路112、控制切換電路114、資料切換電路116控制器電路108以及記憶體電路110。因此,資料切換電路116便會根據來自第一連接器102之供應電壓Vbus由該第二裝置狀態切換為該第一裝置狀態,使得第一電子裝置200可經由第一連接器102、資料切換電路116以及控制器電路108對記憶體電路110存取資料。控制切換電路114會根據來自第一連接器102之供應電壓Vbus由該第二控制狀態切換為該第一控制狀態,使得第二連接器104由該裝置模式切換至一充電模式。也就是說,當第二連接器104之該控制端接地時,第二連接器104為該裝置模式,而當第二連接器104之該控制端並未接地時,第二連接器104為該充電模式,並且當第二連接器104在該充電模式時,第二電子裝置300並不會經由第二連接器104供電給儲存裝置100。再者,電源切換電路112會根據來自第一連接器102之供應電壓Vbus由該關閉狀態切換至該開啟狀態,因此第一連接器102所提供之供應電壓Vbus會經由電源切換電路112以及第二連接器104提供給第二電子裝置300,藉以對第二電子裝置300充電。 When the first connector 102 is connected to the first electronic device 200 and the second connector 104 is connected to the second electronic device 300, the first connector 102 receives the supply voltage Vbus from the first electronic device 200 and provides the power supply switching circuit 112, The switching circuit 114, the data switching circuit 116, the controller circuit 108, and the memory circuit 110 are controlled. Therefore, the data switching circuit 116 switches from the second device state to the first device state according to the supply voltage Vbus from the first connector 102, so that the first electronic device 200 can be connected to the first connector 102 and the data switching circuit. 116 and controller circuit 108 access data to memory circuit 110. The control switching circuit 114 switches from the second control state to the first control state according to the supply voltage Vbus from the first connector 102, so that the second connector 104 is switched from the device mode to a charging mode. That is, when the control terminal of the second connector 104 is grounded, the second connector 104 is in the device mode, and when the control terminal of the second connector 104 is not grounded, the second connector 104 is the The charging mode, and when the second connector 104 is in the charging mode, the second electronic device 300 is not powered to the storage device 100 via the second connector 104. Moreover, the power switching circuit 112 switches from the off state to the on state according to the supply voltage Vbus from the first connector 102, so the supply voltage Vbus provided by the first connector 102 is via the power switching circuit 112 and the second The connector 104 is provided to the second electronic device 300 to charge the second electronic device 300.

第6A圖與第6B圖為本發明一實施例之儲存裝置100之操作方法之流程圖。在步驟S100中,偵測第一連接器102是否連接於第一電子裝置200且第二連接器104是否連接於第二電子裝置300。若是,執行步驟S102。若否,執行步驟S110。於步驟S102中,當第一連接器102連接於第一電子裝置200且第 二連接器104連接於第二電子裝置300時,儲存裝置100藉由第一連接器102擷取第一電子裝置200之一供應電壓Vbus。 6A and 6B are flowcharts showing a method of operating the storage device 100 according to an embodiment of the present invention. In step S100, it is detected whether the first connector 102 is connected to the first electronic device 200 and the second connector 104 is connected to the second electronic device 300. If yes, step S102 is performed. If no, step S110 is performed. In the step S102, when the first connector 102 is connected to the first electronic device 200 and the second connector 104 is connected to the second electronic device 300, the storage device 100 captures the first electronic device 200 by using the first connector 102. One of the supply voltages Vbus.

於步驟S104中,第二連接器104會根據供應電壓Vbus由一裝置模式切換至一充電模式。於步驟S106中,儲存裝置100會藉由第二連接器104提供供應電壓Vbus給第二電子裝置300,其中第二電子裝置300不會經由第二連接器104供電給儲存裝置100。於步驟S108中,資料切換電路116會根據供應電壓Vbus由一第二裝置狀態切換為一第一裝置狀態,使得第一電子裝置200經由第一連接器102、資料切換電路116以及控制器電路108對記憶體電路110存取資料。也就是說,記憶體電路110會經由第一連接器102與第一電子裝置200傳輸資料。 In step S104, the second connector 104 switches from a device mode to a charging mode according to the supply voltage Vbus. In step S106, the storage device 100 provides the supply voltage Vbus to the second electronic device 300 via the second connector 104, wherein the second electronic device 300 does not supply power to the storage device 100 via the second connector 104. In step S108, the data switching circuit 116 switches from a second device state to a first device state according to the supply voltage Vbus, so that the first electronic device 200 passes the first connector 102, the data switching circuit 116, and the controller circuit 108. The data is accessed to the memory circuit 110. That is, the memory circuit 110 transmits data to the first electronic device 200 via the first connector 102.

於步驟S110中,偵測是否只有第一連接器102連接於第一電子裝置200。若是,則執行步驟S112;若否,則執行步驟S114。於步驟S112中,當僅第一連接器102連接第一電子裝置200時,第一電子裝置200經由第一連接器102提供供應電壓Vbus至資料切換電路116、控制器電路108以及記憶體電路110,且資料切換電路116會根據供應電壓Vbus由該第二裝置狀態切換為該第一裝置狀態,使得第一電子裝置200經由第一連接器102、資料切換電路116以及控制器電路108對記憶體電路110存取資料。 In step S110, it is detected whether only the first connector 102 is connected to the first electronic device 200. If yes, go to step S112; if no, go to step S114. In step S112, when only the first connector 102 is connected to the first electronic device 200, the first electronic device 200 provides the supply voltage Vbus to the data switching circuit 116, the controller circuit 108, and the memory circuit 110 via the first connector 102. And the data switching circuit 116 switches from the second device state to the first device state according to the supply voltage Vbus, so that the first electronic device 200 accesses the memory via the first connector 102, the data switching circuit 116, and the controller circuit 108. Circuit 110 accesses the data.

於步驟S114中,偵測是否僅第二連接器104連接第二電子裝置300且第一連接器102未連接第一電子裝置200。若是,執行步驟S116,若否,也就是第二連接器104未連接第二電子裝置300且第一連接器102未連接第一電子裝置200時,結 束操作方之流程。於步驟S116中,當僅第二連接器104連接第二電子裝置300時,第二連接器104將第二電子裝置300所提供之一供應電壓Vbus傳送至控制器電路108以及記憶體電路110,使得第二電子裝置300經由第二連接器104、資料切換電路116以及控制器電路108對記憶體電路110存取資料。 In step S114, it is detected whether only the second connector 104 is connected to the second electronic device 300 and the first connector 102 is not connected to the first electronic device 200. If yes, step S116 is performed. If no, that is, when the second connector 104 is not connected to the second electronic device 300 and the first connector 102 is not connected to the first electronic device 200, the process of the operator is terminated. In step S116, when only the second connector 104 is connected to the second electronic device 300, the second connector 104 transmits one of the supply voltages Vbus provided by the second electronic device 300 to the controller circuit 108 and the memory circuit 110. The second electronic device 300 is caused to access the memory circuit 110 via the second connector 104, the data switching circuit 116, and the controller circuit 108.

相較於先前技術,本發明提供一儲存裝置100,其包含第一連接器102以及第二連接器104,當第一連接器102連接於第一電子裝置200(例如平板電腦)且第二連接器104連接於第二電子裝置300(例如智慧型手機)時,電源切換電路112會根據第一電子裝置200所提供之供應電壓Vbus而自動切換至開啟狀態,並且控制切換電路114切換至該第一控制狀態,使得第二連接器104由該裝置模式切換到該充電模式。因此第一電子裝置200所提供之供應電壓Vbus便可透過儲存裝置100對第二電子裝置300進行充電,並且第一電子裝置200也能同時對儲存裝置100存取資料。在使用過程中,使用者並不需要手動對儲存裝置100進行切換,只要將儲存裝置100連接於第一電子裝置200以及第二電子裝置300即可完成前述操作過程。因此,解決了先前技術中,當平板電腦的序列周邊匯流排連接埠數量不足而無法同時連接快閃記憶體裝置以及對智慧型手機充電的問題。 Compared with the prior art, the present invention provides a storage device 100 including a first connector 102 and a second connector 104, when the first connector 102 is connected to the first electronic device 200 (eg, a tablet) and the second connection When the device 104 is connected to the second electronic device 300 (for example, a smart phone), the power switching circuit 112 automatically switches to the on state according to the supply voltage Vbus provided by the first electronic device 200, and the control switching circuit 114 switches to the first A control state causes the second connector 104 to switch from the device mode to the charging mode. Therefore, the supply voltage Vbus provided by the first electronic device 200 can charge the second electronic device 300 through the storage device 100, and the first electronic device 200 can also access the storage device 100 at the same time. During the use, the user does not need to manually switch the storage device 100. The foregoing operation process can be completed by connecting the storage device 100 to the first electronic device 200 and the second electronic device 300. Therefore, in the prior art, the problem that the number of peripheral bus bars of the tablet is insufficient to simultaneously connect the flash memory device and charge the smart phone is solved.

可以理解的是,在所附的請求項中所敘述之元件與特徵可以不同的方式作結合以產生新的請求項,並且同樣落在本發明的範圍內。因此,有鑑於以下所附的附屬項係只依附在一單一獨立項或一附屬項,可以被理解的是,這些附屬項可 以選擇地依附在任何其前面或後面的請求項,並且此新的結合可以被理解為形成本發明之說明書的一部份。 It will be understood that the elements and features described in the appended claims can be combined in various ways to produce new claims and are also within the scope of the invention. Therefore, in view of the fact that the attached items attached below are attached only to a single item or a subsidiary item, it can be understood that these items can be selectively attached to any request item before or after it, and this new item Combinations may be understood as forming part of the specification of the invention.

雖然本發明以舉例的方式以及較佳實施例來描述,可以理解的是本發明並不限制於此。該領域之習知技藝者仍可在不偏離本發明的範圍與精神下進行各種替換或修改。因此,本發明的範圍可被下面的請求項以及其等效範圍所限定與保護。 While the invention has been described by way of illustration and preferred embodiments, it is understood that Various alternatives or modifications can be made by those skilled in the art without departing from the scope and spirit of the invention. The scope of the invention is therefore defined and protected by the following claims and their equivalents.

Claims (16)

一種儲存裝置,包含:一記憶體電路,用以對一資料進行存取;以及一第一連接器以及一第二連接器,分別連接於該記憶體電路;其中,當該第一連接器連接於一第一電子裝置並且該第二連接器連接於一第二電子裝置時,第一連接器由該第一電子裝置接收一供應電壓,使得該第一電子裝置透過該儲存裝置對該第二電子裝置充電,並且該第一電子裝置經由該第一連接器對該記憶體電路存取該資料。 A storage device comprising: a memory circuit for accessing a data; and a first connector and a second connector respectively connected to the memory circuit; wherein, when the first connector is connected When the first electronic device is connected to the second electronic device, the first connector receives a supply voltage from the first electronic device, so that the first electronic device transmits the second device through the storage device The electronic device is charged, and the first electronic device accesses the data to the memory circuit via the first connector. 如申請專利範圍第1項所述之儲存裝置,其中該儲存裝置更包括:一控制切換電路,設置於該第一連接器與該第二連接器之間,用以根據該供應電壓由一第二控制狀態切換為一第一控制狀態,使得該第二連接器由一裝置模式切換至一充電模式。 The storage device of claim 1, wherein the storage device further comprises: a control switching circuit disposed between the first connector and the second connector for receiving a voltage according to the supply voltage The second control state is switched to a first control state, such that the second connector is switched from a device mode to a charging mode. 如申請專利範圍第2項所述之儲存裝置,更包括:一控制器電路;以及一資料切換電路,設置於該第一連接器與該第二連接器之間,用以根據該供應電壓由一第二裝置狀態切換為一第一裝置狀態,使得該第一電子裝置經由該第一連接器、該資料切換電路以及該控制器電路對該記憶體電路存取資料。 The storage device of claim 2, further comprising: a controller circuit; and a data switching circuit disposed between the first connector and the second connector for The second device state is switched to a first device state, such that the first electronic device accesses the memory circuit via the first connector, the data switching circuit, and the controller circuit. 如申請專利範圍第3項所述之儲存裝置,更包括:一電源切換電路,設置於該第一連接器與該第二連接器之 間,用以根據該供應電壓由一關閉狀態切換至一開啟狀態,使得該供應電壓經由該第二連接器對該第二電子裝置充電。 The storage device of claim 3, further comprising: a power switching circuit disposed on the first connector and the second connector And switching from the off state to an on state according to the supply voltage, so that the supply voltage charges the second electronic device via the second connector. 如申請專利範圍第1項所述之儲存裝置,其中該第二電子裝置不會經由該第二連接器供電給該儲存裝置。 The storage device of claim 1, wherein the second electronic device does not supply power to the storage device via the second connector. 如申請專利範圍第4項所述之儲存裝置,其中:當僅該第一連接器連接該第一電子裝置時,該第一電子裝置經由該第一連接器提供該供應電壓至該資料切換電路、該控制器電路以及該記憶體電路,該資料切換電路根據該供應電壓由該第二裝置狀態切換為該第一裝置狀態,使得該第一電子裝置經由該第一連接器、該資料切換電路以及該控制器電路對該記憶體電路存取資料。 The storage device of claim 4, wherein: when only the first connector is connected to the first electronic device, the first electronic device provides the supply voltage to the data switching circuit via the first connector The controller circuit and the memory circuit, the data switching circuit is switched from the second device state to the first device state according to the supply voltage, so that the first electronic device passes the first connector, the data switching circuit And the controller circuit accesses the data to the memory circuit. 如申請專利範圍第4項所述之儲存裝置,其中:當僅該第二連接器連接該第二電子裝置時,該第二電子裝置經由該第二連接器提供一供應電壓至該控制器電路以及該記憶體電路,該資料切換電路維持在該第二裝置狀態,使得該第二電子裝置經由該第二連接器、該資料切換電路以及該控制器電路對該記憶體電路存取資料。 The storage device of claim 4, wherein: when only the second connector is connected to the second electronic device, the second electronic device provides a supply voltage to the controller circuit via the second connector And the memory circuit, the data switching circuit is maintained in the second device state, such that the second electronic device accesses the memory circuit via the second connector, the data switching circuit, and the controller circuit. 如申請專利範圍第4項所述之儲存裝置,其中:當該第一連接器未連接該第一電子裝置且該第二連接器未連接該第二電子裝置時,該第一連接器設置為該裝置模式,該第二連接器設置為該裝置模式,該電源切換電路設置為該關閉狀態,該控制切換電路設置為該第二控制狀態,且該資料切換電路為該第二裝置狀態。 The storage device of claim 4, wherein when the first connector is not connected to the first electronic device and the second connector is not connected to the second electronic device, the first connector is set to In the device mode, the second connector is set to the device mode, the power switching circuit is set to the off state, the control switching circuit is set to the second control state, and the data switching circuit is the second device state. 一種用於儲存裝置之操作方法,該儲存裝置包含一記憶體電路、一第一連接器、以及一第二連接器以及一控制器電路,該操作方法包括:偵測該第一連接器是否連接於一第一電子裝置;偵測該第二連接器是否連接於不同於該第一電子裝置之一第二電子裝置;當該第一連接器連接於一第一電子裝置並且該第二連接器連接於一第二電子裝置時,由該第一電子裝置接收一供應電壓;使得該第一電子裝置透過該儲存裝置對該第二電子裝置充電;以及藉由該供應電壓使該第一電子裝置經由該第一連接器對該記憶體電路存取該資料。 An operating method for a storage device, the storage device comprising a memory circuit, a first connector, a second connector and a controller circuit, the method comprising: detecting whether the first connector is connected a first electronic device; detecting whether the second connector is connected to a second electronic device different from the first electronic device; when the first connector is connected to a first electronic device and the second connector When the second electronic device is connected to the second electronic device, the first electronic device receives a supply voltage; the first electronic device charges the second electronic device through the storage device; and the first electronic device is enabled by the supply voltage The data is accessed to the memory circuit via the first connector. 如申請專利範圍第9項所述之用於儲存裝置之操作方法,更包括:設置一控制切換電路於該第一連接器與該第二連接器之間;以及根據該供應電壓由一第二控制狀態切換為一第一控制狀態,使得該第二連接器由一裝置模式切換至一充電模式。 The operating method for the storage device of claim 9, further comprising: providing a control switching circuit between the first connector and the second connector; and a second according to the supply voltage The control state is switched to a first control state such that the second connector is switched from a device mode to a charging mode. 如申請專利範圍第10項所述之用於儲存裝置之操作方法,更包括:設置一資料切換電路於該第一連接器與該第二連接器之間;以及根據該供應電壓由一第二裝置狀態切換為一第一裝置狀 態,使得該第一電子裝置經由該第一連接器、該資料切換電路以及該控制器電路對該記憶體電路存取資料。 The method for operating a storage device according to claim 10, further comprising: setting a data switching circuit between the first connector and the second connector; and using a second according to the supply voltage Switching the device state to a first device The first electronic device accesses the memory circuit via the first connector, the data switching circuit, and the controller circuit. 如申請專利範圍第11項所述之用於儲存裝置之操作方法,更包括:設置一電源切換電路於該第一連接器與該第二連接器之間;以及根據該供應電壓由一關閉狀態切換至一開啟狀態,使得該供應電壓經由該第二連接器對該第二電子裝置充電。 The operating method for the storage device of claim 11, further comprising: providing a power switching circuit between the first connector and the second connector; and a closed state according to the supply voltage Switching to an on state, the supply voltage charges the second electronic device via the second connector. 如申請專利範圍第9項所述之用於儲存裝置之操作方法,其中該第二電子裝置不會經由該第二連接器供電給該儲存裝置。 The operating method for a storage device according to claim 9, wherein the second electronic device does not supply power to the storage device via the second connector. 如申請專利範圍第12項所述之用於儲存裝置之操作方法,更包括:當僅該第一連接器連接該第一電子裝置時,該第一電子裝置經由該第一連接器提供該供應電壓至該資料切換電路、該控制器電路以及該記憶體電路;根據該供應電壓由該第二裝置狀態切換為該第一裝置狀態;以及經由該第一連接器、該資料切換電路以及該控制器電路對該記憶體電路存取資料。 The operating method for a storage device according to claim 12, further comprising: when only the first connector is connected to the first electronic device, the first electronic device provides the supply via the first connector Voltage to the data switching circuit, the controller circuit, and the memory circuit; switching from the second device state to the first device state according to the supply voltage; and via the first connector, the data switching circuit, and the control The circuit accesses the data to the memory circuit. 如申請專利範圍第12項所述之用於儲存裝置之操作方法,更包括:當僅該第二連接器連接該第二電子裝置時,該第二電子裝置經由該第二連接器提供一供應電壓至該控制器電路以及 該記憶體電路;維持該資料切換電路在該第二裝置狀態;以及經由該第二連接器、該資料切換電路以及該控制器電路對該記憶體電路存取資料。 The operating method for a storage device according to claim 12, further comprising: when only the second connector is connected to the second electronic device, the second electronic device provides a supply via the second connector Voltage to the controller circuit and The memory circuit maintains the data switching circuit in the second device state; and accesses the memory circuit via the second connector, the data switching circuit, and the controller circuit. 如申請專利範圍第12項所述之用於儲存裝置之操作方法,更包括:當該第一連接器未連接該第一電子裝置且該第二連接器未連接該第二電子裝置時,設置該第一連接器為該裝置模式;設置該第二連接器為該裝置模式;設置該電源切換電路為該關閉狀態;設置該控制切換電路為該第二控制狀態;以及設置該資料切換電路為該第二裝置狀態。 The method for operating a storage device according to claim 12, further comprising: setting when the first connector is not connected to the first electronic device and the second connector is not connected to the second electronic device The first connector is in the device mode; the second connector is set to the device mode; the power switching circuit is set to the off state; the control switching circuit is set to the second control state; and the data switching circuit is set to The second device state.
TW106146499A 2016-06-27 2017-03-30 Storage device and operating method thereof TWI654602B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201662354858P 2016-06-27 2016-06-27
US62/354,858 2016-06-27

Publications (2)

Publication Number Publication Date
TW201812747A TW201812747A (en) 2018-04-01
TWI654602B true TWI654602B (en) 2019-03-21

Family

ID=61725091

Family Applications (2)

Application Number Title Priority Date Filing Date
TW106110755A TWI618057B (en) 2016-06-27 2017-03-30 Storage device and operating method thereof
TW106146499A TWI654602B (en) 2016-06-27 2017-03-30 Storage device and operating method thereof

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW106110755A TWI618057B (en) 2016-06-27 2017-03-30 Storage device and operating method thereof

Country Status (1)

Country Link
TW (2) TWI618057B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI618057B (en) 2016-06-27 2018-03-11 慧榮科技股份有限公司 Storage device and operating method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050122648A1 (en) 2003-12-03 2005-06-09 C-One Technology Corporation USB storage device with at least one I/O apparatus
CN2821695Y (en) 2005-08-03 2006-09-27 盛技精密股份有限公司 USB double interface portable disc
TWI618057B (en) 2016-06-27 2018-03-11 慧榮科技股份有限公司 Storage device and operating method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI275000B (en) * 2005-07-08 2007-03-01 Ali Corp Dynamic switching method and system of media transfer protocol and mass storage class for portable multimedia device
TWM287990U (en) * 2005-07-11 2006-02-21 Genesys Logic Inc Digital/analog TV and audio media storage device
JP2009026175A (en) * 2007-07-23 2009-02-05 Kyocera Mita Corp Usb memory stick
JP2009276828A (en) * 2008-05-12 2009-11-26 Nec Electronics Corp Usb connector and usb connection method
US8364870B2 (en) * 2010-09-30 2013-01-29 Cypress Semiconductor Corporation USB port connected to multiple USB compliant devices
TW201335836A (en) * 2012-02-22 2013-09-01 Hon Hai Prec Ind Co Ltd Apparatus and method for building a storage array using a plurality of storage devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050122648A1 (en) 2003-12-03 2005-06-09 C-One Technology Corporation USB storage device with at least one I/O apparatus
CN2821695Y (en) 2005-08-03 2006-09-27 盛技精密股份有限公司 USB double interface portable disc
TWI618057B (en) 2016-06-27 2018-03-11 慧榮科技股份有限公司 Storage device and operating method thereof

Also Published As

Publication number Publication date
TW201801071A (en) 2018-01-01
TWI618057B (en) 2018-03-11
TW201812747A (en) 2018-04-01

Similar Documents

Publication Publication Date Title
CN107544921B (en) Storage device and operation method thereof
KR101494900B1 (en) Mobile phone and method for charging through discernment charging cable
JP6173297B2 (en) Mobile terminal and interface method thereof
US8723476B2 (en) USB dedicated charger identification circuit
US9727111B2 (en) Control device for current switching and electronic device
US7218528B2 (en) Dual connecting interface memory card
WO2017161746A1 (en) User equipment
US10955888B2 (en) Universal serial bus device and method for dynamically defining a power source or sink status for downstream facing ports
KR101416193B1 (en) Universal serial bus memory device and method for manufacuring thereof
US20140281139A1 (en) Dual-interface flash drive
KR101386854B1 (en) Case having function of keeping memory apparatus
US20060288146A1 (en) Dual connecting interface memory card
US20150169491A1 (en) Electronic device using usb socket to load firmware and firmware loading method thereof
JP2007323630A (en) Memory card with serial interface for communication
TWI654602B (en) Storage device and operating method thereof
US20130244455A1 (en) Processing device and processing system
TWM445292U (en) Usb multi - purpose switching device
US20050070157A1 (en) Dual digital data connector
TWI451634B (en) Circuit for swapping a memory card in an electronic device
JP2019103218A (en) Battery device and program executed in battery device
KR100660606B1 (en) USB Memory Device Combined with Charging and Data Link
CN109388601B (en) Control method of OTG power supply and charging automatic switching module
TWI546674B (en) Data transmitting device having multi-transmission modes and method of switching multi-transmission modes thereof
US20090121551A1 (en) Battery backup device
US20160335213A1 (en) Motherboard with multiple interfaces