1281301 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種充電模式控制電路及裝 置,特別係一種帶USB介面的攜帶型設備的充電 模式控制電路及裝置。 【先前技術】 帶USB介面的攜帶型設備如掌上電腦等資訊 存取量大、體積小、攜帶方便’所以自其問世以來 直備受用戶青睞。為使攜帶型設備更好地便於用 二使用,如帶電時間長,攜帶型設備一般都内置大 容量的可充電電池,對於可充電電池充電的充電模 式,現有技術主要有以下兩種方案 方案一: 、 <利用外部直流適配器將市電經過變壓整流濾 波穩墨之後給攜帶型設備提供充電電源對可充電 電池充電。採用這種充電模式的優點在⑨,只要有 I電的地方就可以直接利用豸配器對攜帶型設備 、:充電電池充電’而缺點在於,在充電期間電腦 和攜帶型設備不能藉由此充電介面進行資料交換。 方案二: 、 、 利用USB 面將攜帶型設備與電腦相連,藉 電、、:二介:為攜帶型設備提供充電電源對可充電 電才木取^種充電模式在對攜帶型設備充電 1281301 的同時電腦和攜帶型設備之間還可以藉由USB匯 流排進行資料交換,使用起來十分方便,可按照 USB 1.1和USB 2 〇的協議標準,的每個埠的 匯流排供電容量被限制在2·5瓦(〇 5A@ +5V)以 1,也就是說當USB介面提供的充電電壓為+5V 時,所能提供的充電電流最大不超過5〇〇mA,因而 這個較小的充電電流限制了攜帶型設備充電的速 • ^ ° 【發明内容】 基於上述原因,本發明提供一種充電模式控制 電路,以根據不同的充電電源選取相應的充電模式 對攜帶型設備的可充電池充電。 本發明還提供一種充電模式控制裝置,以解決 現有技術中攜帶型設備在和電腦進行資料交換同 _ 時不此對其可充電電池快速充電的問題。 本發明提供的充電模式控制方法包括步驟:提 $ 一轉接裝置,所述轉接裝置具有輸入介面與輸出 面,轉接裝置經由所述輸入介面與一電腦相連, 經由所述輸出介面的引腳與一適配器相連,以獲得 =電電源電壓·,比較充電電源電壓與參考電源: 壓,輸出一個相應的高/低電平信號;將此高/低電 平k號作爲充電模式的控制信號,根據此信號電平 的高/低對可充電電池採取相應的充電模式充電。 1281301 本發明提供的充電模式控制電路包括··一電壓 比較電路’其具有兩個輸入端和一個輸出端;及一 充電控制電路,其具有兩個輸入端和一個輸出端, 其中’電壓比較電路的兩輸入端分別連接至一充電 電源與一參考電源,輸出端連接至充電控制電路的 一輸入端;及充電控制電路的另一輸入端連接至充 電電源,輸出端連接一可充電電池。其中,電壓比 ❿較電路比較從其兩輸入端輸入的充電電源電壓與 參考電源電壓,根據比較輸出一個高/低電平信號 送到充電控制電路,充電控制電路根據電壓比較電 路輸出南/低電平信號對可充電電池採取相應的充 電模式充電,所述的充電電源包括經由USB介面 輸出電能的電腦,以及AC/DC適配器,所述電壓 比較電路包含一電壓比較器。 本發明提供的充電模式控制裝置,包括一具有 •兩輸入端與一輸出端的電壓比較電路,及一具有兩 輸入端與一輸出端的充電控制電路,其中,所述充 電杈式控制裝置還包括一轉接裝置,所述轉接裝置 具有輸入介面與輸出介面,轉接裝置經由所述輸入 介面與一電腦相連,經由所述輸出介面的引腳盥一 適配器及電壓比較電路的第—輸入端、《電控制電 路的第-輸人端輸人相連;所述電壓比較器的第二 輸入端連接至一參考電源,輸出端連接至充電控制 電路的第二輸人端;及所述充電控制電路的輸出端 1281301 連接至可充電電池。其中,所述電壓比較電路比較 其第一輸入端與第二輸入端所輸入的電壓值,根據 比較結果輸出一個高/低電平信號給充電控制電 路,所述充電控制電路根據此高/低電平信號對可 充電電池採取相應的充電模式充電,所述電壓比較 電路包含一電屡比較器。 本發明在不影響電腦和攜帶型設備之間進行 參資料交換的基礎上,相容了現有技術的普通充電模 式的同時還提供了一種對攜帶型設備快速充電模 式。採用這種快速充電模式時,只需要在攜帶型設 備和連接於電腦的連接線之間加入一個帶ac/dc 適配器的轉接裝置,藉由適配器可以為充電模式控 制電路提供一個較大電流的充電電源,就可以使電 腦和攜帶型設備之間進行資料交換的同時對攜帶 型設備快速充電,設計簡單易行,使用起來也彳^方 ⑩ 便。 【實施方式】 參閱第一圖,係本發明充電模式控制電路一具 體應用的示思圖。在該具體應用中,充電模式控制 電路320與移轉接裝置40組成了一充電模式控制 裝置。充電模式控制電路320置於一攜帶型設備3〇 中’以根據輸入的充電電源的不同控制攜帶型設備 30中可充電電池310的充電模式。攜帶型設備3〇 1281301 藉由轉接裝置40與一電腦10及一 AC/DC適配器 440相連,以便在和電腦10之間進行資料交換的同 時,從AC/DC適配器440處獲取較大的充電電流, 以快速充電模式對可充電電池310充電。 攜帶型設備30藉由USB介面330與轉接裝置 40的USB介面410相耦接,轉接裝置40又藉由一 USB介面420與USB線纜50連接至電腦10的 USB介面110。該轉接裝置40還藉由具有兩線纜 * (未圖示)的電力線430耦合至AC/DC適配器 440。在該轉接裝置40内部,USB介面420與USB 介面410的引腳除Vcc引腳斷開外其他三個引腳 Ground、D +和D-均爲直接耦合。電力線430的兩 線纜:電源線以及接地線分別與USB介面410的 Vcc引腳以及Ground引腳相連接。因此,藉由轉 接裝置40以及轉接裝置40與電腦10及AC/DC適 φ 配器440之間的連接,攜帶型設備30在無需終止 與電腦10之間進行資料交換的情況下,從AC/DC 適配器440處獲得較大的充電電流以快速充電模式 充電。在本發明的具體實施方式中,當移走轉接裝 置40後,電腦10的USB介面110和攜帶型設備 30的USB介面330藉由USB線纜50直接相連接 時,電腦10可以給整合在攜帶型設備30的充電模 式控制電路320提供一個電壓爲(5±5%) V最大電 流不超過500mA的充電電源,此時攜帶型設備可 11 1281301 ^實現在和電腦進行資料交換的同時以普通充電 模式充電。 參閱第一圖’係為充電模式控制電路320的一 具體實施方式的電路圖’包括-電壓比較電路220 與一充電控制電路230。在本實施方式中,電壓比 車乂電路220係為-電壓比較器。該電壓比較器的第 一輸入端以及充電控制電路23〇的充電電源埠 φ Vlnl ) 232與攜帶型設備30的USB介面330的 電源引腳Vcc相連。電壓比較器的第二輸入端連接 一電壓值爲Vref的參考電源21〇,其輸出端與充電 控制電路230充電控制埠(CE-BAT) 234相連接。 充電控制電路230的充電埠(vbatt) 236與可充電 電池310相連接。 首先’從攜帶型設備30的USB介面26的電 源引腳Vcc處輸出的的充電電壓vin從電壓比較器 鲁第一輸入端輸入後,電壓比較器220將其與從第二 輸入端輸入的參考電壓值Vref相比較,根據比較 結果輸出一個相應的咼/低電平信號至充電控制電 路230的充電控制埠234。參考電源210輸出的參 考電壓值Vref係預先根據AC/DC適配器440以及 電腦10經由USB介面330的電源引腳Vcc處輸出 的充電電壓Vin設定,例如,假設AC/DC適配器 440經由USB介面330的電源引腳Vcc輸出的充 電電壓Vin爲6V,充電電流爲1A ;電腦1〇經由 12 1281301 USB介面330的電源引腳Vcc輸出的的充電電壓 Vin電壓爲5V ’充電電流小於500mA,則此時可 没置參考電源210輸出的參考電壓值vref爲 5.5V。因此,當充電電源來自于電腦1〇時,電壓 比較器會相應地輸出一個低電平信號;而來自於 AC/DC適配器440時,電壓比較器又會相應地輸 出一個高電平信號。 電壓比較器根據輸入的充電電源電壓的大 小輸出相應的高/低電平後,該高/低電平信號就作 爲可充電電池310的充電模式控制信號輸入至充電 控制電路230的充電控制琿234。當充電控制電路 230的充電控制埠234接收的信號爲高電平時,充 電控制電路230識別充電電源為來自AC/DC適配 器440,從而決定對可充電電池31〇採取充電電壓 爲6V充電電流爲1 a的快速充電模式進行充電; _當充電控制電路230的充電控制埠234所接收的信 娩爲低電平時,充電控制電路23〇識別充電電源為 來自電腦10,從而決定對可充電電池31〇採取充電 電壓爲5V充電電流小於5〇〇mA的普通充電模式進 行充電。 本發明的充電模式控制電路32〇中關於來自適 配器60的充電電源的電壓值和電流值不限於6v和 工八’電壓值可以大於或者小於6V,電流值也可以 大於或者小於1A。電壓比較器220相應的參考電 13 1281301 壓也不限於5.5V,其值介於兩充電電源經由USB 面330的電源引腳Vcc處輸出的充電電壓的電壓 值之間就可以實現電壓比較。 以上说明的具體實施例僅為範例。熟知此技術 者可對特定的具體實施例進行變更、修改及變動, 而不脫離完全由所附申請專利範圍第所定義的本 發明的範疇。 魯【圖式簡單說明】 第一圖係本發明充電模式控制電路一具體應 用的示意圖。 第二圖係本發明充電模式控制電路的一具體 實施方式的電路圖 【主要元件符號說明】 雷日溢 鲁电細 10 USB 介面 110,3 30,410,420 3 0 310 320 40 430 440 5 0 攜帶型設備 可充電電池 充電模式控制電路 轉接裝置 電力線 AC/DC適配器 U S B線纜 14 1281301 參考電源 210 電壓比較電路 220 充電控制電路 230 充電电源槔 232 充電控制埠 234 充電埠 236BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a charging mode control circuit and apparatus, and more particularly to a charging mode control circuit and apparatus for a portable device with a USB interface. [Prior Art] Portable devices with a USB interface, such as a handheld computer, have a large amount of access, small size, and easy portability, so they have been favored by users since their inception. In order to make the portable device more convenient to use, for example, the portable device generally has a built-in large-capacity rechargeable battery. For the charging mode of charging the rechargeable battery, the prior art mainly has the following two solutions: : , <Using an external DC adapter to power the mains through variable voltage rectification and filtering, and then provide charging power to the portable device to charge the rechargeable battery. The advantage of adopting this charging mode is 9, as long as there is an electric power, the portable device can be directly used to charge the portable device: charging battery. The disadvantage is that the computer and the portable device cannot be charged by the charging interface during charging. Exchange of information. Option 2: Connect the portable device to the computer using the USB interface, borrowing electricity, and: 2. Providing a charging power supply for the portable device. Charging the rechargeable battery. Charging the portable device with 1281301 At the same time, the computer and the portable device can also exchange data through the USB bus, which is very convenient to use. According to the protocol standards of USB 1.1 and USB 2, the power supply capacity of each bus is limited to 2· 5 watts (〇5A@ +5V) is 1, which means that when the charging voltage provided by the USB interface is +5V, the maximum charging current can be no more than 5〇〇mA, so this smaller charging current is limited. The charging speed of the portable device is required to charge the rechargeable battery of the portable device according to the above-mentioned reasons. The present invention provides a charging mode control circuit for selecting a corresponding charging mode according to different charging power sources. The present invention also provides a charging mode control device for solving the problem that the portable device of the prior art does not charge the rechargeable battery quickly when it exchanges data with the computer. The charging mode control method provided by the present invention comprises the steps of: introducing a switching device having an input interface and an output surface, and the switching device is connected to a computer via the input interface, via the output interface The foot is connected to an adapter to obtain = electric power supply voltage, compare the charging power supply voltage with the reference power supply: voltage, output a corresponding high/low level signal; use this high/low level k number as the control signal of the charging mode According to the high/low of the signal level, the rechargeable battery is charged in the corresponding charging mode. 1281301 The charging mode control circuit provided by the present invention comprises: a voltage comparison circuit having two inputs and an output; and a charging control circuit having two inputs and an output, wherein the 'voltage comparison circuit The two input terminals are respectively connected to a charging power source and a reference power source, the output end is connected to an input end of the charging control circuit; and the other input end of the charging control circuit is connected to the charging power source, and the output end is connected to a rechargeable battery. Wherein, the voltage comparison ❿ compares the charging power supply voltage and the reference power supply voltage input from the two input terminals thereof, and outputs a high/low level signal according to the comparison output to the charging control circuit, and the charging control circuit outputs the south/low according to the voltage comparison circuit. The level signal charges the rechargeable battery in a corresponding charging mode, the charging power source includes a computer that outputs power via a USB interface, and an AC/DC adapter, the voltage comparison circuit including a voltage comparator. The charging mode control device provided by the present invention comprises a voltage comparison circuit having two input ends and an output terminal, and a charging control circuit having two input ends and an output end, wherein the charging type control device further comprises a The switching device has an input interface and an output interface, and the switching device is connected to a computer via the input interface, through the pin of the output interface, an adapter, and a first input end of the voltage comparison circuit, The first input end of the voltage control circuit is connected to a reference power source, the output end is connected to the second input end of the charge control circuit; and the charge control circuit The output 1281301 is connected to a rechargeable battery. The voltage comparison circuit compares the voltage values input by the first input end and the second input end, and outputs a high/low level signal to the charging control circuit according to the comparison result, and the charging control circuit is based on the high/low voltage. The level signal charges the rechargeable battery in a corresponding charging mode, and the voltage comparison circuit includes an electrical comparator. The invention not only affects the exchange of data between the computer and the portable device, but also conforms to the conventional charging mode of the prior art while also providing a fast charging mode for the portable device. In this fast charging mode, it is only necessary to add a switching device with an ac/dc adapter between the portable device and the cable connected to the computer. The adapter can provide a large current for the charging mode control circuit. The charging power supply can make the data exchange between the computer and the portable device fast, and the portable device can be quickly charged. The design is simple and easy to use, and the use is also convenient. [Embodiment] Referring to the first figure, it is a schematic diagram of a specific application of the charging mode control circuit of the present invention. In this particular application, charging mode control circuit 320 and shifting device 40 form a charging mode control device. The charging mode control circuit 320 is placed in a portable device 3' to control the charging mode of the rechargeable battery 310 in the portable device 30 according to the input charging power. The portable device 3〇1281301 is connected to a computer 10 and an AC/DC adapter 440 by the switching device 40 to obtain a larger charging from the AC/DC adapter 440 while exchanging data with the computer 10. Current, the rechargeable battery 310 is charged in a fast charging mode. The portable device 30 is coupled to the USB interface 410 of the switching device 40 via the USB interface 330. The switching device 40 is further connected to the USB interface 110 of the computer 10 via a USB interface 420 and a USB cable 50. The switching device 40 is also coupled to the AC/DC adapter 440 by a power line 430 having two cables * (not shown). Inside the switching device 40, the USB interface 420 and the USB interface 410 pins are disconnected from the Vcc pin, and the other three pins Ground, D + and D- are directly coupled. The two cables of the power line 430: the power line and the ground line are respectively connected to the Vcc pin of the USB interface 410 and the Ground pin. Therefore, by the connection between the switching device 40 and the switching device 40 and the computer 10 and the AC/DC adapter 440, the portable device 30 can be exchanged from the AC without terminating data exchange with the computer 10. A larger charging current is obtained at the /DC adapter 440 to charge in the fast charging mode. In the embodiment of the present invention, when the USB interface 110 of the computer 10 and the USB interface 330 of the portable device 30 are directly connected by the USB cable 50 after the switching device 40 is removed, the computer 10 can be integrated. The charging mode control circuit 320 of the portable device 30 provides a charging power source with a voltage of (5±5%) V and a maximum current of not more than 500 mA. At this time, the portable device can be 11 1281301 ^ at the same time as the data exchange with the computer. Charging mode charging. Referring to the first diagram, a circuit diagram of a specific embodiment of the charging mode control circuit 320 includes a voltage comparison circuit 220 and a charge control circuit 230. In the present embodiment, the voltage ratio rudder circuit 220 is a - voltage comparator. The first input of the voltage comparator and the charging power supply 埠 φ Vlnl 232 of the charging control circuit 23 are connected to the power supply pin Vcc of the USB interface 330 of the portable device 30. The second input of the voltage comparator is coupled to a reference supply 21A having a voltage value of Vref, the output of which is coupled to a charge control circuit 230 (C-BAT) 234. A charging buffer (vibat) 236 of the charging control circuit 230 is connected to the rechargeable battery 310. First, after the charging voltage vin output from the power supply pin Vcc of the USB interface 26 of the portable device 30 is input from the first input terminal of the voltage comparator, the voltage comparator 220 inputs it with the reference input from the second input terminal. The voltage value Vref is compared, and a corresponding 咼/low level signal is output to the charge control 埠 234 of the charge control circuit 230 according to the comparison result. The reference voltage value Vref output by the reference power source 210 is previously set according to the AC/DC adapter 440 and the charging voltage Vin output by the computer 10 via the power supply pin Vcc of the USB interface 330, for example, assuming that the AC/DC adapter 440 is via the USB interface 330. The charging voltage Vin of the power supply pin Vcc is 6V, and the charging current is 1A. The charging voltage of the computer 1〇 via the power supply pin Vcc of the 12 1281301 USB interface 330 is 5V. The charging current is less than 500mA. The reference voltage value vref output from the reference power source 210 is not set to 5.5V. Therefore, when the charging power comes from the computer, the voltage comparator will output a low level signal; when it comes from the AC/DC adapter 440, the voltage comparator will output a high level signal accordingly. After the voltage comparator outputs a corresponding high/low level according to the magnitude of the input charging power supply voltage, the high/low level signal is input to the charging control circuit 230 as the charging mode control signal of the rechargeable battery 310. . When the signal received by the charge control unit 234 of the charge control circuit 230 is at a high level, the charge control circuit 230 recognizes that the charge source is from the AC/DC adapter 440, thereby determining to take a charge voltage of 6V to the rechargeable battery 31A. The fast charging mode of a is charged; _ when the reception received by the charging control 埠 234 of the charging control circuit 230 is low, the charging control circuit 23 〇 identifies the charging power source from the computer 10, thereby determining the chargeable battery 31〇 Charging is performed in a normal charging mode in which the charging voltage is 5V and the charging current is less than 5 mA. The voltage value and current value of the charging mode control circuit 32 of the present invention with respect to the charging power source from the adapter 60 are not limited to 6v and the voltage value may be greater than or less than 6V, and the current value may be greater or smaller than 1A. The corresponding reference voltage of the voltage comparator 220 13 1281301 is not limited to 5.5V, and the value is between the voltage values of the charging voltages outputted by the two charging power sources via the power supply pin Vcc of the USB surface 330. The specific embodiments described above are merely examples. A person skilled in the art can make changes, modifications, and variations to the specific embodiments without departing from the scope of the invention as defined by the appended claims. Lu [Simple Description of the Drawings] The first figure is a schematic diagram of a specific application of the charging mode control circuit of the present invention. The second figure is a circuit diagram of a specific embodiment of the charging mode control circuit of the present invention. [Main component symbol description] Lei Riyi Lu electric thin 10 USB interface 110, 3 30, 410, 420 3 0 310 320 40 430 440 5 0 Carrying Type Device Rechargeable Battery Charging Mode Control Circuit Adapter Device Power Line AC/DC Adapter USB Cable 14 1281301 Reference Power Supply 210 Voltage Comparison Circuit 220 Charging Control Circuit 230 Charging Power Supply 槔 232 Charging Control 埠 234 Charging 埠 236
1515