Docsity

Converter Design Notes, Study notes of Electronics engineering

Toggle sidebar
bg1
Design of a TL431-Based Controller
for a Flyback Converter
Dr. John Schönberger
Plexim GmbH
Technoparkstrasse 1
8005 Zürich
1 Introduction
The TL431 is a reference voltage source that is commonly used in the control circuit of isolated power
supplies. Typically used to provide a precision reference voltage, the TL431 can also be configured as an
analog controller by exploiting its on-board error amplifier. In this report, the design of a TL431-based
voltage controller for a flyback converter is presented. The example circuit is shown in Fig. 1.


































!""#
$#""
%&

'
()
*+,


-./
0



Fig. 1: Schematic of current-controlled flyback converter with a TL431 configured as a type 2 voltage controller.
The flyback converter comprises two control loops. The inner current control loop, based on peak current
mode control, is realized using a UCC38C4x current-controlled PWM modulator. The outer voltage control
loop is a type 2 controller, which is commonly used in power supply voltage control loops. The voltage
control circuit regulates the output voltage of the 5 V winding and includes an optocoupler to maintain
isolation between the input and output stages.
The voltage controller must regulate the measured 5 V output voltage over a range of loading conditions
on the ±12 V windings, which induce voltage deviations on the 5 V winding. The load resistances on the
±12 V windings vary between 15 and 7.5 Ω. The starting point for the voltage controller design is the
calculation of the converter’s open-loop transfer function, Vo(s)
Vc(s), which is depicted as a Bode plot. The type
2 controller is then designed in the frequency domain to ensure that it provides a sufficiently fast and
stable closed-loop transient response.
ver 12-11
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Converter Design Notes and more Study notes Electronics engineering in PDF only on Docsity!

Design of a TL431-Based Controller

for a Flyback Converter

Dr. John Schönberger

Plexim GmbH

Technoparkstrasse 1

8005 Zürich

1 Introduction

The TL431 is a reference voltage source that is commonly used in the control circuit of isolated power supplies. Typically used to provide a precision reference voltage, the TL431 can also be configured as an analog controller by exploiting its on-board error amplifier. In this report, the design of a TL431-based voltage controller for a flyback converter is presented. The example circuit is shown in Fig. 1.

  ^ 

 

 

 

   

   

 













 



 (^) 





   !""# $#""

 %&

'



()

*+,





-./

0 







Fig. 1: Schematic of current-controlled flyback converter with a TL431 configured as a type 2 voltage controller.

The flyback converter comprises two control loops. The inner current control loop, based on peak current mode control, is realized using a UCC38C4x current-controlled PWM modulator. The outer voltage control loop is a type 2 controller, which is commonly used in power supply voltage control loops. The voltage control circuit regulates the output voltage of the 5 V winding and includes an optocoupler to maintain isolation between the input and output stages.

The voltage controller must regulate the measured 5 V output voltage over a range of loading conditions on the ±12 V windings, which induce voltage deviations on the 5 V winding. The load resistances on the ±12 V windings vary between 15 and 7.5 Ω. The starting point for the voltage controller design is the calculation of the converter’s open-loop transfer function, V Voc^ ( (ss)) , which is depicted as a Bode plot. The type 2 controller is then designed in the frequency domain to ensure that it provides a sufficiently fast and stable closed-loop transient response.

ver 12-











 

Fig. 2: Use of the TL431 to generate an arbitrary reference voltage.

In this report, an example design and verification procedure for a TL431-based type 2 voltage controller is presented. PLECS small-signal analysis tools are employed to calculate the open and closed-loop Bode plots of the system. Example models accompany this report to illustrate the use of the PLECS small- signal analysis tools and to demonstrate the operation of the complete system. These models can be found in the archive Flyback_tl431.zip.

2 The TL

2.1 The TL431 regulator

The TL431 is an adjustable shunt regulator that can be configured to provide an arbitrary reference voltage as shown in Fig. 2. The output voltage can be set to any value between V (^) ref and 36 V using two external resistors. The output voltage is given by

V (^) o = V (^) ref

R 1

R 2

where V (^) ref is the onboard 2.5 V reference voltage source.

2.2 The TL431 type 2 error amplifier

Although the TL431 is commonly used as an adjustable voltage reference source, its onboard error am- plifier can be configured as an op-amp, allowing it to be used for both voltage reference and control ap- plications. The 1 MHz unity-gain bandwidth of its error amplifier is more than adequate for most power supply voltage control loops.

The frequency response of a type 2 controller is depicted as a Bode plot in Fig. 3. At low frequencies, the type 2 controller is similar to a PI controller, having a pole at 0◦^ due to the integral action, and a zero at ωz due to the proportional action. However, the type 2 controller includes a high frequency pole at ωp , which is used to mitigate the switching ripple. The transfer function of a type 2 controller is given as follows:

C(s) = kp

1 + sτ sτ

1 + sT

= kp

1 + sτ s^2 τ T + sτ

It can be seen from Fig. 3 that the type 2 controller is characterized by three parameters: the gain, A (^) v , the zero frequency, ω (^) z , and the pole frequency, ω (^) p. These parameters are used to calculate the terms in the transfer function as follows:

kp = 10

Av 20 (4)





 



















(a) Controller circuit with optocoupler for feedback loop isolation.

   



 ^  



(b) System block diagram.

Fig. 4: The TL431 configured as an isolated type 2 controller.

(a) small-signal voltage gain.







   

(b) PLECS implementation.

Fig. 5: TL431 model.

3.1 TL431 model

A practical TL431 contains an error amplifier and a 2.5 V reference voltage source [1]. The PLECS model of the TL431 is shown in Fig. 5. The small-signal voltage gain is approximated using a first-order low- pass filter with a gain of 750 (57.5 dB) and a cutoff frequency of 2.5 kHz. The Bode plot of the small-signal voltage gain of the error amplifier is shown in Fig. 5(a). It can be seen that the unity-gain frequency is approximately 2 MHz.

It should be noted that the unity-gain frequency of the practical TL431 component is 1 MHz because the practical component does not have a true first-order characteristic. However, this difference has negligible impact on the system model, since the cutoff frequency of the control system is approximately three orders of magnitude lower than the unity gain frequency of the TL431.

The cathode current vs. voltage characteristic of the TL431 has an offset of 2.5V since the minimum cathode voltage that can be generated is equal to the reference voltage. The cathode offset voltage is modeled in PLECS using an ideal diode as shown in Fig. 5(b). Due to use of the ideal diode, the offset voltage is 2.5V, even at zero current. In a practical TL431, the cathode offset voltage is not guaranteed to be 2.5 V unless the cathode current is 1 mA. Therefore the TL431 should be correctly biased to ensure the validity of the model.

     

  

       (^)    ! !

"# #

" 

$

%



&'

()*

(a) Simplified behavioral model.

  



(b) Actual current reference offset and scaling circuit.

Fig. 6: PLECS model of the UCC38C4x current-mode control IC.

 



 

   

       

Fig. 7: PLECS optocoupler model.

3.2 UCC38C4x current-mode control IC model

The current controller model is based on the UCC38C4x series of current-mode PWM contol ICs [2]. In- ternally, the UCC38C4x modulator consists of a peak current mode controller, oscillator, error amplifier, reference voltage generator, undervoltage lockout logic and current offset and scaling circuit. The simpli- fied behavioral model of the UCC38C4x is shown in Fig. 6.

As seen in Fig. 6(a), the simplified behavioral model contains only those features that directly influence the operation of the control circuit and converter. These features are the peak current mode controller, current offset and scaling circuit and the 5 V reference voltage. The onboard error amplifier is not modeled since the control voltage is supplied by the external type 2 control circuit.

The actual current reference offset and scaling circuit found between the COMP pin and Iref input of the peak current controller is shown in Fig. 6(b). The current sense circuit comprises a voltage drop of 1.15 V and a resistive voltage divider. The peak MOSFET current is therefore expressed as:

Isw = max(V (^) c − 1. 15 , 0) 3 R (^) s

where R (^) s is the current sense resistor that is connected in series with the MOSFET.

3.3 Optocoupler model

The optocoupler is modeled using a controlled current source as shown in Fig. 7. In the linear operating region, the collecter current is given by Ic = CT R · Iled. In the saturation region, a limit is imposed on the CTR to prevent the collector voltage from becoming negative. A small capacitor that represents the collecter-emitter capacitance is included in the model to prevent an algebraic loop from being formed.

It should be noted that in the PLECS optocoupler model, the CTR is assumed to be constant for simplicity. In a practical optocoupler, the CTR varies with the forward LED current, temperature, age and even between different production batches. Therefore the control circuit should be designed and tested for the lowest and highest expected values for the CTR.











 ^

^ 













    

   

^

^ 

















Fig. 8: Bode plot of open-loop converter transfer function, G(s) = V Voc ((ss)).

4.3 Controller design

  1. The first step in designing the control circuit is to set the reference voltage to 5 V. Using Eq. (1) and selecting the bias current in the resistive divider to 0.25 mA, resistors R 1 and R 2 were calculated to be 10 kΩ.
  2. The TL431 must have a minimum bias current of 1 mA in order to provide its stated reference volt- age of 2.5 V [1]. The resistor R (^) led is calculated to provide a maximum bias current, Iled max , for the TL431 of 2 mA. The maximum bias current occurs when V (^) k , the cathode-anode voltage of the TL is at its minimum value of 2.5 V. This allows the calculation of R (^) led as follows:

R (^) led = V (^) o − V (^) led − V (^) k min Ik

  1. Using Eq. (7), the small-signal collector resistor resistance, R (^) c , is calculated to achieve the required kp :

R (^) c =

kp R (^) led CT R

R (^) c is chosen to be 800 Ω and is implemented by setting R (^) c 1 = R (^) c 2 = 1600Ω. Since V (^) ref in the UCC38C4x is 5 V, the peak control voltage is limited to 2.5 V and the peak MOSFET current is limited to 0.9 A in accordance with Eq. (10).

  1. Cz is calculated from Eq. (8) to set the zero frequency, fz :

