For a more complete understanding, reference is now made to the following description taken in conjunction with the accompanying Drawings in which:
Referring now to the drawings, wherein like reference numbers are used herein to designate like elements throughout, the various views and embodiments of a battery charger IC including built-in USB detection are illustrated and described, and other possible embodiments are described. The figures are not necessarily drawn to scale, and in some instances the drawings have been exaggerated and/or simplified in places for illustrative purposes only. One of ordinary skill in the art will appreciate the many possible applications and variations based on the following examples of possible embodiments.
Universal Serial Bus (USB) technology has been expended beyond its main interface function purpose of providing data communications between connected devices. In 2006, China standardized cell phone charger connectivity to be of the miniUSB type in order to avoid large volume recycle of the power adapters when the handsets were recycled. Under this standard, a wall adapter must also use the miniUSB connector, where the D+ and D− pins of the USB connection need to be connected to each other and floating from anything else. All mobile phones are required to be designed to use the miniUSB receptacle as the power input, whether the device has USB function or not. A USB port within a portable electronic device is now commonly used to provide a 5V source for a non-USB device. Thus, the USB port may be used for driving an LED lamp, a fan, charging a battery, and other similar-type applications. A major application in this area is to use the USB port to charge handheld electronic devices, such as mobile phones, PDAs, MP3 players, digital cameras, etc.
Most of those handheld electronic devices have been designed to enable the battery to be charged with the USB port. To use the USB port power as a source to charge the battery, some strict USB specification guidelines must be met. One major restriction is that the maximum current that can be drawn from a USB source is limited to 500 mA for high power port and 100 mA for low power port. A low power port is a port that gets power from an upstream USB port.
Portable electronic devices can be charged through the USB port by using a non-USB power adapter. Due to the difference in current limit settings between a USB port and a non-USB power adapter, the electronic device must be capable of detecting the input source type and setting the charging current accordingly for the battery of the electronic device. When the battery of a handheld electronic device is charged with a USB power source, the handheld device must identify the USB source and set the charge current to meet the current level established by the USB specification limit. The identification can be accomplished by the USB transceiver if the handheld electronic device includes a USB function, or alternatively, it may be accomplished by a dedicated USB detection IC.
One example of a dedicated detection IC is more fully illustrated in
USB communications are carried out over the USB connector 102 via a USB transceiver circuit 108 within the portable electronic device 100. By monitoring these communications to the USB transceiver 100, the USB detector circuit 104 may determine whether a USB device has been connected for charging purposes. The USB detector 104 identifies a USB source connected via the USB connector and generates an indication to the power management circuitry 106 when a device is being connected for charging purposes. The power management circuitry 106 provides the charging signals necessary for establishing the charging current associated with the device being charged over the USB connector 102.
In an alternative method described herein below, rather than utilizing a separate USB detector chip 104 to determine whether the USB connector is connected with a USB charging source or a wall adapter charging source, the USB detection capability may be integrated within the battery charging circuitry of the portable electronic device. This configuration eliminates the need of an extra IC within the portable electronic device and the necessity for any interface between the USB detector IC 104, the USB connection 102 and power management circuitry 106.
Referring now to
The battery charger circuitry provides an output charging voltage via the VOUT pin connected to the associated battery being charged of the portable electronic device at node 210. USB charger circuit 204 comprises a typical application circuit interfacing with a four-pin USB connector 206 that is part of the handheld electronic device. Through the USB connector 206, the USB charger 204 may identify the source type connected to the USB connector 206 using USB detection circuitry as described more fully hereinbelow.
A resistor 316 is connected between node 310 and ground. Node 310 is also connected to the non-inverting input of a comparator 318. The inverting input of the comparator 318 is connected to the 200 mV reference voltage. The output of comparator 314 and the output of comparator 318 are connected to the inputs of a NAND gate 320. The output of NAND gate 320 is connected to the S (SET) input of a latch circuit 322. The output of the latch circuit 322 provides a control signal from its Q output to a multiplexer 324. The output of the latch 322 acts as a control input to the multiplexer 324 as will be described more fully hereinbelow. The latch circuit 322 is powered by the IC's input power. If the source is removed, the latch will be reset. Otherwise the latch will retain the input source indicating either a TA or USB source connection.
One input of the multiplexer 324 is connected to a resistor 326 that is connected to ground. The second input of the multiplexer 324 is connected to the ISET pin 327 of the charger IC, which is connected to ground through an external resistor RISET 329. The output of the multiplexer 324 is connected to the non-inverting input of amplifier 328. The inverting input of amplifier 328 is connected to a 1.2V reference voltage. The output of the amplifier 328 is connected to the gate of a transistor 330. The drain-source path of transistor 330 is connected between non-inverting input of the comparator 328 and node 322. A transistor 334 is connected between the input voltage node 332 and the output voltage node VOUT 335.
When the non-USB port 339, or a travel adapter (TA) connected to a wall plug with USB connection is used to supply power to the charger via the USB port 338, the D+ and D− pins must be connected together and floating from anything else. Additionally, the USB port D+ and D− pins are connected to ground through 15K resistors 346 and 348. A third requirement is that the USB device must include a 1.5K pull-up resistor 352 at either the D+ or D− pins of the connected device as a system speed identifier. The pull-up is placed on the D− pin if the system speed is a low-speed type USB connection and on the D+ pin if the device is a full, or high-speed, type USB connection.
The USB detection circuitry 302 provides connections to the D+ and D− pin interface of the USB connector 338 or the non-USB connector 339 to achieve the USB detection functionality. The internal 5 μA source current 312 is injected into the D+ pin between the transistor 304 and the non-inverting input of comparator 314. The voltage comparators 314 and 318 associated with each of the D+ node 303 and the D− node 305 compare the voltages on each of the D+ and D− pins with a 200 mV reference voltage. The portable device including the charging circuitry and the USB detection circuitry 302 can detect a USB device connection or a non-USB device connection, i.e., it uses the USB connector solely for supplying power to the charger. Thus, depending on the input source type and the type of device, the output of comparator 314 and 318 will determine whether the input source is a USB source or a TA (travel adapter) source.
The outputs of the comparator 314 and the comparator 318 and the associated pin voltages and device types associated with these comparator and voltage values are more fully illustrated in
Similarly, as indicated generally in row 404 of
If a TA is plugged in through the USB connector 339, as indicated in row 408, and the device has a low speed USB functionality, as indicated by the D− pin being pulled up to 3.3V through the 1.5K resistor 352, the D− pin voltage will be approximately 3.3V. The D+ pin voltage is also 3.3V, since D+ and D− are tied together. The outputs of comparator 314 and 318 will each go to a logical “high” level and the output of NAND gate 320 will be a logical “low” level, indicating that the input source type is a TA. Similarly, if a TA is plugged in through the USB connector 339, as indicated in row 410, and the device has a full speed or high speed USB function, the outputs of each of comparators 314 and 318 will be at a logical “high” level driving the output of NAND gate 320 to a logical “low” level. This provides an indication of a TA source. Finally, if a TA is plugged in through the USB connector 339 and the device has no USB functionality, the voltage the D+ and D− pins is 500 mV (5 μA×100 k), and the outputs of the comparators 314 and 318 will be at a logical “high” level, and the NAND gate 320 will all be at logical “low” level, providing an indication that the TA device is connected.
Thus, the output status of the comparators 314 and 318 can be used to differentiate between the input source types based upon the output of NAND gate 320. The NAND gate 320 outputs a logical “low” level for a TA input source, and a logical “high” level for a USB input source. The identification process to determine whether a USB or TA input source is provided will be completed within 20 ms after power-on reset (POR) and the ID status from NAND gate 320 is latched in to the latch register 322 until the input source is removed. The two transistors 304 and 308 connected to the D+ and D− input nodes, respectively, will be turned off once the ID process is completed in order to isolate the identification circuit 302 from the D+ and D− nodes.
After completion of the input source identification, if the input type is identified as a travel adapter, the constant charge current will be determined by the ISET pin resistor 329. If the input is identified as a USB source, the charge current will be set to 430 mA set by the internal resistor 326. This is done by the indication from the latch 322 providing the identification control signal to the multiplexer 324 which selects between one of the resistors 326 and 329 to set the charge current to the output voltage node 335. If the input source is a travel adapter, the charge current during the constant current phase will be determined by the RISET resistor 329. If the input source is a USB source, the charge current during the constant current phase will be approximately 430 mA.
Referring now also to
Referring to
Once the device is established as a USB source at step 616 or as a travel adapter source at step 620, this indication for the source is latched in by the latching circuit 322 at step 622. This indicator is used to set the multiplexer switch at step 624 to control the charging current provided at the output voltage node 335. The charging current is generated at step 626 by applying the current based upon the resistor selected by the multiplexer circuit 324. Once the indicator and charging current have been established, the USB identification circuit is disconnected at step 628 by turning off transistors 304 and 308 until the voltage source is removed. Removal of the voltage source causes resetting of the latch 322.
Using the above-described circuitry, a USB source detection capability may be integrated within a battery charging device without requiring a separate USB detection circuit IC, as is required in some prior art methods.
It will be appreciated by those skilled in the art having the benefit of this disclosure that this disclosure provides a battery charger IC including built-in USB detection. It should be understood that the drawings and detailed description herein are to be regarded in an illustrative rather than a restrictive manner, and are not intended to be limiting to the particular forms and examples disclosed. On the contrary, included are any further modifications, changes, rearrangements, substitutions, alternatives, design choices, and embodiments apparent to those of ordinary skill in the art, without departing from the spirit and scope hereof, as defined by the following claims. Thus, it is intended that the following claims be interpreted to embrace all such further modifications, changes, rearrangements, substitutions, alternatives, design choices, and embodiments.
This application claims the benefit of U.S. Provisional Application No. 61/093,966, filed Sep. 3, 2008, and entitled CHARGER IC WITH BUILT-IN USB DETECTION, the specification of which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
61093966 | Sep 2008 | US |