This application claims the benefit of French Application No. 19/07196, filed on Jun. 28, 2019, which application is hereby incorporated herein by reference.
The present disclosure relates generally to the field of voltage source devices, and in particular to a circuit and method for the compensation of a voltage drop at the output of a voltage source device.
Under the USB (Universal Serial Bus) type C (USB-C) protocol, a device having a USB-C socket may act as a voltage source for another device coupled via the USB-C interface and operating as a sink. According to the USB-C protocol, the voltage level supplied by the source is variable in the range 5 to 20 V.
Prior to the voltage being supplied by the source device, the source and sink devices for example negotiate the voltage level to be supplied. The source device should then maintain the agreed supply voltage level while the cable is connected and the sink is drawing a current. Indeed, if this voltage drops below a certain offset with respect to the agreed level, the sink device risks detecting an under-voltage, leading it to consider that the cable has been unplugged, and resetting the connection, thereby interrupting the voltage supply to the sink device.
A difficulty is that there is generally a non-negligible resistance between the voltage source within the source device, and the load in the sink device. This resistance can lead to a significant voltage drop between the voltage source on the source side, and the load on the sink side.
There is a technical difficulty in compensating for this voltage drop and ensuring that an undervoltage will not be present at the sink.
It is an aim of embodiments described herein to at least partially address one or more difficulties in the prior art.
According to one aspect, there is provided a voltage source device comprising: a voltage converter for generating a supply voltage at an output node of the voltage converter based on a feedback signal provided on a feedback line; at least one switch coupled between the output node of the voltage converter and an output terminal of the voltage source device; and at least one further switch configured to selectively couple the feedback line to: the output node of the voltage converter during a first regulation mode; and to the output terminal of the voltage source device during a second regulation mode.
According to one embodiment, the voltage source device further comprises a comparator configured to compare a voltage level at the output terminal of the voltage source device with a threshold voltage, and to control the at least one further switch as a function of the comparison.
According to one embodiment, the voltage source device further comprises a control circuit configured to control the at least one further switch to couple the feedback line to the output node of the voltage converter during the first regulation mode, and to control the at least one further switch to couple the feedback line to the output terminal of the voltage source device when the comparator detects that the voltage level at the output terminal of the voltage source device rises above the threshold voltage.
According to one embodiment, the control circuit is further configured to control the at least one further switch to couple the feedback line to the output node of the voltage converter prior to the deactivation of a source voltage enable signal.
According to one embodiment, the voltage source device is configured to vary the threshold voltage based on the level of a source voltage to be provided by the voltage source device.
According to one embodiment, the voltage source device further comprising: a voltage divider coupled between a node of the at least one further switch and a first supply rail, an intermediate node of the voltage divider being coupled via a differential amplifier to the feedback line.
According to one embodiment, the at least one further switch comprises a first switch coupled between the feedback line and the output node of the voltage converter and a second switch coupled between the feedback line and the output terminal of the voltage source device.
According to one embodiment, the voltage source device further comprises: a first voltage divider coupling the output node of the voltage converter to a first supply rail and having a first intermediate node, wherein the first switch is connected between the feedback line and the first intermediate node; and a second voltage divider coupling the output terminal of the voltage source device to the first supply rail and having a second intermediate node, the second switch being connected between the feedback line and the second intermediate node.
According to one embodiment, the voltage source device further comprises: a current source configured to apply a current to a further output terminal of the voltage source device in order to detect a cable voltage drop; and a compensation circuit configured to generate an analog compensation signal based on a voltage at the further output terminal.
According to one embodiment, the voltage source device further comprises a feedback control circuit configured to adjust the feedback signal provided on the feedback line based on the analog compensation signal.
According to a further aspect, there is provided a method of compensating for voltage drop within a voltage source device, the method comprising: generating, by a voltage converter, a supply voltage at an output node of the voltage converter based on a feedback signal provided on a feedback line; coupling the output node of the voltage converter to an output terminal of the voltage source device via at least one switch; coupling, using at least one further switch, the feedback line to the output node of the voltage converter during a first regulation mode; and coupling, using the at least one further switch, the feedback line to the output terminal of the voltage source device during a second regulation mode.
According to one embodiment, the method further comprises: comparing a voltage level at the output terminal of the voltage source device with a threshold voltage; and controlling the at least one further switch as a function of the comparison.
According to one embodiment, controlling the at least one further switch as a function of the comparison comprises: controlling the at least one further switch to couple the feedback line to the output node of the voltage converter during the first regulation mode; and controlling the at least one further switch to couple the feedback line to the output terminal of the voltage source device when the voltage level at the output terminal of the voltage source device rises above the threshold voltage.
According to one embodiment, controlling the at least one further switch as a function of the comparison further comprises: controlling the at least one further switch to couple the feedback line to the output node of the voltage converter prior to the deactivation of a source voltage enable signal.
The foregoing features and advantages, as well as others, will be described in detail in the following description of specific embodiments given by way of illustration and not limitation with reference to the accompanying drawings, in which:
Like features have been designated by like references in the various figures. In particular, the structural and/or functional features that are common among the various embodiments may have the same references and may dispose identical structural, dimensional and material properties.
Unless indicated otherwise, when reference is made to two elements connected together, this signifies a direct connection without any intermediate elements other than conductors, and when reference is made to two elements linked or coupled together, this signifies that these two elements can be connected or they can be linked or coupled via one or more other elements.
Unless specified otherwise, the expressions “around”, “approximately”, “substantially” and “in the order of” signify within 10%, and preferably within 5%.
A voltage Vsrc is generated at a node 104 in the source device 100, for example by a voltage converter (also not illustrated in
The switch 106 for example comprises a pair of p-channel MOS (PMOS) transistors 108, 110 coupled in series via their sources/drains between the node 104 and terminal 102. The gates of the transistors 108, 110 are for example both coupled to a node 112, which is further coupled to an intermediate node 114 between the transistors 108, 110 via a resistor 115, and to a node 117 at which is provided the enable signal VBus_En_Src. For example, each transistor 108, 110 has its source connected to the intermediate node 114, and an intrinsic diode of each transistor is represented in
The node 117 is for example an output node of a VBus enable circuit 118, which for example has a supply voltage Vdd input node 120 coupled to the Vsrc node 104 in order to power the circuit 118, and a node VBus_sense 122 coupled to the output terminal for receiving the voltage VBus. The enable circuit 118 for example comprises a switch 124 coupling the node 117 to ground in order to assert the enable signal VBus_En_Src after verification that there is no voltage being applied to the terminal 102. Indeed, as the USB-C interface can permit devices to operate as both sources and sinks, this verification is for example performed in order to prevent voltage converters at both the source and sink from being coupled at the same time to the voltage bus VBus of the USB cable. This verification also for example ensures that capacitors on both the sink and source devices have been properly discharged after a previous connection. Otherwise, it would be possible for example that a capacitor of the source or sink device that has been charged at 20 V from a previous negotiation is connected to a source at 5 V.
The present inventors have noted that, while each of the transistors 108, 110 of the switch 106 can have a relatively low ON resistance of around 10 to 20 mΩ each, leading to an overall ON resistance of the switch 106 of around 20 to 40 mΩ, for relatively high currents there can still be a relatively high voltage drop across the switch 106. For example, a current of 3 A could cause a voltage drop of around 60 to 120 mV.
Furthermore, while not illustrated in
Particularly when combined with the voltage drop in the USB-C cable, at relatively high currents, these voltage drops can lead to an under-voltage detection at the sink side.
The switch 106 in the device 200 is for example implemented as shown in
The device 200 for example comprises a voltage converter (VOLTAGE CONVERTER) 202 configured to generate the voltage Vsrc at the node 104. For example, the voltage converter 202 is a DC to DC converter, or an AC to DC converter.
The device 200 further comprises a switch 204, which is for example an SPDT (single pole, double throw) switch. The switch 204 is configured to couple one or the other of the node 104 and the terminal 102 to a feedback line 205. The feedback line 205 for example provides a feedback signal FB to the voltage converter 202.
In some embodiments, this feedback signal FB is used to adjust an amount of power transferred by the voltage converter 202, for example by adjusting a duty cycle of the converter 202, and/or by regulating an amount of power transferred by a transformer of the voltage converter 202.
Thus, the switch 204 permits the point of regulation used for regulating the voltage converter 202 to be selected as either the voltage Vsrc at the node 104, or the voltage VBus at the terminal 102.
The switch 204 is for example controlled by a control signal SW provided on a line 206 by a control circuit 208. The control circuit 208 for example receives the source enable signal VBus_En_Src, which also controls the switch 106, a bus active signal BusAct from a comparator 210, and a signal VBES_Early, corresponding for example to an early version of the signal VBus_En_Src. For example, the signal VBus_En_Src is delayed with respect to the signal VBES_Early.
The comparator 210 for example has a positive input coupled to the output terminal 102 of the voltage source device 200, and a negative input coupled to receive a reference voltage Vbusmin on a line 212, for example generated by a DAC (Digital to Analog Converter—not illustrated). In some embodiments, the signal VBus_EN_Src is asserted low, and the control circuit 208 asserts the signal SW when the signal VBus_En_Src is asserted and when the voltage VBus at the terminal 102 has risen above the threshold level Vbusmin, and brings low the signal SW when the signal VBES_Early is asserted, indicating for example that the cable has been detached and thus the voltage source is to be disabled.
The signals VBus_En_Src and VBES_Early are for example generated by a system control circuit (SYSTEM CTRL) 214 of the voltage source device 200.
Operation of the circuit of
It is initially assumed that no cable is attached to the source device 200. Thus, the signal VBus_En_Src is deactivated, corresponding to a high state in the example of
In an operation 301, the voltage conversion provided by the converter 202 is regulated, during a first regulation mode, based on the voltage Vsrc at the node 104 while the cable is not attached. For example, the switch 204 couples the node 104 to the feedback line 205. This for example corresponds to a low state of the switch control signal SW. In some embodiments, the voltage Vsrc is regulated at a default safe voltage of 5 V in this state.
In an operation 302, it is for example determined whether the source enable signal VBus_En_Src has been asserted. If not, the regulation continues to be based on the voltage Vsrc. Indeed, the control circuit 208 for example keeps the signal SW low while the signal VBus_En_Src is not asserted. When the source enable signal VBus_En_Src is asserted, the next operation is 303. In the example of
In the operation 303, the power path is closed by the activation of the signal VBus_En_Src, but the sink is not yet drawing a current. The voltage conversion provided by the converter 202 continues to be regulated, in the first regulation mode, based on the voltage Vsrc at the node 104. Indeed, the signal SW continues to be low in the example of
In an operation 304, it is determined by the comparator 210 whether the voltage VBus has risen above the threshold level VBusmin. This threshold level VBusmin is for example equal to between 3 and 4.8 V, and for example around 4 V. Alternatively, this threshold level VBusmin is between 5% and 40% lower than the negotiated voltage level to be provided by the source device. For example, the threshold level VBusmin is selected to have the following levels based on the PDO (Power Data Object) supply voltage:
While VBus is below Vbusmin, the voltage conversion for example continues to be regulated, in the first regulation mode, based on the voltage Vsrc. This for example prevents, in the case of a defect in the power path, the voltage converter from entering into an open loop, which could damage the entire system.
Once the voltage VBus has risen above Vbusmin, in an operation 305, the regulation of the voltage conversion is switched to a second regulation mode in which it is based on the voltage VBus. For example, the signal SW is asserted by the control circuit 208 of
Vsrc=VBus+(Rdson+RShunt)*Icharge
where Rdson is the ON resistance of the switch 106, RShunt is the resistance of any shunt resistor present in the power path for current monitoring purposes, and Icharge is the current provided by the voltage converter 202.
In some embodiments, the time interval between t0 and t1 is at least equal to the minimum time duration tcheck.
Advantageously, by switching the regulation point from the voltage Vsrc to the voltage VBus, regulation is performed, during the second regulation mode, based on the voltage after the switch 106, and thus the voltage drop across this switch is compensated. However, the regulation point of the voltage converter 202 does not switch from the voltage Vsrc to the voltage VBus until both the source enable signal VBus_En_src has been asserted, and the voltage VBus has risen above the threshold Vbusmin. This for example prevents the regulation point from switching to the terminal 102 while the switch 106 is not properly conducting, which could result in undesirable open loop control of the voltage converter 202.
Referring again to
In the example of
In
The voltage source device 500 for example comprises a circuit 504 comprising the switch 124 generating the source enable signal VBus_En_Src, this switch 124 for example being implemented by an n-channel MOS (NMOS) transistor controlled by the inverse of the signal VBus_En_Src.
The circuit 504 also for example comprises:
The voltage Vvar represents the supply voltage to be provided by the voltage source device 500 at the output terminal 102, this voltage for example being generated by a DAC (not illustrated) based on a digital input signal.
The output of the differential amplifier 514 is coupled to an output node 520 of the circuit 504. The intermediate node 516 is also coupled to an output node 522 of the circuit 504 providing a signal CV_Comp, and the node 522 is for example coupled to the node 520 via a feedback path comprising the series connection of a capacitor 524 and a resistor 526. The Vsrc node 104 is also coupled to the output node 520 of the circuit 504 via a voltage divider formed by the series connection of resistors 528 and 530. An intermediate node 532 between the resistors 528, 530 is for example coupled to the anode of an LED (Light Emitting Diode) 534 forming the transmitter of an opto-coupler, the cathode of the LED 534 being coupled to the output node 520. The differential amplifier 514 controls the current flowing through the LED 534, and the opto-coupler provides a feedback signal to the voltage converter 202, as will now be explained.
The voltage converter 202 in the embodiment of
The other end of the primary winding 538 is for example coupled to a regulator (REG) 548 that regulates the amount of power transferred by the transformer 536. For example, the regulator 548 includes a phototransistor 550 forming a receiver of the opto-coupler and configured to receive the optical signal generated by the LED 534. The phototransistor 550 conducts a current as a function of the intensity of the optical signal.
In some embodiments, in addition to providing voltage drop compensation for the voltage drop across the switch 106, the voltage source device is also configured to provide voltage drop compensation for a voltage drop over the cable coupling the source and sink devices. Such compensation is described in more detail in the patent case in the name of the present applicant, having the same inventors, and filed on the same day as the present application (law firm reference B18855, 19-GR2-0493), the contents of which is hereby incorporated by reference to the extent permitted by the law. A system capable of providing both types of voltage drop compensation will now be described in more detail with reference to
The voltage source device 600 in the example of
The voltage source device 600 comprises a circuit 602 comprising a regulation point selection circuit 603 comprising switches 604 and 606 implementing the switch 204. The circuit 603 further comprises a voltage divider formed of resistors 608 and 610 coupled in series between the node 104 and ground. The switch 604 is coupled between a node 612 and an intermediate node 614 between the resistors 608 and 610. The circuit 603 also comprises a voltage divider formed of resistors 616, 618 and 620 coupled in series between the output terminal 102 and ground. The switch 606 is for example coupled between the node 612 and an intermediate node 622 between the resistors 618 and 620. The switches 604 and 606 are for example respectively controlled by signals SW1 and SW2 generated by a control circuit (CTRL) 624, these signals together forming the control signal SW in the example of
The node 612 for example provides the feedback line 205, and is for example coupled to the negative input of the differential amplifier 514, which in the embodiment of
The circuit 602 also for example comprises a current source 632 that applies a current Idu to an output terminal 634 of the device 600. For example, the device 600 comprises, in addition to the VBus and GND terminals, further terminals CC1 and CC2 coupled to the wires of the cable when attached. The terminals CC1 and CC2 are for example configuration channels. The terminal CC2 is for example used for detecting the presence of a cable, and is coupled on the sink side to the ground wire of the cable via a pull-down resistor Rd.
The circuit 602 also for example comprises a voltage drop compensation circuit 630 for compensating for the voltage drop over the cable, and in particular between the output terminal 102 and the load within the sink device (not illustrated in
The circuit 630 for example comprises a dummy circuit 635 comprising a dummy current source 636 and a dummy resistor 638 coupled in series between the supply voltage VDD and ground. The current sources 636 and 632 are for example configured to conduct substantially the same current Idu. The resistance Rdu of the resistor 638 is for example equal to around the minimum level of the resistor Rd that is authorized by the USB-C standard, which is for example a resistance of 5.1 k −5%. A differential amplifier 640 is configured to amplify a difference in the voltage Vcc at the output terminal 634 with respect to the voltage Vdu at the intermediate node 642 between the dummy current source 636 and the dummy resistor 638. For example, the differential amplifier 640 has its negative input coupled to the terminal 634, and its positive input coupled to the node 642. The output of the differential amplifier 640 is for example coupled to the control nodes of a pair of transistors 644 and 646, which are for example PMOS transistors.
The transistor 644 is coupled by its main conducting nodes between the supply rail VDD and the intermediate node 642 of the dummy circuit 634. The transistor 644 is controlled to conduct an offset current Ios, which is injected into the resistor 638.
The transistor 646 also for example conducts a current, equal to or proportional to the current Ios, which is for example mirrored by a current mirror to generate a current Icomp. The current mirror for example comprises an NMOS transistor 648 coupled by its main conducting nodes between the transistor 646 and ground, and a transistor 650 coupled by its main conducting nodes to an intermediate node 652 between the resistors 616 and 618 of the regulation point selection circuit 603 and ground. The control nodes of the transistors 648, 650 are for example coupled together and to the drain of the transistor 648. Thus, the current Icomp is drawn from the intermediate node 652. For example, the current Icomp is equal to α*Ios, where α. is a ratio resulting from size ratios between the transistors 644, 646 and/or between the transistors 648, 650.
In operation, when a cable is attached, the differential amplifier 640 regulates the voltage Vdu across the dummy resistor 638 by controlling the offset current Ios. When no load is present on the sink side, the voltage VBus is for example at a no load value VBus0, and the voltage Vdu will equal the voltage Vcc. Thus, no load values Ios0 and Icomp0 of the offset current Ios and compensation current Icomp will be conducted, where:
Ios0=Idu*(Rd/Rdu−1)
and
Icomp0=α*Idu*(Rd/Rdu−1)
When a load is applied, a voltage drop will appear over the cable ground wire GND, and thus the voltage Vdu will rise to Vcc+Rgnd*Icable, where Rgnd is the resistance of the ground cable, and Icable is the current flowing through the cable. It follows that the offset current Iso, and compensation current Icomp, will rise as follows:
Iso=Iso0+Rgnd/Rdu*Icable
Icomp=Icomp0+α*Rgnd/Rdu*Icable
The compensation current Icomp is fed into the regulation loop, for example via the intermediate node 652, and creates an offset such that:
VBus=VBus0+Rcomp*Icomp0+α*Rcomp*Rgnd/Rdu*Icable
where Rcomp is the resistance of the resistor 616.
The ground wire of the cable for example has half the resistance of the VBus wire, and thus in some embodiments the value of α. and of the resistances Rcomp and Rdu are chosen such that:
α*Rcomp/Rdu=2
Thus:
VBus=VBus0+Rcomp*Icomp0+2*Rgnd*Icable
A curve 702 represents the voltage VBus at the source side in the case that there is no voltage drop compensation, and assuming a voltage Vsrc of 5 V. It can be seen that, for a current of 1 A, the voltage VBus at the source side falls to around 4.85 V, and for a current of 3 A, the voltage VBus at the source side falls to around 4.5 V.
A curve 704 represents the voltage VBus at the sink side in the case that there is no voltage drop compensation, and assuming a voltage Vsrc of 5 V. It can be seen that, with the added voltage drop across the cable, for a current of 1 A, the voltage VBus at the sink side falls to around 4.75 V, and for a current of 3 A, the voltage VBus at the sink side falls to around 4.25 V. Such a voltage could be detected as an under-voltage by the sink device.
A curve 706 represents the voltage Vsrc after voltage drop compensation of both the voltage drop across the switch 106 and the voltage drop in the cable. For a current of 1 A, the Vsrc voltage is now at around 5.4 V, and for a current of 3 A, the Vsrc voltage is now at around 5.85 V.
A curve 708 represents the voltage VBus on the source side with the Vsrc voltage of the curve 706. For a current of 1 A, the voltage VBus is now at around 5.3 V, and for a current of 3 A, the voltage VBus is now at around 5.6 V.
A curve 710 represents the voltage VBus on the sink side with the Vsrc voltage of the curve 706. For a current of 1 A, the voltage VBus at the sink side is now at around 5.15 V, and for a current of 3 A, the voltage VBus at the sink side is now at around 5.1V. These levels are sufficiently high not be considered as under-voltages at the sink side, and are even slightly higher than the target level of 5 V.
An advantage of the embodiments described herein is that a voltage drop across a switch of the power path of a voltage source device can be compensated while maintaining a stable regulation of the supply voltage.
Various embodiments and variants have been described. Those skilled in the art will understand that certain features of these embodiments can be combined and other variants will readily occur to those skilled in the art. For example, it will be apparent to those skilled in the art that the ground voltage described herein could be replaced by any positive or negative reference voltage that is for example lower than the supply voltages Vsrc and VBus.
Furthermore, the implementation of the switch 204 of
Furthermore, the various transistors of the various circuits could be implemented by CMOS transistor technologies, or by other transistor technologies, and n-channel transistors could be replaced by p-channel transistors, and vice versa, in alternative implementations.
Furthermore, while a source enable signal VBus_En_Src has been described that is asserted when low, it will be apparent to those skilled in the art that in alternative embodiments this signal could be asserted when high, depending on the particular implementation of the switch 106.
Finally, the practical implementation of the embodiments and variants described herein is within the capabilities of those skilled in the art based on the functional description provided hereinabove. For example, the implementation of various types of DC to DC and AC to DC voltage converter is known to those skilled in the art and has not been described in detail.
While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.
Number | Date | Country | Kind |
---|---|---|---|
1907196 | Jun 2019 | FR | national |