Practical Control Design for Power Supplies. Power Seminar 2004/2005

Similar documents
Lecture 48 Review of Feedback HW # 4 Erickson Problems Ch. 9 # s 7 &9 and questions in lectures I. Review of Negative Feedback

Power supplies are one of the last holdouts of true. The Purpose of Loop Gain DESIGNER SERIES

Testing and Stabilizing Feedback Loops in Today s Power Supplies

Lecture 8 ECEN 4517/5517

Advances in Averaged Switch Modeling

BUCK Converter Control Cookbook

While the Riso circuit is both simple to implement and design it has a big disadvantage in precision circuits. The voltage drop from Riso is

Lecture 4 ECEN 4517/5517

EK307 Active Filters and Steady State Frequency Response

Another Compensator Design Example

Peak Current Mode Control Stability Analysis & Design. George Kaminski Senior System Application Engineer September 28, 2018

Using an automated Excel spreadsheet to compensate a flyback converter operated in current-mode. Christophe Basso, David Sabatié

Background (What Do Line and Load Transients Tell Us about a Power Supply?)

FEATURES DESCRIPTION APPLICATIONS PACKAGE REFERENCE

Assist Lecturer: Marwa Maki. Active Filters

Fixed Frequency Control vs Constant On-Time Control of Step-Down Converters

Techcode. 1.6A 32V Synchronous Rectified Step-Down Converte TD1529. General Description. Features. Applications. Package Types DATASHEET

Minimizing Input Filter Requirements In Military Power Supply Designs

Testing Power Sources for Stability

Fundamentals of Power Electronics

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

EE 501 Lab 4 Design of two stage op amp with miller compensation

DESIGN AND ANALYSIS OF FEEDBACK CONTROLLERS FOR A DC BUCK-BOOST CONVERTER

Voltage-Mode Buck Regulators

Input Filter Design for Switching Power Supplies Michele Sclocchi Application Engineer National Semiconductor

James Lunsford HW2 2/7/2017 ECEN 607

Bipolar Emitter-Follower: Output Pin Compensation

Using Sipex PWM Controllers for Boost Conversion

An Accurate and Practical Small-Signal Model for Current-Mode Control

Chapter 10 Switching DC Power Supplies

Chapter 6: Converter circuits

Foundations (Part 2.C) - Peak Current Mode PSU Compensator Design

55:141 Advanced Circuit Techniques Switching Regulators

EK307 Passive Filters and Steady State Frequency Response

GATE: Electronics MCQs (Practice Test 1 of 13)

Designer Series XV. by Dr. Ray Ridley

MP1482 2A, 18V Synchronous Rectified Step-Down Converter

CHAPTER 7 HARDWARE IMPLEMENTATION

LINEAR MODELING OF A SELF-OSCILLATING PWM CONTROL LOOP

1) Consider the circuit shown in figure below. Compute the output waveform for an input of 5kHz

Low Pass Filter Introduction

SGM6130 3A, 28.5V, 385kHz Step-Down Converter

DC/DC Converter. Introduction

Power Management for Computer Systems. Prof. C Wang

Lecture 41 SIMPLE AVERAGING OVER T SW to ACHIEVE LOW FREQUENCY MODELS

ELECTRICAL CIRCUITS 6. OPERATIONAL AMPLIFIERS PART III DYNAMIC RESPONSE

Analog Circuits and Systems

Operational Amplifiers

Operational Amplifiers

Design Type III Compensation Network For Voltage Mode Step-down Converters

When input, output and feedback voltages are all symmetric bipolar signals with respect to ground, no biasing is required.

SP7650 LX 26 LX 25 LX 24 LX 23 VCC 22 GND 21 GND 20 GND 19 RBST 20 BST NC 17 LX 16 LX 15 LX 14. D1 BZX384B5V6 Vz=5.6V

Modeling The Effects of Leakage Inductance On Flyback Converters (Part 2): The Average Model

Demystifying active-clamp flyback loop compensation. Pei-Hsin Liu

The analysis and layout of a Switching Mode

OPERATIONAL AMPLIFIER PREPARED BY, PROF. CHIRAG H. RAVAL ASSISTANT PROFESSOR NIRMA UNIVRSITY

5. Active Conditioning for a Distributed Power System

Experiment 1: Amplifier Characterization Spring 2019

Instrumentation Amplifiers Filters Integrators Differentiators Frequency-Gain Relation Non-Linear Op-Amp Applications DC Imperfections

Application Note AN4134

MP2305 2A, 23V Synchronous Rectified Step-Down Converter

4.5V to 32V Input High Current LED Driver IC For Buck or Buck-Boost Topology CN5816. Features: SHDN COMP OVP CSP CSN

Positive Feedback and Oscillators

Practical Testing Techniques For Modern Control Loops

Preliminary. Synchronous Buck PWM DC-DC Controller FP6329/A. Features. Description. Applications. Ordering Information.

Wide Input Voltage Boost Controller

