Expert Article

 Christophe Basso

Christophe Basso

business development manager, Future Electronics

POWER CONVERTER Compensating a Flyback Converter

From Christophe Basso Christophe Basso 7 min Reading Time

Related Vendors

The flyback converter is a popular switching structure found in consumer appliances but also in industrial products. Either used as a main converter or as an auxiliary power supply, it can be supplied from a low- or high voltage dc rail. The converter is simple to build with its single switching transistor and lends itself well to producing cost-effective power supplies from a few watts to 100-150 W roughly.

Simulations can be crucial in characterizing the dynamic response of a converter and compensating it for optimal performance in closed-loop operation.(Source:  Christophe Basso)
Simulations can be crucial in characterizing the dynamic response of a converter and compensating it for optimal performance in closed-loop operation.
(Source: Christophe Basso)

Despite its simplicity of design, the converter still needs to be properly controlled for the best-possible dynamic performance, regardless of the grid input voltage or the output current. Many engineers ignore the design methodology for determining the right compensation network for their project and often resort to trial-and-error for stabilizing their converter. If this approach can work for a quick assessment, it cannot guaranty stability margins for long-term reliability. This short article shows how simulation can assist you in characterizing the dynamic response of a converter, to further compensate it for adequate performance in closed-loop operation.

Characterizing the Power Stage

Any loop stabilization exercise starts with the small-signal transfer function of the process you want to control. It is the power stage of a switching converter, which converts energy from the dc rail to power the load, that we want to characterize in frequency. If we excite the control variable of this converter – e.g., the inductor peak current îL in current-mode control or the duty ratio D in a voltage-mode control version – how does this stimulus propagate through the circuitry to deliver a response observable on the output? The complex mathematical relationship linking the stimulus to the response is called the control-to-output transfer function which I arbitrarily designated as H (see equation 1).

Equation 1.(Source:  Christophe Basso)
Equation 1.
(Source: Christophe Basso)

In this expression, Verr represents the error voltage delivered by the compensation network which is later on converted into a peak current or a duty ratio setpoint. Vout designates the output voltage of the converter which conveys the ac response we need. Figure 1 illustrates the basic concept applied to a simplified flyback converter in this particular example.

Figure 1: A flyback converter receives a modulation signal which propagates through the circuitry to form a response on the output.(Source:  Christophe Basso)
Figure 1: A flyback converter receives a modulation signal which propagates through the circuitry to form a response on the output.
(Source: Christophe Basso)

A modulation voltage of sufficiently-low amplitude is applied to the converter whose dc operating point is ensured by adequate biasing conditions. The input and output signals can be visualized on an oscilloscope to check the system remains linear during the ac sweep – for instance between 10 Hz and 100 kHz – but since you want to evaluate the magnitude and the phase of the transfer function point by point, the best is to resort to a frequency-response analyzer (FRA) which is specialized in this type of automated acquisition.

Simulating the Circuit with SIMPLIS

Building a prototype to run frequency measurements is a mandatory step of any serious development cycle. However, it is possible to speed up the loop stabilization process by resorting to a simulation model run on a computer. When components parasitics are well extracted and reflected to the simulation template, then the simulated results are likely to closely match what the FRA will return. Therefore, it becomes possible to think of a potential compensation strategy on the computer prior to testing it on the bench, naturally saving a tremendous amount of time. Figure 2 depicts the simplest possible test setup to extract the control-to-output transfer function of a voltage-mode-controlled flyback converter. In this example, there is no return loop and a dc bias source on the control pin is necessary to set operating conditions.

Figure 2: This setup lets you extract the control-to-output transfer function of a CCM flyback converter operated in voltage-mode control (VM).(Source:  Christophe Basso)
Figure 2: This setup lets you extract the control-to-output transfer function of a CCM flyback converter operated in voltage-mode control (VM).
(Source: Christophe Basso)

The first thing to verify is the dc operating point, confirming the converter delivers its nominal voltage and current from the given input voltage. It is a mandatory sanity check to be sure the circuit operates as expected. Here, we wanted a 19-V output voltage with a 3.4-A current and this what the program confirms through the right-side waveforms. The dc bias V1 in series with the stimulus sets the right duty ratio while ac source V4 injects the modulation signal. The SIMPLIS algorithm will automatically size the ac injection amplitude to keep the system linear while extracting the modulated results comfortably from switching noise in the response, Vout.

Figure 3 shows the ac response in the two possible operating modes, discontinuous conduction mode (DCM) and continuous conduction mode (CCM) when the converter is respectively biased from a 120- or 330-V dc rail. The dc bias in V1 is thus manually adjusted at 435 mV (Vin = 120 V) and 160 mV (Vin = 330 V) for a 19-V/3.5-A output.The ac response in CCM is that of a damped second-order circuit featuring two poles at resonance (ƒ0≈950 Hz) and a right-half-plane zero (RHPZ) typical of this type of converter. The crossover frequency ƒc must thus be selected above the resonance to make sure the loop has gain at this frequency but is reduced well below the RHPZ lowest position to prevent excessive phase lag at ƒc. The following guideline can be adopted in the process of selecting a possible crossover frequency (see equation 2).