Cz =

2 πfz R (^1) = 159nF

  1. Cp is calculated from Eq. (9) to set the pole frequency, fp :

Cp =

2 πfp R (^) c

= 40nF











 ^

^ 

















    

   

^

^ 









Fig. 9: Frequency response of type 2 controller.

  1. To verify the controller design, an ac sweep was performed on an open-loop model of the controller. The resultant Bode plot is shown in Fig. 9. The frequency response was saved to a csv file for calculation of the closed-loop gain as described in Section 4.6.

4.4 Verify the controller biasing

Although the design procedure given in Section 4.3 sets the type 2 controller parameters, kp , fz , fp , correctly, the bias currents in the type 2 control circuit must be checked to ensure that the minimum required control voltage can be generated and that sufficient cathode current flows in the TL431. For the circuit shown in Fig. 4(a), the bias currents Iled and Ic are set by the components R (^) led , R (^) c 1 and R (^) c 2.

At minimum load, sufficient collector current must flow through the optocoupler to pull V (^) ce down to V (^) c min , which was measured to be 1.96 V. Peak collector current is generated when maximum current flows through the optocoupler LED, and maximum LED current is induced when the TL431 supplies its min- imum output voltage of 2.5 V. The LED current at minimum TL431 output voltage was set to be 2 mA in Step 2 of Section 4.3. Therefore if the LED current required to generate V (^) c min is less than 2 mA, the minimum control voltage requirement is satisfied.

Iled =

V (^) ref − 2 V (^) c min 2 R (^) c CT R

= 0. 14 mA (11)

Therefore the minimum control voltage can be generated. If the required LED current is larger than Iled max , the cathode voltage of the TL431 would have to decrease below 2.5 V, which is not possible.

The cathode current in the TL431, equivalent to Iled , should also be verified. The cathode current should be at least 1 mA to ensure that the reference voltage of 2.5 V is generated. Minimum cathode current flows at maximum load, when the control voltage is at its largest value. When V (^) c max = 2. 22 V is substituted into Eq. (11), it can be seen that the minimum LED current is not fulfilled. Additional bias current must therefore be added to the cathode current. This can be achieved by connecting a resistor between V (^) o and the cathode of the TL431 or directly across the LED in the optocoupler. A 1 kΩ resistor that is connected across the optocoupler LED provides an additional 1 mA of cathode bias current for the TL431. This

Fig. 10: Loop gain of flyback converter voltage control loop.

5 Conclusion

The TL431 is a commonly-used reference voltage generator that can also function as an analog controller in isolated converter control applications. Combining the control function with the voltage reference generator provides a low-cost controller implementation. The minimum gain limitation of the TL431- based type 2 controller limits the minimum cutoff frequency of the closed-loop system.

In this report, the design and implementation of a type 2 controller for a flyback converter were presented. Behavioral models of the TL431, optocoupler and current mode control IC were created in PLECS. A design procedure for the type 2 voltage control circuit, based on the small-signal tools that are integrated into PLECS, was presented. The Impulse Response Analysis tool was used to calculate the open-loop frequency response of the converter and the AC sweep tool was used to calculated the open-loop frequency response of the controller. The frequency responses were added to predict the loop gain. From the loop gain, the gain and phase margins were measured in order to predict the stability of the closed-loop system.

References

[1] “TL431 programmable shunt regulator,” www.fairchildsemi.com.

[2] “UCC38C4x BiCMOS low power current-mode PWM controller,” www.ti.com.

Appendices

A Simulation Files - PLECS Standalone

  • Flyback_openloop_resp.plecs: model in which the Impulse Response Analysis tool is used to obtain the open-loop frequency response of the current-controlled converter. The result should be manually saved to csv file.
  • TL431_controller_sweep.plecs: model in which the AC Sweep tool is used to obtain the frequency response of the type 2 controller. The result should be manually saved to csv file.
  • bodeadd_csv.m: calculates the loop gain Bode plot in Matlab by adding the frequency responses of the converter and controller, which stored in csv files
  • bodeadd_csv.py: implemention of the above function in the Python programming language.
  • Flyback_closedloop.plecs: complete model of the flyback converter and controller for verifying the transient response. The closed-loop gain can also be obtained from this model using the AC Sweep tool.

B Simulation Files - PLECS Blockset

  • Flyback_openloop_resp.mdl: model in which the Impulse Response Analysis tool is used to obtain the open-loop frequency response of the current-controlled converter. The result is written to the MATLAB workspace as a struct.
  • TL431_controller.mdl: model for which the transfer function of type 2 controller is calculated using the linmod function. A struct of the frequency response is returned.
  • bode_type2_controller.m: helper function for calculating the Bode plot of the type 2 control circuit.
  • plbode.m: helper function for generating Bode plots.
  • bodeadd.m: calculates the loop gain Bode plot by adding the frequency responses of the converter and controller, which are stored as structs in the MATLAB workspace.
  • Flyback_closedloop.mdl: complete model of the flyback converter and controller for verifying the transient response.