Christophe Basso Technical Fellow IEEE Senior Member

idesyn id8802 2A, 23V, Synchronous Step-Down DC/DC

Regulator 2.dwg: a simplified linear voltage regulator. This is a multi-sheet template:

UNIVERSITY OF PENNSYLVANIA EE 206

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Specify Gain and Phase Margins on All Your Loops

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

Constant Current Control for DC-DC Converters

MP1570 3A, 23V Synchronous Rectified Step-Down Converter

Analog Electronics. Lecture Pearson Education. Upper Saddle River, NJ, All rights reserved.

CONTROLLER DESIGN FOR POWER CONVERSION SYSTEMS

ANP012. Contents. Application Note AP2004 Buck Controller

Final Exam. Anyone caught copying or allowing someone to copy from them will be ejected from the exam.

EE 3305 Lab I Revised July 18, 2003

CONTENTS. Chapter 1. Introduction to Power Conversion 1. Basso_FM.qxd 11/20/07 8:39 PM Page v. Foreword xiii Preface xv Nomenclature

EE 210 Lab Exercise #5: OP-AMPS I

SGM6232 2A, 38V, 1.4MHz Step-Down Converter

SGM6132 3A, 28.5V, 1.4MHz Step-Down Converter

Input Stage Concerns. APPLICATION NOTE 656 Design Trade-Offs for Single-Supply Op Amps

OPERATIONAL AMPLIFIERS (OP-AMPS) II

ECE 363 FINAL (F16) 6 problems for 100 pts Problem #1: Fuel Pump Controller (18 pts)

AN726. Vishay Siliconix AN726 Design High Frequency, Higher Power Converters With Si9166

Core Technology Group Application Note 2 AN-2

Oscillators. An oscillator may be described as a source of alternating voltage. It is different than amplifier.

Features MIC2193BM. Si9803 ( 2) 6.3V ( 2) VDD OUTP COMP OUTN. Si9804 ( 2) Adjustable Output Synchronous Buck Converter

Emitter base bias. Collector base bias Active Forward Reverse Saturation forward Forward Cut off Reverse Reverse Inverse Reverse Forward

Chapter 3 HARD SWITCHED PUSH-PULL TOPOLOGY

Transactions on Engineering Sciences vol 11, 1996 WIT Press, ISSN

Positive to Negative Buck-Boost Converter Using LM267X SIMPLE SWITCHER Regulators

EUP V/12V Synchronous Buck PWM Controller DESCRIPTION FEATURES APPLICATIONS. Typical Application Circuit. 1

GATE SOLVED PAPER - IN

Designing and Implementing of 72V/150V Closed loop Boost Converter for Electoral Vehicle

2A 150KHZ PWM Buck DC/DC Converter. Features

Operational Amplifiers (Op Amps)

Transcription:

Practical Control Design for Power Supplies Power Seminar 24/25

Practical Control Design for Power Supplies Refresher on closed loop feedback Special features of switch mode power supplies Stabilization and optimization of control loops Example of stabilizing a flyback converter Advanced topics Effect of input filter on transfer functions 2

Objectives for Controlling Power Supplies Most switch mode power supplies use closed loop negative feedback control Like all closed loop feedback control systems it is important to ensure that The closed loop is stable The response to a change does not have an excessive overshoot The response to a change does not have excessive ringing The cost of the control methodology is appropriate for the application 3

Basic Principles: Principles of an Oscillator Circuit To understand how best to stop a power supply from oscillating, we will consider the conditions under which a circuit will oscillate We can build an oscillator circuit using A differential amplifier with gain K A phase shift of -18º Unity gain negative feedback V + K - -18º phase shift x 1/K Output When the oscillator is working The amplifier output is sinusoidal The output of the phase shift circuit is shifted -18º, and scaled to 1/K The negative feedback inverts the sinusoid, giving a further phase shift of - 18º The amplifier has gain K, so the output is the same as where we started V + - K -18º shift -18º phase shift x 1/K Further -18º shift gives total -36º shift Output 4

Basic Principles: Generation of a Negative Phase Shift RC circuit Gives a maximum phase shift of -9º Three RC stages are necessary to generate a guaranteed phase shift of - 18º We introduce something known as a Right Half Plane Zero This element generates a maximum phase shift of -9º in a similar way to an RC circuit LCR circuit Gives a maximum phase shift of -18º An LCR circuit, plus an additional phase shift element is necessary to generate a guaranteed phase shift of - 18º We note that three circuits attenuate/reduce the input signal The integrator has a gain greater than 1 at low frequencies A differential amplifier having a capacitor in the feedback generates a constant phase shift of -9º 5

Basic Principles: Formal Names for Phase Shift Elements Our example Formal name Maximum shift Transfer function RC circuit (single) pole -9º RLC circuit quadratic pole -18º V V o i V V o i 1 1 jcr 1 1 jcr 2 LC Op-amp with integrator pole -9º cap in feedback V V o i 1 jcr Right half right half -9º plane zero plane zero V V o i 1 j z 6

