Short Circuit and Soft Short Protection for Data Interface Charging

20170346313 · 2017-11-30

    Inventors

    Cpc classification

    International classification

    Abstract

    A switching power converter is provided that communicates with a mobile device to receive a value of a load detection current. The switching power converter adjusts the cycling of a power switch until a constant current mode of operation is entered with a known output current driving the mobile device. The switching power converter subtracts the load current from the output current to measure a soft-short circuit current.

    Claims

    1. A flyback converter for charging a mobile device through a data interface cable, comprising: a primary-side controller configured to regulate the cycling of a power switch in a constant-current mode; a secondary-side controller configured to communicate through a data channel in the data interface cable with a load device to receive a value of a load current consumed by the load device during a soft-short circuit detection mode, wherein the primary-side controller is configured to adjust the cycling of the power switch until the flyback converter enters a constant current mode of operation in which it drives an output current into the data interface cable while the load device consumes the load current; and determine a difference between the output current and the load current to detect a soft-short circuit current.

    2. The flyback converter of claim 1, wherein the secondary-side controller is further configured to communicate the detection of the soft-short current to the load device through the data channel in the data interface cable.

    3. The flyback converter of claim 1, wherein the primary-side controller is configured to detect the soft-short circuit current responsive to the difference between the output current and the load current exceeding a soft-short circuit threshold.

    4. The flyback converter of claim 1, wherein the primary-side controller is further configured to shut down the cycling of the power switch responsive to the detection of the soft-short circuit current.

    5. The flyback converter of claim 1, wherein the load current equals zero, and wherein the secondary-side controller is configured to detect a soft-short circuit condition responsive to a voltage droop for an output voltage from the flyback converter exceeding a voltage droop threshold.

    6. The flyback converter of claim 5, wherein the secondary-side controller is further configured to: measure the output voltage droop in a standby mode that delivers zero current to the load; compare the output voltage droop to the voltage droop threshold; and detect the soft-short circuit condition responsive to the comparison of the output voltage droop to the voltage droop threshold.

    7. The flyback converter of claim 6, wherein the secondary-side controller is configured to reset the flyback converter responsive to the voltage droop rate being greater than the voltage droop threshold.

    9. The flyback converter of claim 1, wherein the data interface cable is a USB cable.

    10. A method of detecting a soft-short circuit, comprising: at a secondary-side controller for a flyback converter, receiving a load current value to be drawn by a load device coupled to the flyback converter through a data interface cable; communicating the load current value from the secondary-side controller to a primary-side controller for the flyback converter; while the load device consumes the load current, adjusting a regulation of a power switch in the flyback converter until the regulation is a constant-current regulation in which the flyback converter drives the data interface cable with an output current; and comparing a difference between the output current and the load current to a soft-short threshold to detect the soft-short circuit.

    11. The method of claim 10, wherein adjusting the regulation of the power switch begins with a constant-current limit that is greater than the load current plus the soft-short threshold, and wherein the adjusting of the regulation of the power switch comprises reducing the constant-current limit until the regulation is the constant-current regulation.

    12. The method of claim 10, wherein communicating the load current value from the secondary-side controller to the primary-side controller comprises communicating the load current value over an optoisolator.

    13. The method of claim 10, wherein communicating the load current value from the secondary-side controller to the primary-side controller comprises pulsing a synchronous rectifier switch.

    14. The method of claim 10, wherein communicating the load current value from the secondary-side controller to the primary-side controller comprises communicating the load current value over a capacitor.

    15. The method of claim 10, further comprising switching off the flyback converter responsive to the detection of the soft-short circuit.

    16. The method of claim 10, wherein the load device comprises a mobile telephone, the method further comprising alerting the mobile telephone of the soft-short circuit detection.

    17. The method of claim 10, wherein the comparison of the difference between the output current and the load current to a soft-short threshold is performed by the primary-side controller, the method further comprising the primary-side controller alerting the secondary-side controller of the detection of the soft-short circuit.

    18. A method of short or soft-short circuit condition detection, comprising: from a switching power converter, supplying a zero load current to a load device through a data interface cable while supplying an output voltage to the data interface cable; measuring an output voltage droop of the output voltage; comparing the output voltage droop to a voltage droop threshold to determine whether a soft-short circuit exists in the data interface cable.

    19. The method of claim 18, wherein the switching power converter is a flyback converter.

    19. The method of claim 18, further comprising: alerting the load device of the soft-short circuit determination.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0016] FIG. 1 is a diagram of an example flyback converter with synchronous rectification and including a secondary-side controller configured to detect soft short circuits in accordance with an aspect of the disclosure.

    [0017] FIG. 2 is a diagram of an example flyback converter without synchronous rectification and including a secondary-side controller configured to detect soft short circuits in accordance with an aspect of the disclosure.

    [0018] FIG. 3 is a diagram of an example power converter and electronic load illustrating the relationships between certain variables and parameters in accordance with an aspect of the disclosure.

    [0019] FIG. 4 is a pair of current graphs comparing two example cases in accordance with an aspect of the disclosure.

    [0020] FIG. 5 is a flowchart of an example method, in accordance with an aspect of the disclosure, of detecting a soft-short condition in a data cable driven by a switching power converter

    [0021] FIG. 6 is a voltage-current diagram illustrating an example of operation of the method of FIG. 5 in accordance with an aspect of the disclosure.

    [0022] FIG. 7 is a flowchart of an example alternative method, in accordance with an aspect of the disclosure, of detecting a soft-short condition in a data cable driven by a switching power converter.

    [0023] Embodiments of the present disclosure and their advantages are best understood by referring to the detailed description that follows. It should be appreciated that like reference numerals are used to identify like elements illustrated in one or more of the figures.

    DETAILED DESCRIPTION

    [0024] An improved fault monitor is provided for switching power converters used to charge mobile devices through data interfaces such as a Universal Serial Bus (USB) cable, a mini-USB cable, a micro-USB cable, or an Apple Lightning cable. The following discussion will assume that the cable interface is a Universal Serial Bus (USB) interface but it will be appreciated that any interface that combines power delivery with data signaling may be protected as discussed herein. The following discussion will be directed to a flyback converter embodiment, but it will be appreciated that the fault monitor may be widely applied to other types of switching power converters such as buck or boost converters.

    [0025] A flyback converter is disclosed that includes a secondary-side controller configured to monitor the data pins in the data interface cable so as to communicate with a device such as a mobile device coupled to the data interface cable. During a soft-short detection mode of operation, the mobile device communicates an ILOAD profile to the secondary-side controller through the data channel in the data interface cable. The ILOAD profile may include, for example, a desired voltage to be used for charging the load device and a load current (ILOAD.sub.DET) to be drawn by the device at the desired voltage. The flyback converter is configured to measure its output current (IOUT) while it operates in the constant-current mode and the mobile device draws the load current ILOAD.sub.DET. By determining the difference between IOUT and ILOAD.sub.DET the flyback converter measures the soft-short current (ISHORT). Should ISHORT exceed a threshold amount, the secondary-side controller in the flyback converter notifies the mobile device of the soft-short detection.

    [0026] There are two main embodiments with regard to how the flyback converter measures the output current IOUT. In a first embodiment, the secondary winding for the flyback converter transformer is in series with a secondary-side sense resistor. The secondary-side controller monitors the voltage across the secondary-side sense resistor and measures IOUT through Ohm's law. But such a sense resistor introduces substantial efficiency loss due to its resistance. The resulting power loss is substantially avoided in a second embodiment in which the primary-side controller measures IOUT while it regulates the power switch cycling in a constant-current mode of operation. In particular, the primary-side controller may determine IOUT using the constant-current mode equation of operation in which IOUT equals kcc/2*Npri/Nsec/Rs, where kcc is the coefficient for the constant current limit, Npri/Nsec is the transformer primary-side-to-secondary-side turns ratio, and Rs is the resistance for the primary-side current sense resistor in series with the power switch transistor and the primary winding. The primary-side controller is configured to alter the kcc coefficient to force the flyback converter into the constant-current mode. In particular, the primary-side controller knows the amount of current ILOAD.sub.DET that is being drawn by the load since it receives this information from the secondary-side controller. During an initial portion of the soft-short detection phase of operation, the primary-side controller may thus begin operation with a kcc coefficient that corresponds to an output current limit that equals ILOAD.sub.DET plus some initial amount so that operation proceeds in the constant-voltage mode initially. The primary-side controller may then progressively reduce the kcc coefficient until it regulates in the constant-current mode of operation. The primary-side controller thus may calculate the output current using the equation discussed above when the constant-current mode of operation is achieved. If this output current is greater than the ILOAD.sub.DET by some threshold amount, a soft-short circuit is detected. The initial kcc coefficient thus has a magnitude such that IOUT corresponding to the initial kcc coefficient in the constant-current mode is greater than ILOAD.sub.DET plus the threshold for the soft-circuit detection. The primary-side controller may then “hunt” for the resulting IOUT in which it operates in constant-current mode by progressively reducing the kcc coefficient until constant-current mode operation is achieved. The primary-side controller then knows the magnitude of IOUT using the equation discussed above. Should IOUT exceed ILOADDET by the threshold amount, the primary-side controller detects a soft-short circuit condition and notifies the secondary-side controller accordingly. The secondary-side controller may then notify the mobile device of the soft-short condition through the data channel in the data interface cable.

    [0027] In an alternative embodiment, communication between the flyback converter and the mobile device can be used to set I_LOAD to zero so that the device being charged draws no current at the voltage supplied by the switching power converter (e.g., no-load condition). The power converter can then monitor its output voltage to determine whether the voltage droop rate for the output voltage exceeds a pre-determined threshold during the no-load condition. If so the switching power converter can determine that a soft short-circuit fault exists. This embodiment can be useful, for example, in conditions where the leakage current (e.g., a soft short current in the cable or connector assembly) is too small for the power converter to enter into CC mode operation as described above.

    [0028] An example flyback power converter 100 is shown in FIG. 1. A bridge rectifier 105 rectifies an AC input voltage from an AC mains 110 and outputs the resulting rectified input voltage into an input capacitor C1. This rectified input voltage drives a magnetizing current into a primary winding 115 of a transformer 120 when a power switch such as an NMOS power switch transistor M1 is driven on by a primary-side controller U1. In a constant-voltage mode, the primary-side controller U1 modulates the cycling of the power switch M1 to maintain a DC value for an output voltage V.sub.OUT produced at a secondary winding 125 of transformer 120 at a desired voltage. Since the primary-side controller U1 is isolated from a USB cable having a pair of a D+ and a D− data pins received at a cable interface 135, a secondary-side controller U2 interfaces with the mobile device being charged (not illustrated) through data the data terminals. In flyback power converter 100, secondary-side controller U2 controls the cycling of a synchronous rectifier (SR) switch transistor such as an NMOS transistor. The secondary-side controller U2 switches on the SR switch transistor in response to primary-side controller U1 switching off the power switch M1. The resulting synchronous rectification is conventional and improves efficiency over the use of a output diode on the secondary side. It will be appreciated, however, that the advantageous soft-circuit detection techniques and systems disclosed herein may be practiced without synchronous rectification in alternative embodiments in which the SR switch transistor is replaced by an output diode as discussed further below.

    [0029] An auxiliary winding 130 for transformer 120 couples to ground through a voltage divider formed by a serial pair of resistors R1 and R2 to produce a sense voltage V.sub.SENSE that is received by primary-side controller U1. For example, primary-side controller U1 may sample V.sub.SENSE at the transformer reset time to sense the output voltage. To modulate the output voltage in response to this sensing, primary-side controller U1 may adjust the frequency or pulse width for the cycling of power switch M1. For example, primary-side controller U1 may monitor the magnetizing current magnitude (CS) through a voltage divider formed by a primary-side sense resistor R3 and a cable drop compensation resistor (R.sub.CDC) coupled to the source of power switch transistor M1. When the current magnitude CS reaches a desired level for a given power switching cycle, primary-side controller U1 may proceed to switch off power switch transistor M1.

    [0030] Secondary-side controller U2 may be configured to monitor the voltage on the D+ terminal and D− terminal to determine if a load such as a mobile device is attached to another end of the USB cable. In FIG. 1, the data interface cable is represented by a output voltage terminal VOUT, a ground terminal RTN, and the data terminals. In response to detecting that the mobile device is attached to the data interface cable, secondary-side controller U2 may enumerate the attached device, for example, to determine if the mobile device supports a rapid-charge mode of operation in which the output voltage may be increased from a nominal level such as 5 V to a higher level such as 12 V or 19 V. Secondary-side controller U2 may then signal the enumeration data (e.g., load profile data) to primary-side controller U1 by using a primary side only signaling based on pulsing the SR switch transistor on after the transformer reset time and before the next power switch on time. Load capacitor CL couples between the output voltage node (V.sub.OUT) and ground (RTN) to smooth the output voltage. Primary-side controller U1 detects the reflected voltage on the drain of power switch M1 as a detect voltage to the DET terminal of primary-side controller U1 (via line 139) that can be subjected to primary side only signaling techniques to receive data from the secondary-side controller U2 that it received through the data terminals. For example, secondary-side controller U2 may receive and signal to primary-side controller U1, using this technique, the amount of load current (I_LOAD.sub.DET) the device being charged (not illustrated) will draw from the power converter during a detection period.

    [0031] In an alternative embodiment, an isolated communication channel such as an optoisolator or a capacitor could be used to communicate data from U2 to U1. For example, secondary-side controller U2 may signal the enumeration or load profile data to primary-side controller U1 by grounding a first side of an optocoupler as represented by a communication channel (comm) shown in FIG. 2. Primary-side controller U1 may detect the voltage change across a second side of the optocoupler (not shown) to receive the data. Referring again to FIG. 1, secondary-side controller U2 monitors the drain voltage (DRAIN) of the SR switch transistor to control when to switch on and off the SR switch transistor. While the power switch M1 is conducting, the drain voltage for the SR switch transistor will be grounded or near zero but will then swing high when the power switch M1 is cycled off. As known in the synchronous rectification arts, secondary-side controller U2 responds to this voltage change by charging the gate of the SR switch transistor through an OUT terminal to switch the SR switch transistor on. Due to the relatively-low on resistance of the SR switch transistor, the resulting synchronous rectification saves power as compared to the use of a secondary-side diode.

    [0032] The soft-short circuit detection techniques and systems disclosed herein include embodiments in which a diode replaces the SR switch transistor. An example flyback converter 200 is shown in FIG. 2 that includes a rectifying diode D1 on the secondary side to perform the function of the SR switch transistor. Primary-side controller U1, power-switch M1, transformer 120, load capacitor CL, and cable interface 135 operate as discussed with regard to flyback converter 100. The primary side only signaling (or signaling through an isolating device such as an optocoupler) between a secondary-side controller 205 and primary-side controller U1 is represented by a “comm” (communication) signal. A user has detached a mobile device from a data interface cable 210 but left data interface cable 210 still attached to cable interface 135. A soft-short circuit 215 causes a non-zero output current I_OUT to flow from the V_OUT terminal to the ground (GND) terminal in cable interface 135.

    [0033] Secondary-side controller 205 may be configured to signal load profile data and initiation of a soft-short detection mode to primary-side controller U1 by using the data channel (comm). For example, secondary-side controller 205 may receive on the data terminals the amount of load current (I_LOAD.sub.DET) the device being charged (not illustrated) will draw from the flyback converter during the soft-short detection period. Secondary-side controller 205 may then transmit the load current value to primary-side controller U1 through the data channel (comm)

    [0034] FIG. 3 illustrates the bifurcation of the output current I_OUT from a switching power converter such as a flyback converter 100 into a load current I_LOAD driven into an electronic load 101 (e.g., a mobile phone) via conductors of data interface cable 210. In the presence of a soft-short current I_SHORT, I_OUT splits into I_SHORT and I_LOAD, as shown, and I_LOAD is the current provided to electronic load 101. Flyback converter 100 may thus provide a regulated output voltage V_OUT to the electronic load 101 (neglecting the conduction losses in data interface cable 210) and also a regulated output current I_OUT.

    [0035] The soft-short detection mode disclosed herein advantageously detects soft-short conditions that the conventional use of a current threshold could not. For example, FIG. 4 illustrates in a first case (Case 1), a conventional power converter detecting a short-circuit condition by comparing I_OUT to a current limit threshold, I_LIMIT. In Case 1, a short circuit condition is detected when I_SHORT+I_LOAD>I_LIMIT. But such a current threshold can only detect relatively robust short circuits that exceed the current limit threshold. As shown in a Case 2, however, there are conditions where a short circuit condition is not detected using a current limit threshold. For example, when there exists a high impedance short circuit (otherwise referred to as a soft short condition) where I_SHORT+I_LOAD<I_LIMIT, a conventional switching power converter will not detect a fault condition using a current limit threshold, even though there is a non-zero amount of I_SHORT current, as shown. The negative impact of not detecting such a fault condition includes increased power dissipation and increased operating temperature, resulting in lower operating efficiency and reduced system reliability. Furthermore, battery operated portable devices typically employ a separate power converter (charger), detachable charging cable and interconnection system (e.g. USB cable), and portable device. Often, normal wear and tear of the USB charging cable and foreign particles in the USB connector assembly create soft short circuits, resulting in sub-optimal operation.

    [0036] Instead of using an output current limit I_LIMIT, the soft-short detection mode disclosed herein compares the soft-short current I_SHORT to a threshold. Once I_SHORT is distinguished from I_LOAD as discussed herein, a precise measure of the short circuit current I_SHORT can be made. In an alternative embodiment, once a determination is made that the secondary controller U2 is in a no load condition, a precise measure of any short circuit current I_SHORT can be made using a measurement of voltage droop for the output voltage.

    [0037] A method of operation for a soft-short detection will now be discussed with regard to the flowchart of FIG. 5. The method 500 includes an act 501 of initiating the soft-short detection mode by receiving the load profile from the load device. For example, the electronic device 101 may broadcast to the flyback converter 100 the amount of load current, I_LOAD it will draw from the flyback converter during the detection period, referred to as I_LOAD.sub.DET, and a target voltage V_OUT. I_LOAD.sub.DET may be any known value of the normal operating range of the power converter. For example, I_LOAD.sub.DET can be near the minimum load range so that I_LOAD.sub.DET will be relatively low as set in an act 502.

    [0038] In an act 503, the flyback converter 100 measures the amount of output current I_OUT it is delivering to the data interface cable. For example, operating in constant current mode, the switching power converter adjusts the constant voltage to constant current transition point such that the power converter operates in CC mode at the value I_OUT. The primary-side controller may then measure I_OUT using the constant-current equation discussed above. Because both I_OUT and I_LOAD.sub.DET are known to the flyback converter, the short circuit current (I_SHORT) can be determined, in an act 504, by the equation I_SHORT=I_OUT−I_LOAD.sub.DET.

    [0039] In an act 505, I_SHORT is compared to a soft-short-circuit current threshold (I_SHORT.sub.THRESH) to determine if a short circuit condition (including a soft short condition) exists. In particular, act 505 determines if I_SHORT is less than I_SHORT.sub.THRESH.

    [0040] In the comparison indicates that I_SHORT is greater than I_SHORT.sub.THRESH, a soft-short circuit condition is detected in an act 506 so that appropriate action may be taken, such as shutting down the power converter. If the comparison is negative as detected in an act 507, no soft-short circuit condition is deemed to exist.

    [0041] The transition point between a constant-voltage mode and a constant-current mode of operation is shown in FIG. 6. The constant-voltage mode (CV) keeps the output voltage V_OUT at the desired output voltage mode. Should the flyback converter not be able to force V_OUT to the desired level, operation ensues in a constant-current (CC) mode such that the output current equals I_OUT. The difference between I_OUT and I_LOAD.sub.DET equals the soft-short current I_SHORT. mode. Constant voltage and constant current modes (CV/CC) may be used in conjunction with each other to provide a regulated power source to a battery operated portable device. The CC mode control can be used in reverse to “hunt” for the I_OUT value needed to deliver I_LOAD.sub.DET to the load, e.g., electronic device 101.

    [0042] Note that the soft-short circuit current may be too low for the flyback converter to enter a constant-current mode at the corresponding I_OUT level. To detect such low levels of soft-short current, the output voltage V_OUT from the flyback converter may be tested for droop while the mobile device is disconnected or drawing zero current. An example flowchart for the resulting voltage droop method is shown in FIG. 7. In this method, the soft-short current is too small to force the flyback converter to get into CC mode. The voltage droop method begins with an act 701 in which the load device initiates the voltage droop method such that its load current I_LOAD equals zero in an act 702. The flyback converter then enters a standby mode in an act 703 in which the minimum amount of current is driven into the data interface cable. The output voltage is driven to the desired V_OUT level in act 703, whereupon the cycling of the power switch ceases so that the droop rate of the output voltage may be measured in an act 704. The voltage droop in a set amount time is compared to a threshold value in an act 705. If the voltage droop does not exceed the threshold, no soft-short circuit condition is deemed to exist in an act 706. Conversely, if the voltage droop exceeds the threshold, a soft-short circuit condition is deemed to be detected in an act 707.

    [0043] As those of some skill in this art will by now appreciate and depending on the particular application at hand, many modifications, substitutions and variations can be made in and to the materials, apparatus, configurations and methods of use of the devices of the present disclosure without departing from the scope thereof. In light of this, the scope of the present disclosure should not be limited to that of the particular embodiments illustrated and described herein, as they are merely by way of some examples thereof, but rather, should be fully commensurate with that of the claims appended hereafter and their functional equivalents.