This application relates to flyback converters, and more particularly to input voltage detection for flyback converters.
A flyback converter is typically used to convert unregulated AC input power into a regulated DC voltage such as for charging mobile devices. As part of this power conversion, a diode bridge rectifies the AC voltage from an AC mains into a rectified DC voltage that functions as the input voltage to the flyback converter's primary winding Although the input voltage is rectified and filtered with input DC capacitors, it fluctuates at twice the AC line frequency, particularly in high load conditions. If the AC line voltage drops such as due to a brownout condition, the peak voltage for the input voltage drops. Conversely, the peak voltage for the input voltage rises as the peak amplitude (both positive and negative) for the AC line voltage rises in an overvoltage condition.
To provide proper regulation of its output voltage and for circuit protection, a flyback converter controller will typically monitor the input voltage to detect whether a brownout or overvoltage condition exists. For example, the controller may have a terminal that directly couples to an input voltage rail that carries the input voltage. But the input voltage exceeds 100 V at the peak of its sinusoidal oscillation during normal (no brownout) conditions. A controller with direct input voltage detection must thus employ protection circuitry to provide a high voltage tolerance, which increases costs. In addition, the use of a dedicated terminal for direct input voltage detection also increases costs.
To avoid the costs of direct input voltage detection, flyback controllers with indirect input voltage detection have been developed that use a sense resistor voltage that develops across a sense resistor coupled between the power switch transistor and ground. The sense resistor voltage is thus proportional to the primary winding current that flows through the power switch transistor. In turn, the primary winding current is a function of the input voltage as well as other factors such as the magnetizing inductance of the transformer and the on-time for the power switch transistor. By determining whether the on-time for the power switch exceeds a brownout on-time threshold during the minimums for the sinusoidal variation of the input voltage, a controller may thus detect whether a brownout condition exists. Similarly, the controller may compare the sense resistor voltage to a brownout detection threshold during the minimums for the variation of the input voltage to detect the brownout condition.
Although such indirect detection of the input voltage advantageously eliminates the need for high voltage protection circuitry and a dedicated input voltage detection terminal, the detection accuracy is affected by various process variations such as variations in the magnetizing inductance, the bulk capacitance, load, the sense resistance, and other factors.
Accordingly, there is a need in the art for improved indirect detection of the input voltage for flyback converters.
In accordance with a first aspect of the disclosure, a flyback converter controller for a flyback converter is provided that includes: a timer configured to time a detection time for each cycle of a power switch transistor, wherein the detection time is the delay between a cycling on of the power switch transistor and when a sense resistor voltage exceeds a threshold detection voltage; a memory configured to store a minimum detection time from each detection time during a half cycle of an AC input voltage; and a logic circuit configured to compare the minimum detection time to a threshold detection time to characterize a rectified input voltage to the flyback converter.
In accordance with a second aspect of the disclosure, a method of determining whether a brownout condition exists for a flyback converter is provided that includes: during a half-cycle of an AC input voltage for powering the flyback converter, cycling a power switch transistor through a series of on-times; for each on-time, timing a detection time from a beginning of the on-time to when a sense resistor voltage exceeds a threshold detection voltage to form a series of detection times corresponding to the series of on-times; determining a minimum detection time in the series of on-times; and determining whether the minimum detection time exceeds a brownout detection time to detect whether the brownout condition exists.
In accordance with a third aspect of the disclosure, a flyback converter controller for a flyback converter is provided that includes: a timer configured to time a detection time for each cycle of a power switch transistor, wherein the detection time is a delay between when a sense resistor voltage exceeds a first threshold voltage and when the sense resistor voltage exceeds a threshold detection voltage, the timer being further configured to detect a series of the detection times during a half cycle of an AC input voltage; a memory configured to store a minimum detection time from each detection time during a half cycle of an AC input voltage; and a logic circuit configured to compare the minimum detection time to a threshold detection time to characterize a rectified input voltage to the flyback converter.
These advantageous features may be better appreciated through a consideration of the detailed description below.
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.
To provide improved accuracy for the indirect detection of the rectified input voltage to a flyback converter, a flyback converter controller is disclosed that compares the sense resistor voltage to a threshold at the peaks for the rectified sinusoidal variation of the rectified input voltage. The advantages of such an indirect detection of the rectified input voltage may be better appreciated through a consideration of the following theoretical factors. For example, the rectified input voltage (VIN_DC) may be expressed as follows:
where Lm is the magnetizing inductance, RS is the sense resistor voltage, VDET_TH is a threshold detection voltage for the sense resistor voltage, and tDET is the delay between the switching on of the power switch transistor and sense resistor voltage satisfying the threshold detection voltage VDET_TH. Note that the detection of the maximum value for the rectified input voltage (VIN_DC(max)) is only affected by Lm and RS and is not affected by the bulk capacitance or the load variations. In addition, VIN_DC(max) is directly proportional to the root-mean-square (RMS) value for the AC input voltage (VIN_AC(RMS)) as given by the following expression:
VIN_DC(max)=√{square root over (2)}VIN_AC(RMS)
In turn, the RMS AC input voltage may be expressed as:
The detection time tDET will vary according to the rectified sinusoidal variation of the rectified input voltage. As the rectified input voltage rises, the detection time decreases. Conversely, as the rectified input voltage falls, the detection time rises. The detection time will thus cyclically fall and rise as the rectified input voltage rises and falls.
The AC input voltage has a zero crossing at the end of each half-cycle of the AC input voltage. The rectified input voltage falls to a minimum value at zero crossings of the AC input voltage. As the AC input voltage rises to its positive and negative maximum values, the rectified input voltage rises to its peak. Each half-cycle of the AC input voltage extends from a zero crossing to a subsequent zero crossing. For each half-cycle of the AC input voltage, the rectified input voltage will thus rise from a minimum value to its peak value and then fall again to the minimum value. It thus follows that for each half-cycle of the AC input voltage, the detection time will fall from a maximum value to a minimum value and then rise back up again to the maximum value. The flyback controllers disclosed herein detect the minimum value for the detection time in each half-cycle of the AC input voltage and use this minimum to detect the peak rectified input voltage for each half-cycle of the AC input voltage. From this measurement of the peak rectified input voltage, the flyback controller may then proceed to detect overvoltage or brownout conditions.
An example flyback converter 100 including a controller 105 is shown in
As noted earlier, the slew rate of the primary winding current is proportional to the RMS value for the AC input voltage. As the RMS value increases, the on-time duration for the power switch transistor M1 decreases to reach a given amount of primary winding current. Controller 105 may thus use a timer 115 to time a detection time that begins when the switch driver 125 switches on power switch transistor M1 and that ends when an output signal from a comparator 120 indicates that the sense resistor voltage has increased to equal or be greater than a threshold detection voltage VDET_TH. As discussed earlier, the detection time will have a minimum duration in each half-cycle of the AC input voltage. During each half-cycle, a memory 111 such as a register stores the detection time from each on-time of the power switch transistor M1. In general, there are multiple on-times of power switch transistor M1 in each half-cycle. At the beginning of a half-cycle, the detection time for each on-time of power switch transistor M1 is relatively large but will successively become smaller as the rectified input voltage increases towards its peak value. The detection time for a current on-time of the power switch transistor M1 may be denoted as a current detection time whereas the detection time from a preceding on-time of the power switch transistor M1 may be denoted as a previous detection time. Memory 111 replaces its stored previous detection time with the currently-calculated detection time if the currently-calculated detection time is less than the previous detection time.
The sense resistor voltage and power switch cycling waveforms for flyback converter 100 are shown in
As the AC input voltage cycles to a peak in each AC half-cycle, the detection time will thus cycle to a corresponding low. Referring again to
The AC line voltage detection technique disclosed herein is not limited to the detection of brownout and overvoltage conditions. For example, note that a flyback converter may need to be compatible with the electrical standards of various regions such as whether the RMS AC voltage is 110 volts (low line) or 220 volts (high line). To determine whether flyback converter 100 is powered by a low line or high line AC mains for PWM control optimization, controller 105 may thus determine whether the minimum detection time for each AC half-cycle exceeds a high line threshold time. If the minimum detection time exceeds the high line threshold time, controller 105 determines the existence of the low line condition. Conversely, if the minimum detection time is less than the high line threshold time, controller 105 determines the existence of the high line condition. The brownout detection time is greater than the high line threshold time, which in turn is greater than the overvoltage detection time.
If the flyback converter operates at continuous conduction mode (CCM) or zero-voltage-switching condition (ZVS), the initial current through the main power switch or the initial voltage of the current sensing resistor is not zero. For CCM operation, the initial current is positive, and it is negative for ZVS operation. In such cases, the detection time should not start from the main power switch turn-on point. Instead, the detection time should be modified to be the time interval between the two voltage thresholds for current sensing resistor voltage, and the VDET_TH should be replaced by the voltage difference between the two voltage thresholds. An example controller 300 for ZVS operation is shown in
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.
The present application claims the benefit of U.S. Provisional Application No. 62/867,156, filed Jun. 26, 2019 and entitled “Flyback Converter Input Voltage Detection” the contents of which is incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
9537404 | Li et al. | Jan 2017 | B2 |
9800136 | Eum | Oct 2017 | B2 |
10170974 | Oh | Jan 2019 | B1 |
10333415 | Kikuchi | Jun 2019 | B2 |
10951107 | Khamesra | Mar 2021 | B2 |
20130163291 | Kim et al. | Jun 2013 | A1 |
20180191254 | Feng et al. | Jul 2018 | A1 |
Number | Date | Country |
---|---|---|
102611316 | Jul 2012 | CN |
10-2001-0063231 | Jul 2001 | KR |
WO 2005053143 | Jun 2005 | WO |
Number | Date | Country | |
---|---|---|---|
20200412267 A1 | Dec 2020 | US |
Number | Date | Country | |
---|---|---|---|
62867156 | Jun 2019 | US |