Basic Principles: Standardized Forms Our example Formal name Transfer function Parameters RC circuit RLC circuit (lossy L) (single) pole quadratic pole V V o i V V o i 1 1 j p 1 j 1 Q 2 2 p 1 RC 1 o LC 1 L Q R C Op-amp with cap in feedback integrator pole V V o i j 1 i i RC Right half plane zero right half plane zero V V o i 1 j z 7

Pole at 1Hz Gain db -1-2 -3-4 -5-6 -7-8 -9 1 1 1 1 1 1 1 Phase degrees -3-6 -9 8-12 1 1 1 1 1 1 1

Quadratic Pole at 2Hz, Q = 2 Gain db 2-2 -4-6 -8-1 -12-14 -16 1 1 1 1 1 1 1-3 Phase degrees -6-9 -12-15 -18 9-21 1 1 1 1 1 1 1

Integrator with Unity Gain at 1Hz 6 4 Gain db 2-2 -4-6 -8-1 1 1 1 1 1 1 1 Phase degrees -3-6 -9 1-12 1 1 1 1 1 1 1

Right Half Plane Zero at 1Hz Gain db 9 8 7 6 5 4 3 2 1 1 1 1 1 1 1 1 Phase degrees -3-6 -9 11-12 1 1 1 1 1 1 1

Basic Principles: Combining Elements The transfer function for a cascade of two or more elements is derived by A multiplication of the transfer functions for each element The gain of a cascade Is found by multiplying the magnitudes, or adding the magnitudes when expressed in db The phase of a cascade Is found by adding the phases Note: db = 2 log 1 (Vo / Vi) 12

Basic Principles: Building a -18º Phase Shift We can now build a block to generate a guaranteed -18º phase shift For example, we could pick an LCR circuit, followed by an RC circuit Or we could pick an LCR circuit followed by a Right Half Plane Zero Or we could pick three RC circuits In the example, we have cascaded a right half plane zero of 1kHz, with a quadratic pole at 2Hz, Q=.1 We have generated a phase shift of -18 degrees at 14Hz-15Hz Gain db Phase degrees -1-2 -3-4 -5-6 -7-8 -9-1 1 1 1 1 1 1 1-3 -6-9 -12-15 -18-21 -24-27 -3 1 1 1 1 1 1 1 13

Basic Principles: Building an Oscillator Now we have Unity gain feedback A phase shift of greater than -18º But the gain is less than db so the loop will not oscillate Gain db -1-2 -3-4 -5-6 -7-8 -9-1 1 1 1 1 1 1 1 In the graph, the gain is -34dB So we need at least 34dB gain for oscillation V + - K -18º phase shift, -34dB Output Phase degrees -3-6 -9-12 -15-18 -21-24 -27-3 1 1 1 1 1 1 1 14

Basic Principles: Loop Gain The attenuation of the phase shift network is combined with the gain of the amplifier, and any other elements such as a controller, to give a total called the loop gain If the gain is 1 we say unity gain We have added 1x = 4dB gain to the circuit If the phase shift is not as much as -18º for unity loop gain, the loop will not oscillate In the example it is -225º If the gain is less than 1 where the phase shift is -18º the device will not oscillate In the example the gain is 6dB = 2x So the circuit will oscillate / is unstable Gain db Phase degrees 5 4 3 2 1-1 -2-3 -4-5 -6-3 -6-9 -12-15 -18-21 -24-27 -3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15

Basic Principles: Phase Margin Switched mode power supplies are required to be stable. Oscillation is not desired If the phase shift at unity loop gain is -179º the power supply will be stable BUT Changes in component values may bring it over the edge The closed loop response would have a very large overshoot, long settling time, and significant ringing The phase margin is defined as 18º minus the absolute phase shift at unity gain If the phase shift is -13º, the phase margin is 5º So if the phase shift increases by 5º the loop will oscillate Gain db Phase degrees 4 3 2 1-1 -2-3 -4-5 -6-7 -3-6 -9-12 -15-18 -21-24 -27-3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 16

Close Up View to Show Phase Margin Phase degrees -3-6 -9-12 -15 Phase margin of around 5º -18-21 -24-27 -3 1 1 1 1 1 1 1 17

Step Response for Second Order System 1.6 Unit step response 1.4 1.2 1.8.6.4.2 PM = 3 degrees PM = 4 degrees PM = 5 degrees PM = 58 degrees PM = 66 degrees PM = 7 degrees PM = 74 degrees PM = 76 degrees 5 1 t x 2 x f c 18 If fc is 3kHz 265us 53us If fc is 1kHz 796us 1592us (slower response)

Effect of Phase Margin on Overshoot and Timing The two plots show the relationships in a second order system for Phase margin and overshoot Time to first peak for a crossover frequency of 3kHz There is no peak for a phase margin above 78 degrees Overshoot 1% 9% 8% 7% 6% 5% 4% 3% 2% 1% % 2.5 1 2 3 4 5 6 7 8 For example, if we had 62º phase margin and a crossover frequency of 3kHz This would result in an overshoot of 7%, with a time to first peak of less than 5us 19 Time to first peak ms 2 1.5 1.5 1 2 3 4 5 6 7 8 Phase margin degrees

