The present disclosure relates to Universal Serial Bus (USB) capable devices, and more particularly, to a way of detecting when a USB capable device is connected to a USB host or hub without having to use an extra status input at the USB capable device.
The Universal Serial Bus (USB) is an industry standard bus that may be used for coupling digital data between a USB host or hub, and a USB capable device. In addition, the USB host or hub may supply power to the USB capable device. Some USB capable devices may operate either attached to or detached from the USB Bus. For power saving, especially in battery powered USB capable devices, it's preferable to keep the USB peripheral (e.g., USB transceiver, serial interface engine, voltage regulator, support circuits, etc.), located in the USB capable device powered down when not attached to the USB host or hub. Then detect when the USB capable device is coupled to the USB host or hub, and activate the USB peripheral at that time. Existing methods of doing this use an extra status input, e.g., input-output (I/O) connection of the USB capable device, to detect when power is available from the USB host or hub, thus indicating a connection to the USB host or hub. Referring to
What is needed is a way to detect when a USB capable device is coupled to a USB host or hub without requiring the use of an extra dedicated status input, e.g., I/O connection at the USB capable device. According to teachings of this disclosure, adding very weak resistive pull-ups, e.g., 150,000 ohms, to the D+ and/or D− USB data lines of the USB peripheral located in the USB capable device will hold these data lines at substantially a positive supply voltage, Vdd, until the USB capable device is coupled to the USB host or hub USB port via a USB cable or direct connection. The USB host or hub has resistive pull-downs, e.g., 15,000 ohms, coupled to the D+ and D− USB data lines whereby when the USB capable device is coupled to the USB host or hub, these resistive pull-downs will lower the voltage at the D+ and the D− data lines to about 10 percent of the positive supply voltage, Vdd. The USB capable device USB peripheral may be powered down state to conserve power required by the USB capable device, e.g., USB transceiver, serial interface engine, voltage regulator, support circuits, etc., draw substantially no power. When the voltage on either or both of the D+ and D− USB data lines changes from substantially Vdd to about 10 percent of Vdd, a signal, e.g., interrupt, may be generated to tell the USB capable device to power up its USB peripheral so that normal USB communications may take place between the USB capable device and the USB host or hub.
According to a specific example embodiment of this disclosure, a Universal Serial Bus (USB) capable device having a power saving feature may comprise: a USB peripheral comprising a USB transceiver having USB data lines, a USB voltage regulator, a serial interface and USB logic; a strong pull-up resistor coupled to a one of the USB data lines and the USB voltage regulator; and a weak pull-up resistor coupled to the one of the USB data lines and a power supply voltage; wherein when the one of the USB data lines is at substantially the power supply voltage, the USB peripheral is inactive and draws minimal power, and when the one of the USB data lines is at substantially a power supply common a USB detection signal is generated to activate the USB peripheral. Another weak pull-up resistor coupled to an other one of the USB data lines and the power supply voltage, wherein when the other one of the USB data lines is at substantially the power supply voltage, the USB peripheral is inactive and draws minimal power, and when the other one of the USB data lines is at substantially the power supply common the USB detection signal is generated to activate the USB peripheral.
According to another specific example embodiment of this disclosure, a method for conserving power in a Universal Serial Bus (USB) capable device may comprise the steps of: providing a USB peripheral comprising a USB transceiver having USB data lines, a USB voltage regulator, a serial interface and USB logic; providing a strong pull-up resistor between a one of the USB data lines and the USB voltage regulator; and providing a weak pull-up resistor between the one of the USB data lines and a power supply voltage; and placing the USB voltage regulator inactive when the one of the USB data lines is at substantially the power supply voltage or placing the USB voltage regulator active when the one of the USB data lines is at substantially the power supply common. The method may further comprise the step of powering down the USB transceiver when the one of the USB data lines is at substantially the power supply voltage or powering up the USB transceiver active when the one of the USB data lines is at substantially the power supply common. The method may further comprise the steps of providing another weak pull-up resistor between an other one of the USB data lines and the power supply voltage; and placing the USB peripheral inactive when either or both of the one and the other one of the USB data lines are at substantially the power supply voltage or placing the USB peripheral active when both the one and the other one of the USB data lines are at substantially the power supply common.
A more complete understanding of the present disclosure thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings wherein:
While the present disclosure is susceptible to various modifications and alternative forms, specific example embodiments thereof have been shown in the drawings and are herein described in detail. It should be understood, however, that the description herein of specific example embodiments is not intended to limit the disclosure to the particular forms disclosed herein, but on the contrary, this disclosure is to cover all modifications and equivalents as defined by the appended claims.
Referring now to the drawings, the details of example embodiments are schematically illustrated. Like elements in the drawings will be represented by like numbers, and similar elements will be represented by like numbers with a different lower case letter suffix.
Referring to
When the USB capable device 202 is coupled to a USB port of the USB host or hub 106 through a USB cable 220 or directly thereto (without the cable 220), resistor 222 and resistor 224 may be coupled to the D+ and D− data lines, respectively, in accordance with the USB specification. Since the resistors 222 and 224 are much stronger pull-downs then are the resistor 212 and/or resistor 214 as pull-ups, the voltage at the D+ and/or D− data lines 116 and 114, respectively, will change significantly, e.g., the voltage will drop about 90 percent for the specific example embodiment shown in
It is contemplated and within the scope of this disclosure that either or both of the D+ and D− data lines 116 and 114, respectively, may be used to monitor the USB capable device 202 connection to or removal from the USB host or hub 106. However, using such a weak pull-up resistance (resistor 212 and/or 214) may leave the connection signal from the D+ or D− line susceptible to accidental triggering by noise. Thus it may be beneficial to utilize similar pull-up resistors 212 and 214 on both D+ and D− data lines, respectively, with the USB wake-up circuits triggered by, for example but not limited to, a logical NAND of both the D+ and D− data lines (see
Referring to
The USB capable device 202 USB peripheral 330 may be in a powered down state to conserve power required by the USB capable device 202, e.g., when operating from the battery 234 and not coupled to the USB host or hub 106. When the voltage on either or both of the D+ and D− USB data lines 116 and/or 114, respectively, changes from substantially Vdd to about 10 percent of Vdd, a signal, e.g., interrupt, may be generated to tell the USB capable device 202 to power up its USB peripheral 330 so that normal USB communications may take place between the USB capable device 202 and the USB host or hub 106.
When either or both of the D+ and the D− data lines 116 and 114, respectively, are at about 0.10×Vdd (e.g., USB capable device 202 connected to USB host or hub 106), low power comparator circuits 320 may detect this and have a logical output 326 that transitions from a first logic level to a second logic level, e.g., logic “1” to logic “0.” This logic level transition may initiate an interrupt to the USB capable device 202 thereby telling the USB capable device 202 to turn on the USB peripheral 330 power consuming circuits required for USB communications between the USB capable device 202 and the USB host or hub 106.
Once the USB voltage regulator 206 turns on, e.g., is connected to Vdd, its regulated output voltage, e.g., 3.3 volts, may be coupled to the D+ data line 116 through a strong pull-up resistor 212, e.g., about 1,500 ohms, thus forcing the D+ data line 116 back to substantially 90 percent of the USB voltage regulator 206 output voltage. An upstream USB host or hub 106 will thereby detect that a USB capable device 202 is connected by seeing the voltage on the D+ data line 116 rising due to the strong pull-up resistor 210 connected to the USB voltage regulator 206. On a USB capable device 202 that spends most of its time disconnected from a USB host and thereby runs on battery power, power may be saved by not powering up the USB peripheral interface and the USB voltage regulator 206 until the USB capable device 202 is plugged in to the USB host or hub 106. Powering up the USB voltage regulator 206 may also make the contribution of the weak pull-up resistance (resistors 212 and/or 214) insignificant, because the resistors 212 and 214 are of such a large value of resistance compared to the USB resistors 222, 224 and 210 that data transmission degradation would be insignificant if at all.
While embodiments of this disclosure have been depicted, described, and are defined by reference to example embodiments of the disclosure, such references do not imply a limitation on the disclosure, and no such limitation is to be inferred. The subject matter disclosed is capable of considerable modification, alteration, and equivalents in form and function, as will occur to those ordinarily skilled in the pertinent art and having the benefit of this disclosure. The depicted and described embodiments of this disclosure are examples only, and are not exhaustive of the scope of the disclosure.
Number | Name | Date | Kind |
---|---|---|---|
6593768 | Iyer et al. | Jul 2003 | B1 |
7177969 | Croyle | Feb 2007 | B2 |
7512825 | Winick et al. | Mar 2009 | B2 |
20020169915 | Wu | Nov 2002 | A1 |
20070106825 | Duval et al. | May 2007 | A1 |
Number | Date | Country |
---|---|---|
1758029 | Feb 2007 | EP |
Number | Date | Country | |
---|---|---|---|
20080215765 A1 | Sep 2008 | US |