201214917 ' TW6438PA ' 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種轉接器、電子裝置及其充電方 法,且特別是有關於一種具高度便利性之轉接器、電子裝 置及其充電方法。 【先前技術】 現代手持電子裝置,如行動電話、數位相機、筆記型 • 電腦或電子書等,已有多數不提供傳統的充電插孔,改而 利用手持電子裝置本身的USB接口透過常規的usb接線 以在與個人電腦(PC)連線的同時進行充電。然而,若以個 人電腦的USB端作為充電來源,由於USB端的電流較小 (充電電流最大約500〜750mA),手持電子裝置的充電速度 變得緩慢。因此,部分的手持電子裝置會提供具USB接口 的轉接器(adapter)及充電專用的特製USB接線,而得以利 用傳統的電源插座進行充電(充電電流最大約1〜2A)。 鲁 凊參照第1A圖及第1B圖,其繪示傳統手持電子裝 置充電方法之示意圖。於第1A圖中,手持電子裝置1〇透 過常規的USB接線20與個人電腦30連接,其中,USB 接線20在手持電子裝置1 〇處的第四個腳位(識別腳位, pin)為浮接(floating),故手持電子裝置10可以辨識出所連 接者為個人電腦30’而得以同時進行資料的傳輸及充電的 動作(充電電流最大約500〜750mA)。 於第1B圖中’手持電子裝置4〇透過充電專用的特製 USB接線55與轉接器50連接。USB接線55在手持電子 201214917 TW6438PA ' ‘ 裝置40處的第四個腳位(識別腳位,ID pin)與第5個腳位 (地腳位,GND pin)電性連接而接地,故手持電子裝置10 可以辨識出所連接者為電源插座(未繪示於圖),而得以利 用傳統的電源插座進行較快速的充電(充電電流最大約 I 〜2A)。 然而,上述的方法需要視不同的情況使用兩條不同的 線材(一般的USB接線及充電專用USB接線),不僅提高 電子裝置製造成本,且易導致使用者錯用、不便攜帶/收納。 【發明内容】 本發明是有關於一種轉接器、電子裝置及其充電方 法,藉由特殊的轉接器使得電子裝置可以自動轉換充電模 式,提高使用便利性。 根據本發明之第一方面,提出一種電子裝置,包括一 USB介面單元、一暫存單元以及一控制單元。USB介面單 元具有一 D+接腳及一 D-接腳。暫存單元電性連接至USB 介面單元。控制單元用以控制暫存單元傳送一高位準電壓 至D+接腳並於一特定時段後讀取D+接腳及D-接腳的電 壓位準。其中,當暫存單元讀取到的D+接腳及D-接腳的 電壓位準均為高位準電壓,控制單元控制電子裝置切換為 一轉接器充電模式。 根據本發明之第二方面,提出一種轉接器,包括一 USB介面單元以及一充電單元。USB介面單元具有一 D+ 接腳及一 D-接腳,D+接腳及D-接腳為短路連接。充電單 元耦接至USB介面單元,用以於一轉接器充電模式提供一 201214917 . TW6438PA ' 充電電源。 根據本發明之第三方面,提出一種電子裝置的充電方 法,包括下列步驟。電子裝置輸出一高位準電壓至一 USB 傳輸線的一 D+接腳。電子裝置於一特定時段後讀取USB 傳輸線的D+接腳及一 D-接腳的電壓位準。當電子裝置讀 取到的D+接腳及D-接腳的電壓位準均為高位準電壓,電 子裝置切換為一轉接器充電模式。 為了對本發明之上述及其他方面有更佳的瞭解,下文 • 特舉較佳實施例,並配合所附圖式,作詳細說明如下: 【實施方式】 本發明提出一種轉接器、電子裝置及其充電方法,藉 由特殊的轉接器使得電子裝置不需更換線材即可自動轉 換充電模式,提高使用者的攜帶性及便利性。 請參照第2圖,其繪示依照本發明較佳實施例之電子 裝置處於一轉接器充電模式之示意圖。於第2圖中,電子 φ 裝置100包括一 USB介面單元110、一暫存單元120以及 一控制單元130。USB介面單元110包括一 VCC接腳、一 D+接腳、一 D-接腳及一 GND接腳。暫存單元120電性連 接至USB介面單元110。201214917 'TW6438PA' VI. Description of the Invention: [Technical Field] The present invention relates to an adapter, an electronic device and a charging method thereof, and more particularly to a highly convenient adapter and electronic device And its charging method. [Prior Art] Modern handheld electronic devices, such as mobile phones, digital cameras, notebooks, computers, or e-books, have not provided traditional charging jacks, and instead use the USB interface of the handheld electronic device through conventional USB. Wiring is done while charging with a personal computer (PC). However, if the USB side of the personal computer is used as the charging source, the charging speed of the handheld electronic device becomes slow due to the small current at the USB terminal (the charging current is about 500 to 750 mA at most). Therefore, some of the handheld electronic devices provide an adapter with a USB interface and a special USB cable for charging, and can be charged by a conventional power socket (a charging current of about 1 to 2 A). Lu Yi refers to FIG. 1A and FIG. 1B, which illustrate a schematic diagram of a conventional handheld electronic device charging method. In FIG. 1A, the handheld electronic device 1 is connected to the personal computer 30 via a conventional USB cable 20, wherein the fourth terminal (recognition pin, pin) of the USB cable 20 at the handheld electronic device 1 is floated. By floating, the handheld electronic device 10 can recognize that the connected person is the personal computer 30' and can simultaneously transmit and charge data (the charging current is about 500 to 750 mA at most). In Fig. 1B, the handheld electronic device 4 is connected to the adapter 50 via a special USB cable 55 for charging. The USB cable 55 is electrically connected to the fourth pin (identification pin, ID pin) and the fifth pin (foot pin, GND pin) at the handheld electronic device 201214917 TW6438PA ' ', so the handheld electronic The device 10 can recognize that the connected person is a power outlet (not shown), and can use a conventional power socket for faster charging (charging current is about I 2A). However, the above method requires the use of two different wires (general USB wiring and USB cable for charging) depending on the situation, which not only increases the manufacturing cost of the electronic device, but also causes the user to misuse or not carry/storage. SUMMARY OF THE INVENTION The present invention relates to an adapter, an electronic device, and a charging method thereof. The special adapter enables the electronic device to automatically switch the charging mode, thereby improving the convenience of use. According to a first aspect of the present invention, an electronic device is provided, comprising a USB interface unit, a temporary storage unit and a control unit. The USB interface unit has a D+ pin and a D- pin. The temporary storage unit is electrically connected to the USB interface unit. The control unit is configured to control the temporary storage unit to transmit a high level voltage to the D+ pin and read the voltage levels of the D+ pin and the D- pin after a certain period of time. Wherein, when the voltage levels of the D+ pin and the D-pin read by the temporary storage unit are both high level voltages, the control unit controls the electronic device to switch to an adapter charging mode. According to a second aspect of the present invention, an adapter is provided comprising a USB interface unit and a charging unit. The USB interface unit has a D+ pin and a D-pin, and the D+ pin and the D- pin are short-circuited. The charging unit is coupled to the USB interface unit for providing a 201214917 . TW6438PA ' charging power supply in an adapter charging mode. According to a third aspect of the present invention, there is provided a charging method of an electronic device comprising the following steps. The electronic device outputs a high level voltage to a D+ pin of a USB transmission line. The electronic device reads the voltage level of the D+ pin and a D-pin of the USB transmission line after a certain period of time. When the voltage levels of the D+ pin and the D- pin read by the electronic device are both high level voltages, the electronic device switches to an adapter charging mode. In order to better understand the above and other aspects of the present invention, the following description of the preferred embodiments and the accompanying drawings will be described in detail as follows: [Embodiment] The present invention provides an adapter, an electronic device, and The charging method enables the electronic device to automatically switch the charging mode without changing the wire by using a special adapter, thereby improving the portability and convenience of the user. Referring to FIG. 2, a schematic diagram of an electronic device in an adapter charging mode in accordance with a preferred embodiment of the present invention is shown. In Fig. 2, the electronic φ device 100 includes a USB interface unit 110, a temporary storage unit 120, and a control unit 130. The USB interface unit 110 includes a VCC pin, a D+ pin, a D- pin, and a GND pin. The temporary storage unit 120 is electrically connected to the USB interface unit 110.
此外,轉接器300包括一 USB介面單元310以及一 充電單元320。USB介面單元310包括一 VCC接腳、一 D+接腳、一 D-接腳及一 GND接腳。其中,USB介面單元 310與USB介面單元110不同之處在於USB介面單元310 的D+接腳及D-接腳為短路連接。充電單元320耦接至USB 201214917In addition, the adapter 300 includes a USB interface unit 310 and a charging unit 320. The USB interface unit 310 includes a VCC pin, a D+ pin, a D- pin, and a GND pin. The USB interface unit 310 is different from the USB interface unit 110 in that the D+ pin and the D- pin of the USB interface unit 310 are short-circuited. The charging unit 320 is coupled to the USB 201214917
TW6438PA 介面單元3H)。電子裝⑽與轉接器·之間係用常規 的腦接線2〇0連接即可,亦即轉接器300肖聰接線 200可分離。 % 在㈣接線200連接電子裝置1〇〇與轉接器· 控制単會控制暫存以12G傳送—高位準電壓至 ^JSB二面早το 110之D+接腳並於一特定時段 ^後)讀取腿介面單元1H)之IH接腳及D-接腳的電^ 位準。暫存單SU0可包括—職時脈設 ^ (UCLKC0Nregis㈣及—系統狀態暫存器㈣ uL人)時脈认疋暫存器可用以傳送高位準電壓至 ==元,D+接腳,系統狀態暫存器可用以讀 it不j早7110的D+接腳及仏接腳的電壓位準,然 並不限制,端視設計而定。 連接由介面單f310白勺D+接腳及D_接腳為短路 此時,充雷1 _腳接收〶位準電壓會由經由d_接腳回傳。 電源。_,暫存Μ 12〇 ^ Μ以提供一充電 的D+垃^ 存早兀120項取到的USB介面單元110 元13〇t 接腳的電壓位準均為高位準電壓,控制單 者為電透 線綱及轉接器期所連接 轉接哭… 故控制電子裝置100切換為 充電。S ^式而付以利用傳統的電源插座進行快速的 裝置㈣本㈣触實闕之電子 置100 1# 充電杈式之示意圖。於第3圖中,電子裝 ,、人電腦400之間係用常規的咖接線2〇〇連 201214917 TW6438PA ‘ 接。個人電腦400包括一 USB介面單元410。在USB接 線200連接電子裝置100與個人電腦400時,控制單元130 會控制暫存單元120傳送高位準電壓至USB介面單元110 之D+接腳並於一特定時段後(例如為lms後)讀取USB介 面單元110之D+接腳及D-接腳的電壓位準。 由於USB介面單元410的D+接腳及D-接腳相互分 離,故D+接腳接收高位準電壓不會由經由D-接腳回傳, 而是視為暫態雜訊並忽視掉。同時,暫存單元120讀取到 • 的USB介面單元110的D+接腳的電壓位準為高位準電壓 而D-接腳的電壓位準的電壓位準為低位準電壓,亦即D+ 接腳及D-接腳的電壓位準非均為高位準電壓。因此,控制 單元13 0得以辨識透過U S B連接線2 0 0所連接者為個人電 腦400,故控制電子裝置100切換為USB充電模式進行充 電。同時,電子裝置100在USB充電模式時可同步進行資 料傳輸。此外,電子裝置100在轉接器充電模式下的充電 電流大於在USB充電模式下的充電電流。 • 請參照第4圖,其繪示依照本發明較佳實施例之電子 裝置的充電方法之流程圖。於步驟S500中,電子裝置輸 出一高位準電壓至一 USB傳輸線的一 D+接腳。於步驟 S510中,電子裝置於一特定時段後讀取USB傳輸線的D+ 接腳及一 D-接腳的電壓位準。於步驟S520中,電子裝置 判斷讀取到的D+接腳及D-接腳的電壓位準是否均為高位 準電壓。若D+接腳及D-接腳的電壓位準均為高位準電 壓,則於步驟S530中,電子裝置切換為一轉接器充電模 式。若D+接腳及D-接腳的電壓位準非均為高位準電壓,TW6438PA interface unit 3H). The electronic device (10) and the adapter are connected by a conventional brain wire 2〇0, that is, the adapter 300 can be separated. % In (4) Wiring 200 Connect the electronic device 1〇〇 and the adapter · Control 単 will control the temporary storage to 12G transmission - high level voltage to ^JSB two sides early το 110 D+ pin and read after a certain period of time ^) Take the IH pin and D- pin of the leg interface unit 1H). The temporary storage unit SU0 may include a service clock setting ^ (UCLKC0Nregis (4) and - system status register (4) uL person) clock reference register can be used to transmit high level voltage to == yuan, D+ pin, system state temporary storage The device can be used to read the voltage level of the D+ pin and the pin of the pin 7110, but it is not limited, depending on the design. The connection is shorted by the D+ pin and the D_ pin of the interface f310. At this time, the charging 1 _ pin receiving 〒 level voltage will be transmitted back via the d_ pin. power supply. _, temporary storage Μ 12〇^ Μ to provide a charging D + ^ ^ Save as early as 120 items to get the USB interface unit 110 yuan 13 〇 t pin voltage level is high level voltage, control single is electricity The connection line and the adapter are connected to switch to cry... Therefore, the control electronic device 100 switches to charging. S ^ type and pay for the use of the traditional power outlet for fast devices (four) this (four) touch the electronic unit set 100 1 # charging 之 diagram. In Fig. 3, the electronic device and the human computer 400 are connected by a regular coffee connection 2 201214917 TW6438PA ‘ The personal computer 400 includes a USB interface unit 410. When the USB cable 200 is connected to the electronic device 100 and the personal computer 400, the control unit 130 controls the temporary storage unit 120 to transmit the high level voltage to the D+ pin of the USB interface unit 110 and read after a certain period of time (for example, after 1 lms). The voltage level of the D+ pin and the D- pin of the USB interface unit 110. Since the D+ pin and the D- pin of the USB interface unit 410 are separated from each other, the D+ pin receiving the high level voltage is not returned by the D-pin, but is regarded as transient noise and ignored. At the same time, the voltage level of the D+ pin of the USB interface unit 110 read by the temporary storage unit 120 is a high level voltage, and the voltage level of the voltage level of the D-pin is a low level voltage, that is, a D+ pin. And the voltage level of the D-pin is not a high level voltage. Therefore, the control unit 130 recognizes that the person connected via the U S B connection line 200 is the personal computer 400, so the control electronic device 100 switches to the USB charging mode for charging. At the same time, the electronic device 100 can simultaneously perform data transmission in the USB charging mode. In addition, the charging current of the electronic device 100 in the adapter charging mode is greater than the charging current in the USB charging mode. • Referring to FIG. 4, a flow chart of a method of charging an electronic device in accordance with a preferred embodiment of the present invention is shown. In step S500, the electronic device outputs a high level voltage to a D+ pin of a USB transmission line. In step S510, the electronic device reads the voltage level of the D+ pin of the USB transmission line and a D-pin after a certain period of time. In step S520, the electronic device determines whether the read voltage levels of the D+ pin and the D- pin are both high level voltages. If the voltage levels of the D+ pin and the D- pin are both high level voltages, then in step S530, the electronic device switches to an adapter charging mode. If the voltage levels of the D+ pin and the D- pin are not high level voltages,
* I 201214917* I 201214917
TW6438PA 則於步驟S540中,電子裝置切換為一 USB充電模式。其 中電子裴置在轉接器充電模式下的充電電流大於在usb 充電模式下的充電電流。 上述電子裝置的充電方法之原理已詳述於第2圖及 第3圖中’故於此不再重述。 本發明上述實施例所揭露之轉接器、電子裝置及其充 電方法,具有多項優點,以下僅列舉部分優點說明如下: 本發明之轉接器、電子裝置及其充電方&,係藉由特 殊的轉接器,使得電子裝置藉由判斷D+接腳及D_接腳的 電I位準即可自動轉換充電模式,如此一來,不需更換線 材’即可節省成本亦增進了使用者的攜帶性及便利性。 、綜上所述,雖然本發明已以一較佳實施例揭露如上, =其並非用以限定本發明。本發明所屬技術領域巾具有通 常知識者,在不脫離本發明之精神和範圍内,當可作各種 之更動與潤飾。因此,本發明之保護範圍當視後附之申請 專利範圍所界定者為準。 【圖式簡單說明】 —第1A圖及第1B圖緣示傳統手持電子裝置充電方法 之示意圖。 第2圖繪示依照本發明較佳實施例之電子裝置處於 一轉接器充電模式之示意圖。 第3圖繪不依照本發明較佳實施例之電子裝置處於 一 USB充電模式之示意圖。 第4圖繪示依妝本發明較佳實施例之電子裝置的充 201214917TW6438PA is then in step S540, the electronic device switches to a USB charging mode. The charging current of the electronic device in the adapter charging mode is greater than the charging current in the usb charging mode. The principle of the charging method of the above electronic device has been described in detail in Figs. 2 and 3, and therefore will not be repeated here. The adapter, the electronic device and the charging method thereof disclosed in the above embodiments of the present invention have a plurality of advantages, and only some of the advantages described below are as follows: The adapter, the electronic device and the charging side thereof of the present invention are The special adapter allows the electronic device to automatically switch the charging mode by judging the electric I level of the D+ pin and the D_ pin, so that the wire can be replaced without saving the wire. Portability and convenience. In conclusion, the present invention has been disclosed above in a preferred embodiment, and is not intended to limit the present invention. It will be apparent to those skilled in the art that various changes and modifications can be made without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS - Figures 1A and 1B show schematic diagrams of a conventional handheld electronic device charging method. 2 is a schematic diagram of an electronic device in an adapter charging mode in accordance with a preferred embodiment of the present invention. Figure 3 is a diagram showing the electronic device in a USB charging mode not according to a preferred embodiment of the present invention. FIG. 4 is a diagram showing the charging of an electronic device according to a preferred embodiment of the present invention. 201214917
, TW6438PA J 電方法之流程圖。 【主要元件符號說明】 10、40 :手持電子裝置 20 : USB接線 30、400 :個人電腦 50 :轉接器 55、200 : USB 接線 φ 100 :電子裝置 110、310、410 : USB 介面單元 120 :暫存單元 130 :控制單元 300 :轉接器 320 :充電單元, TW6438PA J flow chart of the electric method. [Main component symbol description] 10, 40: Handheld electronic device 20: USB cable 30, 400: Personal computer 50: Adapter 55, 200: USB cable φ 100: Electronic device 110, 310, 410: USB interface unit 120: The temporary storage unit 130: the control unit 300: the adapter 320: the charging unit