Basic Principles: Gain Margin The gain margin is defined as the attenuation at -18º phase shift So the 6dB attenuation gives a gain margin of 6 db Gain db 4 3 2 1-1 -2-3 -4-5 -6-7 1 1 1 1 1 1 1 If the gain rises by 6dB the loop will be unstable Phase degrees -3-6 -9-12 -15-18 -21-24 -27-3 1 1 1 1 1 1 1 2

Basic Principles: Laplace transforms We have used expressions for the transfer functions of the phase shift elements using j F(s) f(t)e st dt This form of the transfer function is valid for the sinusoidal steady state s j To be more general, we write transfer functions in terms of s when we are not specifically focused on sinusoids s for sinusoidal j steady state The transfer function F(s) of a system block F(s) is derived from the Laplace transform of f(t) The Laplace transform integral is shown for reference f(t) is the response of the system block to an impulse 21

Transfer Functions for Power Supplies Input Voltage Vg Output Current Io Power Supply Output Voltage Output Voltage Vo A power supply must respond to changes in three separate parameters. The transfer functions for these parameters needs to be known to understand these changes The input voltage Gvg(s) input to output The output current Zo(s) output impedance The output voltage The output voltage control loop is usually defined in terms of the control to output transfer function, and not the voltage error to output transfer function Voltage mode/duty cycle control Gvd(s) control to output Current mode/current programmed control Gvc(s) control to output 22

Output Control Loop Including Load and Line Effects Changes in load Zo(s) Changes in Vg Gvg(s) Desired Voltage + - Ve Gc(s) Vc Gpwm d Gvd(s) + - + Vo Output Voltage 23

Output Voltage Control Loop Desired Voltage Ve Vc d Gvd(s) Vo + Gc(s) Gpwm - Ic Gvc(s) Output Voltage There are four elements in the output voltage control loop The subtractor element, which generates an error signal by subtracting the desired voltage from the output voltage The compensator element, Gc(s), added by the designer to stabilize the loop and improve the loop performance (more about what this improvement gives us later) The PWM element Gpwm which defines the relationship between the compensator output signal and the duty cycle/current-mode control current (more about this later) The control-to-output transfer function Gvd(s) or Gvc(s) 24

Output Voltage Control Loop T(s) as Loop Gain Desired Voltage + - Gc(s) Gpwm Gvd(s) Output Voltage Desired Voltage + - T(s) = Gc(s).Gpwm.Gvd(s) Output Voltage 25

Composite Transfer Function for Power Supply vˆ vˆ T(s) ref T(s) 1 T(s) vˆ g Gvg(s) 1 T(s) Gc(s) Gpwm Gvd(s) î O Zo 1 T(s) The effect of changes in the set point, the input voltage and the output current on the output voltage is shown in the above equation The T(s) term corresponds the loop gain we have discussed in the introductory session In the basic session we plotted the frequency and phase of T(j) The open loop responses Gvg(s), Zo(s) and Gvd(s) are reduced by a factor of 1+T(s) if they are put into a unity gain closed loop. We will now review why this is important. 26

Importance of 1+T(s) If T(j) is large at low frequency, 1+T(j) will also be large at low frequency On a gain plot, it will be difficult to tell the difference The closed loop will make changes in the output voltage caused by changes in the input voltage 1+T(j) times smaller So a high gain helps to have a high rejection of changes in the input voltage, similarly for the output load, and disturbances in the duty cycle But gain cannot be high for all frequencies The loop would be unstable So we recommend high gain at low frequencies only, which gives good low frequency ripple rejection 27 Gain db 1+T(s) Gain db 1+T(j) 9 8 7 6 5 4 3 2 1 1 1 1 1 1 1 1 T(j) 1 8 6 4 2-2 -4-6 1 1 1 1 1 1 1

Power Supply Controller Requirements 1. Make the control loop stable Provided by adequate phase margin 2. Provide a sufficiently fast response Provided by sufficiently high crossover frequency 3. Provide an acceptable level of output damping Provided by adequate phase margin 4. Have a high gain to desensitize response to changes in line and load This is achievable in reality at low frequency 5. Minimize the steady state error to a step response This is achieved by an integrator pole (1/s term) in the controller This helps with low frequency rejection 28

Flyback Converter Design Example The next section focuses on the design of a controller for a continuous conduction mode (CCM) current mode flyback converter The design example will be covered in a number of steps 1. Selection of suitable parameters for the controller based on the gain and frequency plots discussed earlier 2. Implementation of the controller in an electronic circuit and discussion of some practical circuit aspects 3. Review of how the flyback circuit will respond to step changes in operating conditions 4. A review of how the operating conditions change these transfer functions 29