Subscribe to the newsletter now

Don't Miss out on Our Best Content

By clicking on „Subscribe to Newsletter“ I agree to the processing and use of my data according to the consent form (please expand for details) and accept the Terms of Use. For more information, please see our Privacy Policy.

Unfold for details of your consent

Equation 2.(Source:  Christophe Basso)
Equation 2.
(Source: Christophe Basso)

In the given example, considering the components values, the low-line full-load RHPZ in CCM is evaluated at the frequency seen in equation 3.

Equation 3.(Source:  Christophe Basso)
Equation 3.
(Source: Christophe Basso)

Figure 3: The control-to-output transfer function is obtained in a few seconds and shows differences between low- and high-line operations as the operating mode changes.(Source:  Christophe Basso)
Figure 3: The control-to-output transfer function is obtained in a few seconds and shows differences between low- and high-line operations as the operating mode changes.
(Source: Christophe Basso)

From this calculation, it is therefore possible to select a crossover frequency located between these limits (see equation 4).

Equation 4.(Source:  Christophe Basso)
Equation 4.
(Source: Christophe Basso)

We can choose 5 kHz as a target and we simply read the CCM Bode plot from Figure 3 to extract the magnitude and phase at this frequency (see equation 5).

Equation 5.(Source:  Christophe Basso)
Equation 5.
(Source: Christophe Basso)

To crossover at 5 kHz, we need to design an active filter – the compensator – offering an attenuation of 10.2 dB at 5 kHz with a boost in phase of 128°, if we set 70° as a goal for the phase margin.

In DCM, the system is still a 2nd-order network but over-damped, with a dominant low-frequency pole. The phase lag approaches 90° and dips further down at high frequencies, considering the second pole and the RHPZ pushed to higher frequencies than in CCM. The compensation will thus be done in CCM, leading to a lower crossover in DCM conditions. That that respect, current-mode control offers better performance with an almost constant crossover point during mode transitions.

Designing the Compensator

There are several normalized structures to choose from depending on the needed phase boost. Their dynamic responses appear in Figure 4. They are built around an operational amplifier (op-amp) but can also be implemented with a TL431, a shunt regulator or a transconductance amplifier (OTA). Design equations between theses solutions differ and are detailed in this book. Each of these compensators includes a pole at the origin, bringing a high gain at dc, for s = 0. Type 1 is a simple integrator, suitable in cases when no phase boost is necessary. Type 2, in addition to the integrator, brings a pole-zero pair which lets you adjust the phase boost from 0 to 90°. Finally, the type 3 adds another pole-zero pair to type 2 and represents a filtered PID with an additional high-frequency pole. The phase boost can peak up to a theoretical 180°.

Figure 4: There are three possible compensation structures, each having a pole at the origin for a high dc gain.(Source:  Christophe Basso)
Figure 4: There are three possible compensation structures, each having a pole at the origin for a high dc gain.
(Source: Christophe Basso)

In our example, considering the needed phase boost of 128°, a type 3 built around an operational amplifier is what we will select. The components values are calculated by a macro as shown in Figure 5 and let you explore different compensation scenarios. In this approach, we placed two zeroes at the resonant frequency and a pole at half the switching frequency for rolling-off the gain and building margin. The second pole will be adjusted by calculation to match the phase margin budget of 70° that we have selected.

Figure 5: The power stage response is compensated by a type 3 circuit compensator for a 5-kHz crossover frequency in CCM.(Source:  Christophe Basso)
Figure 5: The power stage response is compensated by a type 3 circuit compensator for a 5-kHz crossover frequency in CCM.
(Source: Christophe Basso)

The compensated gain appears in the right-side of Figure 5 and confirms a crossover of 5 kHz with a good phase margin. The right-side peaking is an artefact located at the switching frequency of 65 kHz. The circuit must now be tested when it transitions to DCM and will certainly require a change in the strategy to ensure stability in DCM also. Please note that many of these switching converters can be freely downloaded from the author webpage and be run from the demonstration version Elements.

Conclusion

The starting point for stabilizing a switching converter is the determination of its power stage ac response. It is described by the control-to-output transfer function which indicates how a stimulus applied to the control pin, propagates in the circuit to form an observable response. The magnitude and phase response of the transfer function are then graphed on a Bode plot and data are extracted for compensation purposes. A specific compensation structure is selected to shape the loop response, providing reaction speed with adequate margins. The process is not that complicated and the possibility to simulate the converter with a dedicated package clearly provides additional help.

Would you like do dive deeper into the topic? Than have a look at Christophe Basso's newly released book "An Intuitive Guide to Compensating Switching Power Supplies".

Power Electronics in the Energy Transition

(Source: Mesago)

The parameters for energy transition and climate protection solutions span education, research, industry, and society. In the new episode of "Sound On. Power On.", Frank Osterwald of the Society for Energy and Climate Protection Schleswig‐Holstein talks about the holistic guidance his organization can provide.

Listen now!

(ID:50085561)