This disclosure relates to electronic circuits. More specifically, this disclosure relates to circuitry to monitor and compensate ground offset.
Battery-powered devices (e.g., mobile phones, smartphones, handheld computers, tablet computers, handheld multimedia devices, handheld game consoles, etc.) have become a part of everyday life. Many battery-powered devices can be coupled to other devices via an interface cable. For example, Universal Serial Bus (USB) 2.0 interface cables are commonly used to enable battery-powered devices to communicate with other devices (e.g., to enable a smartphone to communicate with a laptop).
Some interface cables (e.g., a USB 2.0 interface cable) also enable the battery-powered device to be charged. It is desirable to charge devices quickly. However, some interface cables are not designed to enable a battery-powered device to be charged quickly.
A battery in a device can be charged quickly by using a large current. If a large current is drawn through an interface cable (e.g., a USB 2.0 interface cable), the difference between the voltages at the two ends of a conductor in the interface cable can be large enough to cause one or more devices coupled to the interface cable to malfunction and/or to cause adverse side effects.
An interface cable can include multiple conductors. In some embodiments, some of the conductors are used for charging the battery in the device, while other conductors are used for other purposes (e.g., for communicating information). The conductors that are used for charging the battery can carry a large current when the battery is being charge quickly, which can cause a large voltage drop across the conductors. However, other conductors that do not carry a large current may not experience a significant voltage drop. Some embodiments described herein determine the voltage drop caused by the large current by comparing the voltage of a conductor is carrying the large current with another conductor that is not carrying a large current, and use the voltage drop information to ensure that circuitry in the battery-powered device operates as desired.
Some embodiments described herein provide a circuit comprising: (1) a first node whose voltage is equal to a first voltage value that is used as a reference voltage in the circuit, (2) a second node to receive a voltage signal from a remote circuit, wherein for at least one time instance the voltage signal is equal to a second voltage value that is used as a corresponding reference voltage in the remote circuit, and (3) circuitry to output an offset value based on a difference between the first voltage value and the second voltage value.
Some embodiments provide a method that can be performed by a first device, wherein the method comprises: (1) receiving a first voltage value that is used as a reference voltage in the first device, (2) receiving a second voltage value that is used as a corresponding reference voltage in a second device that is electrically connected to the first device, and (3) determining an offset value based on the first voltage value and the second voltage value. The offset value can then be provided to a circuit in the first device that is expected to malfunction if a voltage offset between the reference voltage in the first device and the corresponding reference voltage in the second device is greater than a threshold.
The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Device 102 can be any device that is capable of being charged. Device 132 can be any device that is capable of charging another device. For example, device 102 can be a smartphone, and device 132 can be a laptop or a desktop computer. Device 102 and device 132 are coupled through interface cable 100, which enables device 132 to communicate with and charge device 102. Although
The term “interface cable” refers to a group of conductors that are used for interfacing two or more devices with one another. An interface cable is not limited to a particular physical structure. In general, an interface cable can have any physical structure that enables two or more devices to be electrically connected to one another. For example, an interface cable can have two or more end-points, wherein each end-point provides a structure that can be used to electrically connect a device. The group of conductors in an interface cable may be bundled to form a single long structure, or each conductor may be physically separate, or the conductors may be bundled in arbitrary subgroups to form multiple long structures.
The pins corresponding to the three conductors in interface cable 100 are shown in
When device 132 charges device 102 using a large current, the large current flows from power pin 134 to power pin 104, and back from ground pin 106 to ground pin 136. The large current flowing from ground pin 106 to ground pin 136 can cause the voltage of ground pin 106 to be non-negligibly higher than the voltage of ground pin 136.
The offset in the ground voltages of the two devices can cause circuitry on either or both of the two devices to malfunction. For example, transmitter Tx in the device 132 can transmit a signal through signal pins 138 and 108 to device 102. The signal can then be received by receiver Rx in the device 102.
The offset between the ground voltages of ground pins 136 and 106 is equal to V2 volts in the example shown in
In some embodiments described herein, device 102 includes offset circuit 110 that receives two inputs. A first input is received from signal pin 108, and a second input is received from ground pin 106. Offset circuit 110 then determines the voltage offset between ground pins 106 and 136 based on these two inputs.
In some embodiments, the voltage drop across the conductor that connects signal pins 138 and 108 is negligible. Further, in these embodiments, it is known that the voltages of signal pins 138 and 108 vary between a positive voltage value and 0 when the voltage is measured with respect to the voltage of the ground pin 136. In these embodiments, offset circuit 110 can sample the voltage of signal pin 108 at multiple time instances to obtain a set of voltage samples. Next, offset circuit 110 can determine the lowest voltage value from the set of voltage samples. Note that the lowest voltage value corresponds to the voltage of ground pin 136. Offset circuit 110 can then output an offset value based on the difference between the lowest voltage value in the set of voltage samples and the voltage of ground pin 106. In some embodiments, offset circuit 110 can determine the lowest voltage value in the time-varying signal received from signal pin 108 by using peak voltage detection circuitry.
The offset value can then be used to adjust the behavior of any circuitry that is adversely affected by an offset in the ground voltages of the two devices. Specifically, as shown in
Device 302 is coupled to device 332 via interface cable 300 which may include multiple conductors. One conductor electrically connects node 308 with node 338, and another conductor electrically connects node 306 with node 336. Interface cable 300 can have more conductors, which are not shown in
Circuitry 310 receives at least two inputs. One input is the voltage signal from node 308 and the other input is the voltage signal from node 306. Nodes 306 and 308 are typically electrically connected to other circuit blocks, but they have not been shown in
In some embodiments, node 306 can be at a voltage VR that is used as a reference voltage in device 302, and node 336 can be at a corresponding reference voltage in device 332. For example, in some embodiments, voltage VR can be ground in device 302 and node 336 can be ground in device 332.
In some embodiments, node 308 can receive a time-varying voltage signal from node 338, e.g., a data or clock signal. The relationship between the time-varying voltage signal and the reference voltage that is used in device 332 (e.g., the voltage of node 336) may be known. In some embodiments, circuit 310 can determine the reference voltage that is used in device 332 from the time-varying voltage signal received on node 308 based on this relationship. For example, in some embodiments, it is known that an extremum voltage value (minimum or maximum—depending on the embodiment) of the time-varying voltage signal is equal to the reference voltage value. In these embodiments, circuitry 310 can determine the extremum voltage value of the time-varying voltage signal and use the extremum voltage value as a proxy for the reference voltage that is used in device 332.
In some embodiments, it is known that the average voltage value or the average of the maximum and the minimum voltage values is equal to the reference voltage value. In these embodiments, circuitry 310 can accordingly determine the reference voltage from the time-varying voltage signal.
In some embodiments, the time-varying voltage signal is a differential signal, and the reference voltage is the common-mode voltage. In these embodiments, the time-varying voltage signal is received on two nodes instead of one node (node 308) as shown in
In some embodiments, circuitry 310 can include: (1) circuitry to determine multiple voltage samples by sampling the time-varying voltage signal at multiple time instances, and (2) circuitry to determine the reference voltage value that is used in device 332 based on the multiple voltage samples. Exactly how circuitry 310 determines the reference voltage value depends on the relationship between the time-varying voltage signal and the reference voltage in device 332. As explained above, some examples of how the reference voltage value can be determined include determining the maximum voltage value, the minimum voltage value, the average voltage value, or the average of the minimum and the maximum voltage values. These examples have been provided for illustration purposes only and are not intended to limit the embodiments to the forms disclosed. Many variations and modifications will be apparent to those skilled in the art.
In some embodiments, circuitry 310 can include circuitry to detect a peak voltage in a time-varying voltage signal. The peak voltage value can then be used to determine the reference voltage of device 332. For example, the circuitry to detect the peak voltage can be used to detect the voltage −V2 in the time-varying voltage signal shown in
The process is performed by a first device (e.g., device 302) and begins by receiving a first voltage value that is used as a reference voltage in the first device (operation 402). Next, a second voltage value is received that is used as a corresponding reference voltage in a second device (e.g., device 332) that is electrically connected to the first device (operation 404). As explained above, a relationship between a signal (e.g., a time-varying data signal) received from the second device and the reference voltage used in the second device may be known. This relationship can be used to determine the second voltage value from the signal received from the second device. An offset value based on the first voltage value and the second voltage value is then determined (operation 406). Next, the offset value is provided to circuitry on the first device that is expected to malfunction if a voltage offset between the reference voltage in the first device and the corresponding reference voltage in the second device is greater than a threshold (operation 408).
A device can generally be any hardware-based mechanism that is capable of performing computations. In some embodiments, device 502 can include processor 504, memory 506, storage 508, user interface 522, communication circuitry 526, and offset circuitry 524. Storage 508 can store one or more applications 516, an operating system 518, and data 520. Operating system 518 and/or one or more applications 516 can be loaded (partially or fully) into memory 506, and processor 504 can execute the operating system 518 and/or one or more applications 516. User interface 522 can be used to interact with a user. Communication circuitry 526 can be used to communicate with another device through an interface cable. Offset circuitry 524 can be used to determine an offset voltage (e.g., a ground offset) between a reference voltage used in device 502 and a corresponding reference voltage used in another device that is electrically coupled to device 502 through an interface cable.
The above description is presented to enable any person skilled in the art to make and use the embodiments. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein are applicable to other embodiments and applications without departing from the spirit and scope of the present disclosure. Thus, the present invention is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The data structures and code described in this disclosure can be partially or fully stored on a non-transitory computer-readable storage medium and/or a hardware module and/or hardware apparatus. A non-transitory computer-readable storage medium includes all computer-readable storage mediums with the sole exception of a propagating electromagnetic wave or signal. Specifically, a non-transitory computer-readable storage medium includes, but is not limited to, volatile memory, non-volatile memory, magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs), DVDs (digital versatile discs or digital video discs), or other media, now known or later developed, that are capable of storing code and/or data. Hardware modules or apparatuses described in this disclosure include, but are not limited to, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), dedicated or shared processors, and/or other hardware modules or apparatuses now known or later developed.
The methods and processes described in this disclosure can be partially or fully embodied as code and/or data stored in a non-transitory computer-readable storage medium or device, so that when a computer system reads and executes the code and/or data, the computer system performs the associated methods and processes. The methods and processes can also be partially or fully embodied in hardware modules or apparatuses. Note that the methods and processes can be embodied using a combination of code, data, and hardware modules or apparatuses.
The foregoing descriptions of embodiments of the present invention have been presented only for purposes of illustration and description. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. Additionally, the above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
2651773 | Loudon | Sep 1953 | A |
3739188 | Froehling | Jun 1973 | A |
5412692 | Uchida | May 1995 | A |
5430765 | Nagahori | Jul 1995 | A |
5539779 | Nagahori | Jul 1996 | A |
5761251 | Wender | Jun 1998 | A |
5818672 | Hilbe | Oct 1998 | A |
5841308 | Nagata | Nov 1998 | A |
6037823 | Arai et al. | Mar 2000 | A |
6292058 | Ide et al. | Sep 2001 | B1 |
6555934 | Miller | Apr 2003 | B2 |
6735260 | Eliezer et al. | May 2004 | B1 |
6768334 | Yamauchi et al. | Jul 2004 | B1 |
6906531 | Mobley | Jun 2005 | B2 |
6958642 | Johnson et al. | Oct 2005 | B2 |
7058315 | Brewer et al. | Jun 2006 | B2 |
7218688 | Nakano | May 2007 | B2 |
7741826 | Fefer et al. | Jun 2010 | B1 |
7768439 | Sunaga | Aug 2010 | B2 |
7769110 | Momtaz | Aug 2010 | B2 |
20070108938 | Veselic | May 2007 | A1 |
20100246722 | Campeau | Sep 2010 | A1 |
20130259162 | Qin et al. | Oct 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20130285641 A1 | Oct 2013 | US |