Plot For Uncompensated Current Mode Flyback Converter 1 5 Gpwm Gvc(s) Gain db -5-1 -15-2 -25 1 1 1 1 1 1 1 The starting point is the transfer function for a selected current mode CCM flyback converter Our objective is to design a compensator for this converter to improve its performance Because of our focus on building the controller, we will not discuss the CCM flyback transfer function right now As this is an important topic, we will review this later 3

Controller Elements Off-line power supplies based on flyback converters often use a feedback control circuit which provides the following elements 1. An integrator pole Improves low frequency rejection Minimizes steady state error to step response 2. A normal zero INCREASES the phase at the desired crossover frequency 3. A normal pole The pole and zero are treated together as a pair as will be shown 31

Normal (Left Half Plane) Zero at 1Hz Gain db 9 8 7 6 5 4 3 2 1 1 1 1 1 1 1 1 12 Phase degrees 9 6 3 32 1 1 1 1 1 1 1

Control Loop Optimization for Flyback Converter Step 1: Determine the loop gain without a compensator We will assume this is given to us for the moment This topic will be explored in detail later Step 2: Select the desired crossover frequency Step 3: Using the pole/zero pair, generate enough phase boost to ensure the correct phase margin at the desired crossover frequency Remember that the integrator pole will add -9º phase shift Step 4: Set the gain of the integrator to zero out the gain at the crossover frequency Step 5: Combine the elements and review the resulting response Tools to help with this Spreadsheet to generate the frequency and phase plots 33

Spreadsheet to Generate Frequency and Phase Plots For the chosen elements, fill in the one or two details Output PWM Gain Gain Integrator Pole Zero.182857 2 672 Hz (unity gain) 52 Hz 173 Active NO YES YES YES YES f/hz Gain db Phase deg Gain Inactive Gain Gain db Gain Gain db Phase deg Gain Gain db Phase deg Gain 1 82.56795-9.13439.182857-14.758 2 6.21 672. 76.547-9. 1.. -.11 1. 1.1 81.749-9.14783.182857-14.758 2 6.21 619.91 75.72-9. 1.. -.12 1. 1.2 8.98431-9.16127.182857-14.758 1 2 6.21 56. 74.964-9. 1.. -.13 1. 1.3 8.2896-9.17471.182857-14.758 2 6.21 5169.231 74.269-9. 1.. -.14 1. 1.4 79.64536-9.18815.182857-14.758 8 2 6.21 48. 73.625-9. 1.. -.15 1. 1.5 79.468-9.2159.182857-14.758 6 2 6.21 448. 73.26-9. 1.. -.17 1. 1.7 77.95891-9.22847.182857-14.758 2 6.21 3952.941 71.938-9. 1.. -.19 1. 1.9 76.99279-9.25535.182857-14.758 4 2 6.21 3536.842 7.972-9. 1.. -.21 1. 2 76.54725-9.26879.182857-14.758 2 2 6.21 336. 7.527-9. 1.. -.22 1. 2.2 75.71936-9.29566.182857-14.758 2 6.21 354.545 69.699-9. 1.. -.24 1. 2.5 74.6897-9.33598.182857-14.758 2 6.21 2688. 68.589-9. 1.. -.28 1. 2.8 73.62455-9.3763.182857-14.758 2 6.21 24. 67.64-9. 1.. -.31 1. -2 3 73.2525-9.4317.182857-14.758 2 6.21 224. 67.5-9. 1.. -.33 1. 3.3 72.19733-9.44349.182857-14.758-4 2 6.21 236.364 66.177-9. 1.. -.36 1. 3.7 71.2347-9.49724.182857-14.758 2 6.21 1816.216 65.183-9. 1.. -.41 1. -6 4 7.52623-9.53755.182857-14.758 2 6.21 168. 64.56-9. 1.. -.44 1. 4.4 69.69826-9.5913.182857-14.758 1 2 1 6.21 1 1527.273 1 63.678 1-9. 1 1. 1. -.48 1. Type YES to activate individual elements Gain db 34 The gain plot and phase plot (not shown here) are automatically calculated

Select the Desired Crossover Frequency The following plots show the uncompensated transfer function for our selected example 1 5 Set the crossover frequency fc to 3kHz The crossover frequency should be well below any RHP zeros The gain at 3kHz is -11.8dB The phase is -58º Gain db -5-1 -15-2 -25 1 1 1 1 1 1 1 The phase shift seems to be very low. However, we will be adding an integrator which gives a constant phase shift of -9º Select the desired phase margin to be 6º As we have -15º phase including the integrator, we need +3º phase shift 35 Phase degrees -3-6 -9 1 1 1 1 1 1 1

Phase Boost of Pole/Zero Pair The phase boost of a pole/zero pair is maximum at frequency fc where: fc 2 = fp x fz where fp > fz The pole should always have a higher frequency than the zero The further apart the pole and the zero are, the higher the phase boost Typical values for boost are 3º to 6º Formulas for calculating the gain and phase boost exist It is quicker putting in trial numbers with the spreadsheet to get to the answer 36 9 8 7 6 5 4 3 2 1 Phase boost degrees 1 1 1 fp/fz

