A flyback configuration is the preferred topology in SMPS application designs mainly because it guarantees complete isolation of the output DC from the input mains AC. Other features include low manufacturing cost, simpler design and uncomplicated implementation. The low current DCM version of flyback converters which include output specification lower than 50 watt are more widely used than the bigger high current counterparts.
Let’s learn the details with a comprehensive explanation through the following paragraphs:
Comprehensive Design Guide for Off-line Fixed Frequency DCM Flyback Converter
Flyback Modes of Operations: DCM and CCM
Below we see the fundamental schematic design of a flyback converter. The main sections in this design are the transformer, the switching power mosfet Q1 on the primary side, the bridge rectifier at the secondary side D1, a filter capacitor for smoothing the output from D1, and a PWM controller stage which may be an IC controlled circuit.
This type of flyback design could have a CCM (continuous conduction mode) or DCM (Discontinuous conduction mode) of operation based on how the power mosfet T1 is configured.
Basically, in DCM mode we have the entire electrical energy stored in the transformer primary transferred across the secondary side each time the mosfet is turned OFF during its switching cycles (also called the flyback period), leading to the primary side current reaching a zero potential before T1 is able to turn ON again in its next switching cycle.
In the CCM mode, the electrical energy stored in the primary does not get the opportunity to get fully transferred or induced across the secondary, since the next T1 is able to switch ON before this can happen, which implies that the flyback current (ILPK and ISEC) are not allowed to reach the zero potential during each of the switching cycles.
We can witness the difference between the two modes of operation in the following diagram through the current waveform patterns across the primary and secondary section of the transformer.
Both DCM and CCM modes have their specific advantages, which may be learned from the following table:
Compared to CCM, the DCM mode circuit demands greater levels of peak current in order to ensure optimal power across the secondary side of the transformer. This in turn demands the primary side to be rated at higher RMS current, meaning the mosfet needs to be rated at the specified higher specifications.
In cases where the design is required to be built with limited range of input current and components, then usually a CCM mode fyback is selected, allowing the design to employ relatively smaller filter capacitor, and lower conduction loss on the mosfet and the transformer).
CCM becomes favorable for conditions where the input voltage is lower, while the current is higher ( over 6 ampere), designs which may be rated to work with over 50 watt power, barring for outputs at 5V wherein the wattage spec could be lower than 50 watts.
The image above indicates the current response on primary side of the flyback modes and the corresponding relationship between their triangular and trapezoidal waveforms.
IA on the triangular waveform indicates the minimal initialization point which may be seen as zero, at the beginning of the switch ON period of the mosfet, and also a higher current peak level persistent in the primary winding of the transformer at the time until the mosfet is switched ON again, during the CCM mode of operation.
IB may be perceived as the finish point of the current magnitude while the mosfet switch is turned ON (Ton interval).
The normalized current value IRMS can be seen as the function of the K factor (IA/IB) over the Y axis. This may be used as the multiplier whenever resistive losses needs to be calculated for an assorted number of wave shapes with reference to a trapezoidal waveform having a flat upper waveform. This also demonstrates the extra unavoidable DC conduction losses of the transformer winding and the transistors or diodes as a current waveform function. Utilizing these advises the designer will be able to prevent as good as 10 to 15% conduction losses with such well calculated converter design.
Considering the above criteria may become significantly crucial for applications designed to handle high RMS currents, and demanding an optimal efficiency as the key features.
It may be possible to eliminate the extra copper losses, although that may demand a formidable core size for accommodating the essential bigger winding window area, in contrast to situations where only the core specifications become crucial.
As we have understood so far, a DCM mode of enables the use of a lower sized transformer, possesses great transient response and works with minimal switching losses, and therefore this mode becomes highly recommended for flyback circuits specified for higher output voltages with relatively lower ampere requirements.
Although it may be possible to design a flyback converter to work with DCM as well as CCM modes, one thing must be remembered that during the transition from DCM to CCM mode, this shifting function transforms into a 2-pole operation, giving rise to low impedance for the converter.
This situation makes it essential to incorporate additional design strategies, including various loop (feedback) and slope compensation with respect to the inner current loop system. Practically this implies that we have to makes sure that the converter is primarily designed for a CCM mode, yet is able to work with DCM mode when lighter loads are used at the output.
It may be interesting to know that by using advanced transformer models, it may become possible to enhance a CCM converter through cleaner and lighter load regulation, as well as high cross regulation over a wide range of load through a stepped-gap-transformer. In such cases a small core gap is enforced by inserting a external element such as an insulation tape or paper, in order to induce high inductance initially, and also enable CCM operation with lighter loads. We will discuss this elaborately some other time my subsequent articles.
Having such versatile DCM mode characteristics, no surprise this becomes the popular choice whenever a hassle free, efficient and low power SMPS is required to be designed.
In the following we will learn the step by step instructions regarding how to design a DCM mode flyback converter.
DCM Flyback Design Equations and Sequential Decision Requirements
Assess and estimate your design requirements. All SMPS design must begin by assessing and determining the system specifications. You will need to define and allocate the following parameters:
We know that the efficiency parameter is the crucial one that needs to be decided first, the easiest way is to go about is to set a target of around 75% to 80%, even if your design is a low cost design. The switching frequency denoted as
Fsw generally has to be compromised while getting the best of transformer size and losses incurred due to switching, and EMI. Which implies one may need to decide on a switching frequency at least below 150kHz. Typically this may be selected between a 50kHz and 100kHz range. Furthermore, in case more than one output is required to be included for the design, the maximum power value Pout will need to be adjusted as the combined value of the two outputs.
You may find interesting to know that until recent times the most popular conventional SMPS designs used to have the mosfet and the PWM switching controller as two different isolated stages, integrated together over a PCB layout, but nowadays in modern SMPS units these two stages can be found embedded inside one package and manufactured as single ICs.
Mainly, the parameters which are typically considered while designing a flyback SMPS converter are 1) The application or the load specifications, 2) Cost 3) Standby power, and 4) Additional protection features.
When embedded ICs are used, usually things become a lot easier, as it only requires the transformer and a few external passive component to be calculated for designing an optimal flyback converter.
Let’s get into the details regarding the involved calculations for designing a flaback SMPS
Calculating the Input Capacitor Cin, and the Input DC Voltage Range
Depending on input voltage and power specifications, the standard rule for selecting Cin which is also referred to as a DC link capacitor can be learned from the following explanations:
In order to ensure a broad range of operation, a 2uF per watt or higher value may be chosen for a DC link capacitor, which will enable you to have a good quality range for this component.
Next, it may eb required to determine the minimum DC input voltage which may be obtained by solving:
Where the discharge becomes the duty ratio of the DC link capacitor, which may be roughly around 0.2
In the figure above we can visualize the DC link capacitor voltage. As shown, the input voltage arises during maximum output power and minimum input AC voltage, whereas the maximum DC input voltage arises during minimum input power (absence of load) and during maximum input AC voltage.
During no load condition, we are able to see a maximum DC input voltage, during which the capacitor charges at the peak level of the AC input voltage, and these values can be expressed with the following equation:
Evaluating the Flyback induced voltage VR, and the maximum voltage stress on the mosfet VDS. The Flyback induced voltage VR could be understood as the voltage induced across the primary side of the transformer when the mosfet Q1 is in switched OFF condition.
The above function in turn impacts maximum VDS rating of the mosfet, which may be confirmed and identified by solving the following equation:
Where, Vspike is the voltage spike generated due to transformer leakage inductance.
To start with, a 30% Vspike out of VDSmax can be taken.
The following list tells us how much reflected voltage or induced voltage may be recommended for a 650V to 800V rated mosfet, and having an initial limit value VR lower than 100V for an expected vast input voltage range.
Picking the right VR can be a bargain between the level of voltage stress over the secondary rectifier, and the primary side mosfet specifications.
If VR is selected very high through an increased turn ratio, would give rise to a bigger VDSmax, but a lower level of voltage stress on the secondary side diode.
And if VR is selected too small through a smaller turn ratio, would cause VDSmax to be smaller, but would result in an increase in the stress level on the secondary diode. A bigger primary side VDSmax would assure not only lower stress level on the secondary side diode and reduction in primary current, but will also allow a cost effective design to be implemented.
Flyback with DCM Mode
How to Calculate Dmax depending on Vreflected and Vinmin
A maximum duty cycle can be expected at instances of VDCmin. For this situation we may design the transformer along the thresholds of DCM and CCM. In this case the duty cycle could be presented as:
How to Calculate Primary Inductance Current
In this step we will calculate primary inductance and primary peak current.
The following formulas could be used for identifying primary peak current:
Once the above is achieved we can go ahead and calculate the primary inductance using the following formula, within the maximum duty cycle boundaries.
Care must be taken regarding the flyback, it must not go into the CCM mode due to any form of excess loading conditions, and for this maximum power specification should be considered while calculating Poutmax in Equation#5. The mentioned condition can also occur in case inductance is increased over the Lprimax value, so take a note of these.
How to Select Optimal Core Grade and Size:
It might look quite intimidating while selecting the right core specification and structure if you are designing a flyback for the first time. Since this may involve a significant number of factors and variables to be considered. A few of these that may be crucial are the core geometry (e.g. EE core/RM core/PQ core etc), the core dimension (eg. EE19, RM8 PQ20 etc), and the core material (eg.3C96. TP4, 3F3 etc).
If you are clueless regarding how to proceed with the above specs, an effective way to counter this problem could eb to refer a standard core selection guide by the core manufacturer, or you can also take the help to the following table which roughly gives you the standard core dimensions while designing a 65kHz DCM flyback, with reference to the output power.
Once you are done with the selection of the core size, it is time to select the correct bobbin, which could be acquired as per the core datasheet. Additional properties of the bobbin such as number of pins, PCB mount or SMD, horizontal or vertical positioning all these may also need to be considered as the preferred design
The core material is also crucial and must be selected based on the frequency, magnetic flux density, and core losses.
To begin with you can try variants with the name 3F3, 3C96, or TP4A, remember the names of available core material may be different for identical types depending on the particular manufacture.
How to Calculate Minimum Primary Turns or Winding
Where the term Bmax signifies the operating maximum flux density, Lpri tells you about the primary inductance, Ipri becomes the primary peak current, while Ae identifies the cross sectional area of the selected core type.
It must remembered that the Bmax should never be allowed to exceed the saturating flux density (Bsat) as specified in the datasheet of the core material. You may find slight variances in Bsat for ferrite cores depending on specifications such as material type and temperature; however a majority of these will have a value near to 400mT. If you find no detailed reference data, you may go with a Bmax of 300mT. Although selecting higher Bmax may assist in having reduced number of primary turns and lower conduction, core loss may significantly increase. Try to optimize between the values of these parameters, such that core loss and copper loss both are kept within acceptable limits.
How to Calculate the number of turns for the main secondary output (Ns) and the miscellaneous auxiliary outputs (Naux)
In order to determine the secondary turns we first need to find the turn ratio (n), which can be calculated using the following formula:
Where Np is the primary turns, and Ns is the secondary number of turns, Vout signifies the output voltage, and VD tells us regarding the voltage drop across the secondary diode.
For calculating the turns for the auxiliary outputs for a desired Vcc value, the following formula can be used:
An auxiliary winding becomes crucial in all flyback converters for supplying the initial start-up supply to the control IC. This supply VCC is normally used for powering the switching IC on the primary side and could be fixed as per the value given in the datasheet of the IC. If the calculation gives a non-integer value, simply round it of by using the upper integer value just above this non integer number.
How to Calculate the wire size for the selected output winding
In order to correctly calculate the wire sizes for the several winding, we first need to find out the RMS current specification for the individual winding.
It may be done with the following formulas:
As a starting point, a current density of 150 to 400 circular mil per Ampere, could be utilized for determining the gauge of the wire. The following table shows the reference for selecting the appropriate wire gauge using 200M/A, as per the RMS current value. It also shows you the diameter of the wire and the basic insulation for an assorted gauge of super enameled copper wires.
Considering the construction of the transformer and Winding design Iteration
After you have finished determining the above discussed transformer parameters, it becomes crucial to evaluate how to fit the wire dimension and the number of turns within the calculated transformer core size, and the specified bobbin. To get this right optimally several iteration or experimentation may be required for optimizing the core specification with reference to wire gauge and the number of turns.
The following figure indicates the winding area for a given EE core. With reference to the calculated wire thickness and the number of turns for the individual winding, it may be possible to approximately estimate whether the winding will fit the available winding area (w and h) or not. If the winding does not accommodate then one of the parameters out of number of turns, wire gauge or the core size, or more than 1 parameter may require some fine-tuning until the winding fits optimally.
The winding layout is crucial since the working performance, and the reliability of the transformer, significantly depends on it. It is recommended to employ a sandwich layout or structure for the winding in order to restrict inductance leakage, as indicated in Fig5.
Also in order to satisfy and conform with the international safety rules, the design must have sufficient range of insulation across the primary and secondary layers of winding. This may be assured by employing margin-wound structure, or by using a secondary wire having triple insulated wire rating, as shown in the following respective figure
Employing triple insulated wire for the secondary winding becomes the easier option for quickly affirming the international safety laws concerning flyback SMPS designs. However such reinforced wires may have a bit higher thickness compared to the normal variant compelling the winding to occupy more space, and may require additional effort to accommodate within the selected bobbin.
How to design the Primary Clamp Circuit
In the switching sequence, for the OFF periods of the mosfet, a high voltage spike in the form of leakage inductance is subjected across the mosfet drain/source, which might result in an avalanche breakdown, ultimately damaging the mosfet.
To counter this a clamping circuit is usually configured across the primary winding, which instantly limits the generated spike to some safe lower value.
You will find a couple of clamping circuit designs that may be incorporated for this purpose as shown in the following figure.
These are namely RCD clamp, and Diode/Zener clamp, where the latter is much easier to configure and implement than the first option. In this clamp circuit we use a combination of a rectifier diode and a high voltage Zener diode such as a TVS (transient voltage suppressor) for clamping the surge spike.
The function of the Zener diode is to efficiently clip or limit the voltage spike until the leakage voltage is fully shunted through the Zener diode. The advantage of a diode Zener clamp is that the circuit activates and clamps only when the combined value of VR and Vspike exceeds the breakdown spec of the Zener diode, and conversely, as long as the spike is below the Zener breakdown or a safe level, the clamp may not trigger at all, not allowing any unnecessary power dissipation.
How to Select Clamping Diode/Zener Rating
It is should always twice the value of the reflected voltage VR, or the assumed spike voltage.
The rectifier diode should be ultra-fast recovery or a schottky type of diode having a rating higher than the maximum DC link voltage.
The alternative option of RCD type of clamping has the disadvantage of slowing down the MOSFET’s dv/dt. Here the resistance parameter of the resistor becomes crucial while limiting the voltage spike. If a low value Rclamp is selected it would improve the spike protection but might increase dissipation and waste energy. Conversely, if a higher value Rclamp is selected, that would help to minimize dissipation but might not be so effective in suppressing the spikes.
Referring to the figure above, to ensure VR = Vspike, the following formula could be used
Where Lleak signifies the inductance of the transformer, and could be found by making a short circuit across the secondary winding, or alternatively, a rule of thumb value could be incorporated by applying 2 to 4% of the primary inductance value.
In this case the capacitor Cclamp should be substantially large inhibit a rise in voltage during the absorption period of the leakage energy.
The value of Cclamp may be selected between 100pF to 4.7nF, the energy stored inside this capacitor will be discharged and refreshed by Rclamp quickly during eacj switching cycle.
How to Select Output Rectifier Diode
This may be calculated using the formula shown above.
Make sure to select the specifications such that the maximum reverse voltage or the VRRM of the diode is not less than 30% than the VRVdiode, and also ensure that the IF or the avalanche forward current spec is minimum 50% greater than the IsecRMS. Preferably go for a schottky diode to minimize conduction losses.
With a DCM circuit the Flyback peak current may be high, therefore try selecting a diode having a lower forward voltage and a relatively higher current specs, with regards to the desired efficiency level.
How to Select the Output Capacitor Value
Selecting a correctly calculated output capacitor while designing a flyback can eb extremely crucial, because in a flyback topology stored inductive energy is unavailable between the diode and the capacitor, which implies the capacitor value needs to be calculated by considering 3 important criteria:
3) RMS current
The minimum possible value could be identified depending on the function of maximum acceptable peak to peak output ripple voltage, and may be identified through ghe following formula:
Where Ncp signifies the number of primary side clock pulses required by the control feedback for controlling the duty from the specified maximum and minimum values. This may typically require around 10 to 20 switching cycles.
Iout refers to the maximum output current (Iout = Poutmax / Vout).
To identify the maximum RMS value for the output capacitor, use the following formula:
For a specified high switching frequency of the flyback, the maximum peak current from the secondary side of the transformer will generate a correspondingly high ripple voltage, imposed across the equivalent ESR of the output capacitor. Considering this it must be ensured that the ESRmax rating of the capacitor does not exceed the specified acceptable ripple current capability of the capacitor.
The final design may fundamentally include the desired voltage rating, and ripple current capability of the capacitor, based on the actual ratio of the selected output voltage and current of the flyback.
Make sure that the ESR value is determined from the datasheet based on the frequency higher than 1kHz, which may be typically assumed to be between 10kHz to 100kHz.
It would be interesting to note that a solitary capacitor with a low ESR spec may be enough to control the output ripple. You can try to include a small LC filter for higher peak currents, especially if the flyback is designed to work with a DCM mode, which might guarantee a reasonably good ripple voltage control at the output.
Further Important Considerations:
A) How to Select Voltage and Current rating, for the Primary side Bridge rectifier.
It can be done through the above equation.
In this formula PF stands for power factor of the power supply, we can apply 0.5 in case a proper reference becomes out of reach. For the bridge rectifier select the diodes or the module having a forward amp rating 2 times more than the IACRMS. For the voltage rating, it could be selected at 600V for a maximum 400V AC input specification.
B) How to Select the Current Sense Resistor (Rsense):
It may be calculated with the following equation. The sensing resistor Rsense is incorporated to interpret the maximum power at the output of the flyback. Vcsth value could be determined by referring to the controller IC datasheet, Ip(max) signifies the primary current.
C) Selecting the VCC of the Capacitor:
An optimal capacitance value is crucial for the input capacitor to render a proper startup period. Typically any value between 22uF to 47uF does the job nicely. However if this is selected much lower might result in triggering an “under voltage lockout” on the controller IC, before the Vcc is able to develop by the converter. On the contrary a larger capacitance value could result in an undesirable delaying of the startup time of the converter.
Additionally, make sure this capacitor is of the best quality, having very good ESR and ripple current specifications, on par with the output capacitor specifications. It is strongly recommended to connect another smaller value capacitor in the order of 100nF, parallel to the above discussed capacitor, and as close as possible to the controller IC’s Vcc/ground pinouts.
D) Configuring the Feedback Loop:
Feedback loop compensation becomes important to stop the generation of oscillation. Configuring loop compensation can be simpler for DCM mode flyback than a CCM, due to the absence of “right half plane zero” in the power stage and thus no compensation is called for.
As indicated the above figure a straightforward RC (Rcomp, Ccomp) mostly becomes just enough to maintain good stability across the loop. In general Rcomp value may be selected anything between 1K and 20K, while Ccomp could be within the range of 100nF and 470pF.
This concludes our elaborate discussion on how to design and calculate a flyback converter, if you have any suggestions or questions, you can put them forth in the following comment box, your questions will be replied ASAP.
"Howdy friend! Are you a newcomer and looking for personalized help? Please feel free to use the comment box below for posting your queries, and get guaranteed replies within an hour!"