Phase Boost of Pole/Zero Pair Resulting Data For our example, we need a phase boost of 3º Using the spreadsheet, activate just one pole and one zero Select the zero to be 1kHz to start Set up a formula to calculate the pole as 3*3/fz (where fc=3khz) Gain db 12 1 8 6 4 2 1 1 1 1 1 1 1 Moving the zero nearer to 3kHz generates less phase boost. Change the value until the desired phase boost is reached fz =1.7kHz (zero) and fp = 5.3kHz (pole) gives a phase boost of 3º Phase degrees 6 3 The gain at fc=3khz is read to be +4.78dB 37 1 1 1 1 1 1 1

Integrator Gain Chosen to Set the Gain At fc to 1 (db) 1 From before The gain of the uncompensated loop at fc = 3kHz is -11.8dB The gain of the pole/zero pair at fc = 3kHz is 4.78dB The total gain excluding the integrator is -7dB, so the integrator gain at 3kHz needs to be +7dB to compensate for this Gain db 8 6 4 2-2 -4-6 1 1 1 1 1 1 1 In the spreadsheet, adjust the integrator unity gain frequency to get 7dB gain at 3kHz The frequency which meets this, fi, is found to be 6.72kHz 38 Phase degrees -3-6 -9-12 1 1 1 1 1 1 1

Final Result The phase margin is 62º The crossover frequency is 3kHz The control loop is stable as the phase shift is less than -18º at the crossover frequency The control loop is fast The control loop is adequately damped Gain db 1 8 6 4 2-2 -4-6 1 1 1 1 1 1 1 The control loop has a high gain at low frequencies which Desensitizes the loop to low frequency changes in input voltage and output load Has a 1/s term in the loop gain which gives zero steady state error to a step response 39 Phase degrees -3-6 -9-12 -15-18 1 1 1 1 1 1 1

Implementation of the Controller Circuit + FPS + R1 R D R Bias v D Z F R O V O - F C B + v FB - R B C O R2 + v S - KA431 FOD2741 - This circuit shows how the controller is implemented in practice The output voltage Vo is fed into the potential divider formed by R1 and R2 The node formed by R1 and R2 is set to 2.5V by the KA431 reference The division ratio of R1/(R1+R2) is selected to give 2.5V at the desired output voltage For example, for 5V output, R1 and R2 are set to be equal Small signal increases in the output voltage cause small signal increases in the optocoupler LED current which are transmitted to the PWM controller (on the left) via the optocoupler This reduces the PWM controller Vfb voltage, which will then ultimately reduce the output voltage 4

Small Signal Transfer Function for Generic Circuit V bias I FB v FB R D i bias v o R bias i D R B C B i D 1:1 B Z F R 1 A + v 1 i ce - R 2 V ref ^ v ^ v FB o 41 Zf R R 1 D R B RB CTR C s 1 B

Small Signal Transfer Function for Standard Circuit VOUT IC1 FSDM265RN RD 22R.25W Rbias 1K.25W VStr VCC VFB IC2 H11A817A.W R1 82R.25W RF CF V(Hot) CB 33nF 5V IC3 KA431LZ 2K2.25W 1nF 5V ^ v ^ v FB o RB R R C 1 D F s (R F R1)CFs 1 CTR R C s 1 B B R2 1K2.25W 42 V(Hot) V

Setting the Values of the Compensator Components Choosing the component which sets fp RB is internal to the FPS (3kohm) Set CB for the right value of fp Choosing the components which set fi R1 is typically in the range 1k-1k, as a tradeoff between power consumption and noise immunity RD is set by the DC bias current requirements for the optocoupler photodiode Choose CF and R1 to get the right integrator unity gain frequency fp fi fz 1 2R B R1R DC 2R 2(R B F C F B 1 R 1 )C F Choosing the components which set fz Choose RF to get the right value of fz 43

Practical Comments on the Controller Circuit Two components have no effect on the small signal transfer function R2, the lower resistor in the potential divider Rbias, the bias resistor for the KA431 Practical tip: if the output voltage needs to be modified, change or vary R2 rather than R1 The optocoupler generates the main source of variability The CTR will vary from device to device and will reduce with temperature The small signal resistance of the photodiode adds to RD in the formula. This resistance can vary from 5 ohms at light load to 5 kohm at heavy load 44

Practical Tips Regarding the Optocoupler Check the design at both light and heavy loads, and at temperature extremes. Check the output response for stability and adequate damping. The optocoupler current transfer ratio, dynamic resistance of the photodiode, and the effect on temperature of these two parameters all influence the closed loop performance These aspects should be considered when considering multiple optocoupler suppliers If the output voltage is far higher than the setpoint, an isolated converter will drive the optocoupler into saturation Confirm that the duty cycle is driven to zero in this condition 45

Characteristics of a Photo Diode 1 I-V curve of a photo-diode I D = 2.25E-13*exp(V D /.484) Resistance of a Photo-Diode 9 8 7 dv D / di D =.484 / I 6 1 I D [ua] 5 4 R [Ohm] 3 2 1 1 2 4 6 8 1 12 V D [mv] 2 4 6 8 1 I D [ua] 46

Low Cost Compensator Circuit FSDL165RN 5 VStr VCC 2 VOUT VFB 3 D2 12V.5W CB R1 15nF 5V Q2 BC847B 1K.25W R2 1R.25W 47

Practical Comments on the Low Cost Compensator Advantages Low cost Low component count Characteristics The transfer function consists of a gain term, and a single pole There is therefore no integrator term, or a zero Disadvantages Slower response Larger voltage output variation due to changes in load and line The lack of a 1/s term in the controller forces a larger steady state error 48

Gain of PWM Stage For complete analysis of the controller, we need to include the gain introduced by the PWM stage This sets the averaged signal relationship between the feedback voltage and the duty cycle For a voltage mode PWM controller, this is 1/Vm, where Vm is the (theoretical) voltage required to generate 1% dut y cycle. So Vm ranges between 3.5V/6% and 3.5V/68% for the FSD2 shown above For a current mode FPS, this gain is the current limit of the FPS divided by 3V (the maximum compensator output voltage) 49

Response to Step Changes So far, we have reviewed the open and closed loop frequency responses of the flyback converter It is important to assess how these frequency responses affect the actual waveforms we will see on an oscilloscope when the input voltage or the load changes A formal mathematical analysis is one way of seeing how the closed loop transfer function affects the response to changes in inputs This is done using inverse Laplace transforms and is quite detailed A simpler way is to approximate the closed loop transfer function to a simple second order system This is not always accurate, but gives us insight into several important aspects 5

Effect of Phase Margin on Overshoot and Timing The two plots show the relationship between Phase margin and overshoot Time to first peak for a crossover frequency of 3kHz There is no peak for a phase margin above 78 degrees For our example, we had 62º phase margin This would result in an overshoot of 7%, with a time to first peak of less than 5us 51 Overshoot 1% 9% 8% 7% 6% 5% 4% 3% 2% 1% % Time to first peak ms 2.5 2 1.5 1.5 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Phase margin degrees

Controlling Lower Input Voltage Topologies We used a CCM current mode flyback example to explain the control methodology in detail Our example used an off-line system The same approach can be used to handle a wide range of topologies Fairchild Semiconductor s FAN5234/FAN5236 synchronous buck controller can be used for example to convert 24Vdc down to 3.3V The FAN5234/FAN5236 uses the same type of control as discussed above using a built-in controller External compensation is possible if needed A spreadsheet and Orcad PSPICE simulation setup is available for this part on http://www.fairchildsemi.com/collateral/an-62.zip 52

Output Control Loop Including Load and Line Effects Changes in load Zo(s) Changes in Vg Gvg(s) Desired Voltage + - Ve Gc(s) Vc Gpwm d Gvd(s) + - + Vo Output Voltage 53

Comments on the Control-to-Output Transfer Functions The transfer functions for the common topologies buck, buck-boost, flyback and boost topologies are available in the literature Erickson and Maksimovic (see Literature at end) Fundamentals of Power Electronics details the methodology of the derivation which can be applied to other topologies The transfer functions for a given topology split up into four sets Voltage mode CCM Current mode CCM Voltage mode DCM Current mode DCM 54

CCM Current Mode Flyback Transfer Function The CCM current mode transfer functions are taken from a standard reference Erickson and Maksimovic page 471 shows CCM transfer functions for buck/boost, buck and boost Fairchild Semiconductor FPS app note shows how the turns ratio is introduced and shows these equations in rearranged form as will be discussed below The positions of the poles, zeros and gains are dependent on D, the actual duty cycle which varies with input voltage, and in practice, also with load R, the effective load resistance, which depends on the load current 55 G where G f f vc c rhpzero pole G c 1 1 D D 2 ( 1 D) R 2DL 1 D 2RC s 1 2 f s 1 2 f n n p s R p rhpzero pole n n 2 p 2 s gain RHP zero pole

CCM Current Mode Flyback Transfer Function A CCM flyback converter working in current mode has A gain, dependent on duty cycle and independently, the load A pole, dependent on duty cycle and load A right half plane zero, dependent on duty cycle and load The duty cycle in CCM is dependent mainly on the input voltage, and to some extent the variations in losses as the load changes In general, the transfer function of a switching regulator will vary significantly under load and line conditions An additional complexity is that under light load conditions, the converter will switch to DCM operation, further changing the transfer function The changes for current mode controllers are less than for voltage mode controllers 56

Flyback and Buck-Boost Gvd(s) and Gvc(s) Structure Voltage mode CCM Gvd(s) Current mode CCM Gvc(s) Gain RHP Zero max 9º Complex pole max 18º Gain RHP Zero max 9º Single pole max 9º Voltage mode DCM Gvd(s) Current mode DCM Gvc(s) Gain Single pole max 9º Gain Single pole max 9º 57

Buck Gvd(s) and Gvc(s) Structure Voltage mode CCM Gvd(s) Current mode CCM Gvc(s) Gain Complex pole max 18º Gain Single pole max 9º Voltage mode DCM Gvd(s) Current mode DCM Gvc(s) Gain Single pole max 9º Gain Single pole max 9º 58

How to Estimate D in Terms of Vo and Vg The duty cycle is an unknown parameter We know the input voltage Vg, the output voltage Vo and the turns ratio n We know the voltage conversion relationship for a flyback converter This can be derived from first principles or taken from a standard text Based on this, we can rewrite the gain, pole and zero equations in terms of Vg, Vo and n. V V D n V o g RO 1 1 D D nv nv n n p D n( 1 D) s o nv o o V 2nV g V o g V g 2V V RO g V g 59

Gvc(s) for Multiple Output Flyback The transfer function is now written in the form used in the Fairchild Power Switch Designer tool and application note As flyback very often have multiple outputs, the load resistance is calculated in a slightly different way than for a single output solution Po is the total output power for all outputs Vo here is the output voltage for the controlled outputs The total effective load resistance R is calculated as shown G f f c rhpzero pole R V P 2nV 2 o o V o g 1 D 2RC V g 2 ( 1 D) R 2DL p n n p s n n 2 p 2 s 2 o V P o 6

How the Parameters Change with Line and Load The table shows how the input voltage and output power influence the transfer function The right half plane zero dramatically reduces at lower input voltages and at higher powers The simple pole frequency increases with increasing power and to a lesser extent with decreasing input voltages The gain increases with input voltage and input power In our FPS design tools, the plots are calculated for maximum power, minimum voltage Vg 12 375 12 375 12 375 V Po 16 16 1 1 5 5 W Gain 1.8 2.8 2.9 4.6 5.9 9.1 ratio Frhp 5,493 54,299 22,923 226,843 183,385 1,814,742 Hz Fp 469 398 291 247 146 124 Hz 61

Further Issues to Consider Effect of the equivalent series resistance of the output capacitor This introduces a zero into the transfer function This is no problem if the zero has a frequency much higher than fc The frequency is 1 / (2 x ESR x Cout) In our example we included this: ESR=38mohm Cout=68uF (6.2kHz) This is included in our FPS analysis software For a flyback converter, the effect of the output LC filter used to filter the spikes generated by the equivalent series resistor of the flyback capacitor This is no problem if the pole has a frequency much higher than fc The frequency is 1 / (2 x sqrt(lc)) The effect of the input filter Incorrectly dimensioned input filters can destabilize a power supply 62

Effect of Input Filter on the Stability of a Converter The detailed analysis of this is quite complex Erickson and Maksimovic (p382) propose a simplified methodology to determine whether the stability of a power supply is adversely influenced by the input filter Explained in graphical terms Plot the curves for the input impedance of the converter for three defined conditions Zn(j) (with d(s) set to ) Zd(j) (with d(s) set such that v(s) = ) Ze(j) (with Vout shorted to V) These terms depend on the load resistance, the inductor value, the capacitor value and the duty cycle Plot the curve for the output impedance of the input filter, Zo(j) The curve for Zo(j) should be well below the other curves 63

Graphical Analysis of the Effect of the Input Filter Impedance db-ohms 1 8 6 4 2-2 -4-6 -8 1 1 1 1 1 1 1 ZE dbohm ZN dbohm ZD dbohm ZO dbohm 64

Practical Comments on the Input Filter To prevent any problems: The input filter should be sufficiently damped Natural damping comes from the capacitor and inductor ESR s In some cases, extra damping resistors must be added The frequency of the input filter should be chosen to be well away from the resonant frequency of Zd The resonant frequency of Zd depends on the topology and can be checked from tables provided in the appendix For a voltage mode buck, the resonant frequency is 1/(2 x sqrt(lc)) where L and C are the values of the buck output elements 65

Input Filter with 1 Ohm Damping Prevents Stability Problem Impedance db-ohms 1 8 6 4 2-2 -4-6 -8 1 1 1 1 1 1 1 ZE dbohm ZN dbohm ZD dbohm ZO dbohm 66

Schematic for Damping Element Lf Lf Power In C Cf Power In Cf R Power Out ESR Power Out For low ESR capacitors Erickson and Maksimovic recommend an extra C and series resistance For high ESR capacitors, the intrinsic ESR will in practice provide enough damping 67

Literature We have referred to the following book Fundamentals of Power Electronics, Second Edition, Erickson & Maksimovic, Kluwer Academic Publishers, 21, ISBN -7923-727- Among other things, the book explains in detail the derivation of the models behind the transfer functions, and in many cases the transfer functions themselves. 68