Chapter 9. Controller Design 9.1. Introduction 9.2. Effect of negative feedback on the network transfer functions 9.2.1. Feedback reduces the transfer function from disturbances to the output 9.2.2. Feedback causes the transfer function from the reference input to the output to be insensitive to variations in the gains in the forward path of the loop 9.3. Construction of the important quantities 1/(1T) and T/(1T) and the closed-loop transfer functions 1
Controller design 9.4. Stability 9.4.1. The phase margin test 9.4.2. The relation between phase margin and closed-loop damping factor 9.4.3. Transient response vs. damping factor 9.5. Regulator design 9.5.1. Lead (PD) compensator 9.5.2. Lag (PI) compensator 9.5.3. Combined (PID) compensator 9.5.4. Design example 2
Controller design 9.6. Measurement of loop gains 9.6.1. Voltage injection 9.6.2. Current injection 9.6.3. Measurement of unstable systems 9.7. Summary of key points 3
9.1. Introduction v g (t) Ð Switching converter v(t) Ð Load i load (t) Output voltage of a switching converter depends on duty cycle d, input voltage v g, and load current i load. d(t) d(t) transistor gate driver pulse-width modulator v c (t) v g (t) switching converter v(t) = f(v g, i load, d) dt s T s } t v(t) disturbances i load (t) d(t) } control input 4
The dc regulator application Objective: maintain constant output voltage v(t) = V, in spite of disturbances in v g (t) and i load (t). v g (t) i load (t) switching converter v(t) = f(v g, i load, d) } disturbances v(t) Typical variation in v g (t): 100Hz or 120Hz ripple, produced by rectifier circuit. d(t) } control input Load current variations: a significant step-change in load current, such as from 50% to 100% of rated value, may be applied. A typical output voltage regulation specification: 5V ± 0.1V. Circuit elements are constructed to some specified tolerance. In high volume manufacturing of converters, all output voltages must meet specifications. 5
The dc regulator application So we cannot expect to set the duty cycle to a single value, and obtain a given constant output voltage under all conditions. Negative feedback: build a circuit that automatically adjusts the duty cycle as necessary, to obtain the specified output voltage with high accuracy, regardless of disturbances or component tolerances. 6
Negative feedback: a switching regulator system Power input Switching converter Load i load v g Ð v Ð H(s) sensor gain transistor gate driver d pulse-width modulator v c G c (s) compensator error signal v e Ð Hv reference input v ref 7
Negative feedback switching converter v g (t) v(t) = f(v g, i load, d) v ref reference input error signal v e (t) v c Ð compensator pulse-width modulator i load (t) d(t) } disturbances } control input v(t) sensor gain 8
9.2. Effect of negative feedback on the network transfer functions Small signal model: open-loop converter e(s) d(s) Ð 1 : M(D) L e v g (s) Ð j(s) d(s) C v(s) R i load (s) Ð Output voltage can be expressed as where v(s)=g vd (s) d(s)g vg (s) v g (s)±z out (s) i load (s) G vd (s)= v(s) d(s) v g =0 i load =0 G vg (s)= v(s) v g (s) d=0 i load =0 Z out (s)=± v(s) i load (s) d =0 v g =0 9
Voltage regulator system small-signal model Use small-signal converter model e(s) d(s) Ð 1 : M(D) L e Perturb and linearize remainder of feedback loop: v g (s) Ð j(s) d(s) C v(s) Ð R i load (s) v ref (t)=v ref v ref (t) v e (t)=v e v e (t) etc. v ref (s) reference input Ð error signal v e (s) G c (s) v c (s) compensator 1 V M pulse-width modulator d(s) H(s) v(s) H(s) sensor gain 10
Regulator system small-signal block diagram i load (s) load current variation v ref (s) reference input Ð compensator v e (s) error signal G c (s) v c (s) v g (s) ac line variation pulse-width modulator 1 d(s) V M duty cycle variation Z out (s) G vg (s) Ð G vd (s) converter power stage v(s) output voltage variation H(s) v(s) H(s) sensor gain 11
Solution of block diagram Manipulate block diagram to solve for v(s). Result is v = v ref G c G vd / V M 1HG c G vd / V M v g G vg 1HG c G vd / V M ± i load Z out 1HG c G vd / V M which is of the form v = v ref 1 H T 1T v g G vg 1T ±i load Z out 1T with T(s)=H(s)G c (s)g vd (s)/v M ="loop gain" Loop gain T(s) = products of the gains around the negative feedback loop. 12
9.2.1. Feedback reduces the transfer functions from disturbances to the output Original (open-loop) line-to-output transfer function: G vg (s)= v(s) v g (s) d=0 i load =0 With addition of negative feedback, the line-to-output transfer function becomes: v(s) v g (s) v ref =0 i load =0 = G vg(s) 1T(s) Feedback reduces the line-to-output transfer function by a factor of 1 1T(s) If T(s) is large in magnitude, then the line-to-output transfer function becomes small. 13
Closed-loop output impedance Original (open-loop) output impedance: Z out (s)=± With addition of negative feedback, the output impedance becomes: v(s) ±i load (s) v ref =0 v g =0 Feedback reduces the output impedance by a factor of 1 1T(s) v(s) i load (s) d =0 v g =0 = Z out(s) 1T(s) If T(s) is large in magnitude, then the output impedance is greatly reduced in magnitude. 14
9.2.2. Feedback causes the transfer function from the reference input to the output to be insensitive to variations in the gains in the forward path of the loop Closed-loop transfer function from to v(s) is: v ref v(s) v ref (s) v g =0 i load =0 = 1 H(s) T(s) 1T(s) If the loop gain is large in magnitude, i.e., T >> 1, then (1T)» T and T/(1T)» T/T = 1. The transfer function then becomes v(s) v ref (s)» 1 H(s) which is independent of the gains in the forward path of the loop. This result applies equally well to dc values: V V ref = 1 H(0) T(0) 1T(0)» 1 H(0) 15
9.3. Construction of the important quantities 1/(1T) and T/(1T) Example T 80dB 60dB T 0 db Q db T(s)=T 0 1 s Qw p1 1 s w z s w p1 2 1 s w p2 40dB 20dB 0dB f p1 Ð 40dB/dec f z Ð 20dB/dec Ð20dB f c crossover frequency f p2 Ð 40dB/dec Ð40dB 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f At the crossover frequency f c, T = 1 16
Approximating 1/(1T) and T/(1T) T 1T» 1 for T >> 1 T for T << 1 1 1T(s)» 1 for T >> 1 T(s) 1 for T << 1 17
Example: construction of T/(1T) 80 db 60 db T 1T» 1 for T >> 1 T for T << 1 40 db f p1 T 20 db 0 db Ð20 db T 1T f z Ð 20 db/decade Crossover frequency f c f p2 Ð 40 db/decade Ð40 db 1 Hz 10 Hz 100 Hz 1 khz 10 khz 100 khz f 18
Example: analytical expressions for approximate reference to output transfer function At frequencies sufficiently less that the crossover frequency, the loop gain T(s) has large magnitude. The transfer function from the reference to the output becomes v(s) v ref (s) = 1 H(s) v(s) v ref (s) = 1 H(s) 19 T(s) 1T(s)» 1 H(s) This is the desired behavior: the output follows the reference according to the ideal gain 1/H(s). The feedback loop works well at frequencies where the loop gain T(s) has large magnitude. At frequencies above the crossover frequency, T < 1. The quantity T/(1T) then has magnitude approximately equal to 1, and we obtain T(s) 1T(s)» T(s) H(s) =G c(s)g vd (s) V M This coincides with the open-loop transfer function from the reference to the output. At frequencies where T < 1, the loop has essentially no effect on the transfer function from the reference to the output.
Same example: construction of 1/(1T) 80 db 60 db 40 db 20 db 0 db Ð20 db T 0 db f p1 Ð 40 db/decade 40 db/decade Q db T f z Ð 20 db/decade 20 db/decade f z f c Crossover frequency 1 1T(s)» f p2 1 for T >> 1 T(s) 1 for T << 1 Ð 40 db/decade Ð40 db Ð60 db Ð T 0 db f p1 Q db 1 1T Ð80 db 1 Hz 10 Hz 100 Hz 1 khz 10 khz 100 khz f 20
Interpretation: how the loop rejects disturbances Below the crossover frequency: f < f c and T > 1 Then 1/(1T)» 1/T, and disturbances are reduced in magnitude by 1/ T Above the crossover frequency: f > f c and T < 1 Then 1/(1T)» 1, and the feedback loop has essentially no effect on disturbances 1 1T(s)» 1 for T >> 1 T(s) 1 for T << 1 21
Terminology: open-loop vs. closed-loop Original transfer functions, before introduction of feedback (Òopen-loop transfer functionsó): G vd (s) G vg (s) Z out (s) Upon introduction of feedback, these transfer functions become (Òclosed-loop transfer functionsó): 1 H(s) T(s) 1T(s) G vg (s) 1T(s) Z out (s) 1T(s) The loop gain: T(s) 22
9.4. Stability Even though the original open-loop system is stable, the closed-loop transfer functions can be unstable and contain right half-plane poles. Even when the closed-loop system is stable, the transient response can exhibit undesirable ringing and overshoot, due to the high Q -factor of the closedloop poles in the vicinity of the crossover frequency. When feedback destabilizes the system, the denominator (1T(s)) terms in the closed-loop transfer functions contain roots in the right half-plane (i.e., with positive real parts). If T(s) is a rational fraction of the form N(s) / D(s), where N(s) and D(s) are polynomials, then we can write T(s) 1T(s) = N(s) D(s) 1 N(s) D(s) 1 1T(s) = 1 1 N(s) D(s) = = N(s) N(s)D(s) D(s) N(s)D(s) Could evaluate stability by evaluating N(s) D(s), then factoring to evaluate roots. This is a lot of work, and is not very illuminating. 23
Determination of stability directly from T(s) Nyquist stability theorem: general result. A special case of the Nyquist stability theorem: the phase margin test Allows determination of closed-loop stability (i.e., whether 1/(1T(s)) contains RHP poles) directly from the magnitude and phase of T(s). A good design tool: yields insight into how T(s) should be shaped, to obtain good performance in transfer functions containing 1/(1T(s)) terms. 24
9.4.1. The phase margin test A test on T(s), to determine whether 1/(1T(s)) contains RHP poles. The crossover frequency f c is defined as the frequency where T(j2pf c ) = 1 Þ 0dB The phase margin j m is determined from the phase of T(s) at f c, as follows: j m = 180û ÐT(j2pf c ) If there is exactly one crossover frequency, and if T(s) contains no RHP poles, then the quantities T(s)/(1T(s)) and 1/(1T(s)) contain no RHP poles whenever the phase margin j m is positive. 25
Example: a loop gain leading to a stable closed-loop system T 60dB 40dB T Ð T 20dB f p1 f z crossover frequency 0dB Ð T f c 0û Ð20dB Ð90û Ð40dB j m Ð180û Ð270û 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz ÐT(j2pf c ) = Ð112û j m = 180û Ð 112û = 68û f 26
Example: a loop gain leading to an unstable closed-loop system T 60dB 40dB T Ð T 20dB f p1 f p2 crossover frequency 0dB Ð T f c 0û Ð20dB Ð90û Ð40dB j m (< 0) Ð180û Ð270û 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz ÐT(j2pf c ) = Ð230û j m = 180û Ð 230û = Ð50û f 27
9.4.2. The relation between phase margin and closed-loop damping factor How much phase margin is required? A small positive phase margin leads to a stable closed-loop system having complex poles near the crossover frequency with high Q. The transient response exhibits overshoot and ringing. Increasing the phase margin reduces the Q. Obtaining real poles, with no overshoot and ringing, requires a large phase margin. The relation between phase margin and closed-loop Q is quantified in this section. 28
A simple second-order system Consider the case where T(s) can be wellapproximated in the vicinity of the crossover frequency as T(s) = 1 s w 0 1 s w 2 40dB T f 0 T Ð T f 20dB 0dB Ð20dB Ð40dB Ð 20dB/decade Ð T Ð 90û f 0 f 2 / 10 f f 2 j m f 2 f 0 f 2 f 2 Ð 40dB/decade 10 f 2 0û Ð90û Ð180û Ð270û 29
Closed-loop response If Then or, T(s) = 1 s w 0 1 s w 2 T(s) 1T(s) = 1 1 1 T(s) T(s) 1T(s) = 1 1 s Qw c = 1 1 s w 0 s2 w 0 w 2 s w c 2 where w c = w 0 w 2 =2pf c Q= w 0 w c = w 0 w 2 30
Low-Q case Q = w 0 w c = 40dB 20dB w 0 w 2 low-q approximation: Q w c = w w c 0 Q = w 2 T Ð 20dB/decade f 0 f 0dB Ð20dB T 1T f 0 f c = f 0 f 2 Q = f0 / fc f 2 Ð40dB f 0 f 2 f 2 Ð 40dB/decade f 31
High-Q case w c = w 0 w 2 =2pf c Q= w 0 w c = w 0 w 2 60dB 40dB T Ð 20dB/decade f 0 f 20dB f 2 0dB Ð20dB Ð40dB T 1T f c = f 0 f 2 f f 0 f 2 f 2 f 0 Q = f 0 / f c Ð 40dB/decade 32
Q vs. j m Solve for exact crossover frequency, evaluate phase margin, express as function of j m. Result is: Q = cos j m sin j m j m =tan -1 1 14Q 4 2Q 4 33
Q vs. j m Q 20dB 15dB 10dB 5dB 0dB -5dB Q = 1 Þ 0dB j m = 52û Q = 0.5 Þ Ð6dB -10dB j m = 76û -15dB -20dB 0 10 20 30 40 50 60 70 80 90 j m 34
9.4.3. Transient response vs. damping factor Unit-step response of second-order system T(s)/(1T(s)) v(t)=1 2Qe-w c t/2q 4Q 2 ±1 sin 4Q 2 ±1 2Q w c ttan -1 4Q 2 ±1 Q > 0.5 v(t)=1± w 2 w 2 ±w 1 e ±w 1 t ± w 1 w 1 ±w 2 e ±w 2 t Q < 0.5 w 1,w 2 = w c 2Q 1± 1±4Q2 For Q > 0.5, the peak value is peak v(t)=1e ±p/ 4Q2 ±1 35
Transient response vs. damping factor v(t) 2 1.5 Q=50 Q=10 Q=4 Q=2 1 0.5 0 Q=1 Q=0.75 Q=0.5 Q=0.3 Q=0.2 Q=0.1 Q=0.05 Q=0.01 0 5 10 15 w c t, radians 36
9.5. Regulator design Typical specifications: Effect of load current variations on output voltage regulation This is a limit on the maximum allowable output impedance Effect of input voltage variations on the output voltage regulation This limits the maximum allowable line-to-output transfer function Transient response time This requires a sufficiently high crossover frequency Overshoot and ringing An adequate phase margin must be obtained The regulator design problem: add compensator network G c (s) to modify T(s) such that all specifications are met. 37
9.5.1. Lead (PD) compensator 1 s w z G c (s)=g c0 1 s w p G c G c0 G c0 f p f z f p f jmax Improves phase margin 0û 45û/decade f z /10 f z = f z f p f p /10 10f z Ð 45û/decade Ð G c f 38
Lead compensator: maximum phase lead maximum phase lead 90û 75û f jmax = f z f p 60û 45û 30û Ð G c ( f jmax ) = tan -1 f p f z ± 2 f z f p 15û 0û 1 10 100 1000 f p / f z f p f z = 1 sin q 1 ± sin q 39
Lead compensator design To optimally obtain a compensator phase lead of q at frequency f c, the pole and zero frequencies should be chosen as follows: 1 ± sin q f z = f c f p = f c 1 sin q 1 sin q 1 ± sin q G c G c0 G c0 f z f p f z f jmax = f z f p f p If it is desired that the magnitude of the compensator gain at f c be unity, then G c0 should be chosen as 0û Ð G c 45û/decade f z /10 f p /10 10f z Ð 45û/decade G c0 = f z f p f 40
Example: lead compensation 60dB 40dB T T 0 G c0 original gain T Ð T 20dB T 0 compensated gain f 0 0dB f z f c Ð20dB Ð40dB Ð T 0û compensated phase asymptotes f p 0û original phase asymptotes Ð90û j m Ð180û Ð270û f 41
9.5.2. Lag (PI) compensation G c (s)=g c 1 w L s G c Improves lowfrequency loop gain and regulation Ð 20dB /decade f L G c 10f L 0û Ð G c Ð 90û f L /10 45û/decade f 42
Example: lag compensation original (uncompensated) loop gain is T T u (s)= u0 1 w s 0 40dB 20dB 0dB T T u T u0 f L f 0 f 0 G c T u0 f c compensator: Ð20dB 90û G c (s)=g c 1 w L s Design strategy: choose Ð40dB G c to obtain desired crossover frequency w L sufficiently low to maintain adequate phase margin Ð T u Ð T 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 10 f L 10 f 0 j m 0û Ð90û Ð180û 43
Example, continued Construction of 1/(1T), lag compensator example: 40dB T 20dB f L f 0 G c T u0 0dB f c Ð20dB Ð40dB 1 1T f L f 0 1 G c T u0 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 44
9.5.3. Combined (PID) compensator 40dB 20dB 0dB G c (s)=g cm G c Ð G G c c G cm 1 w L s 1 w s z 1 w s p1 1 w s p2 f L f z f c f p1 f p2 Ð20dB 45û/dec 10f L 10f z f p2 /10 90û Ð40dB Ð G c Ð 90û f L /10 f z /10 90û/dec f p1 /10 Ð 90û/dec 10f p1 0û Ð90û Ð180û f 45
9.5.4. Design example L 50mH i load v g (t) 28V Ð transistor gate driver d pulse-width modulator C 500mF f s = 100kHz V M = 4V v c G c (s) v(t) Ð compensator error signal v e R 3W Ð v ref 5V Hv H(s) sensor gain 46
Quiescent operating point Input voltage V g = 28V Output V = 15V, I load = 5A, R = 3W Quiescent duty cycle D = 15/28 = 0.536 Reference voltage V ref = 5V Quiescent value of control voltage V c = DV M = 2.14V Gain H(s) H = V ref /V = 5/15 = 1/3 47
Small-signal model V D 2 d Ð 1 : D L v g (s) Ð V R d C v(s) R i load (s) Ð v ref (=0) Ð error signal v e (s) G c (s) v c (s) compensator 1 V M V M = 4V d(s) T(s) H(s) v(s) H(s) H = 1 3 48
Open-loop control-to-output transfer function G vd (s) G vd (s)= V D standard form: 1 1s L R s2 LC G vd (s)=g 1 d0 1 s Q 0 w s 0 w 0 salient features: 2 60dBV G vd Ð G vd 40dBV 20dBV 0dBV Ð20dBV Ð40dBV G vd Ð G vd G d0 = 28V Þ 29dBV f 0 10 ±1/2Q 0 f 0 = 900Hz 10 1/2Q 0 f 0 = 1.1kHz Q 0 = 9.5 Þ 19.5dB 0û Ð90û Ð180û Ð270û G d0 = D V =28V f 0 = w 0 2p = 1 2p LC = 1kHz Q 0 = R C = 9.5 Þ 19.5dB L 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 49
Open-loop line-to-output transfer function and output impedance G vg (s)=d 1 1s L R s2 LC Ñsame poles as control-to-output transfer function standard form: G vg (s)=g 1 g0 1 s Q 0 w s 0 w 0 Output impedance: Z out (s)=r 1 sc sl = 2 sl 1s L R s2 LC 50
System block diagram T(s)=G c (s) 1 VM G vd (s) H(s) T(s)= G c(s)h(s) V 1 V M D 1 s Q 0 w s 0 w 0 2 v g (s) ac line variation G vg (s) i load (s) Z out (s) load current variation v ref (=0) V M = 4V v e (s) v c (s) 1 d(s) Ð G c (s) V M duty cycle variation T(s) H = 1 3 Ð G vd (s) converter power stage v(s) H(s) 51
Uncompensated loop gain (with G c = 1) With G c = 1, the loop gain is T u (s)=t 1 u0 1 s Q 0 w s 0 w 0 T u0 = HV DV M = 2.33 Þ 7.4dB 40dB T u Ð T u 2 20dB 0dB Ð20dB Ð40dB T u Ð T u T u0 2.33 Þ 7.4dB 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f f 0 1kHz 0û 10 ± 1 2Q f 0 = 900Hz f c = 1.8kHz, j m = 5û 10 1 2Q f 0 = 1.1kHz Q 0 = 9.5 Þ 19.5dB Ð 40 db/decade 0û Ð90û Ð180û Ð270û 52
Lead compensator design Obtain a crossover frequency of 5kHz, with phase margin of 52û T u has phase of approximately -180û at 5kHz, hence lead (PD) compensator is needed to increase phase margin. Lead compensator should have phase of 52û at 5kHz T u has magnitude of -20.6dB at 5kHz Lead compensator gain should have magnitude of 20.6dB at 5kHz Lead compensator pole and zero frequencies should be f z = (5kHz) f p = (5kHz) 1 ± sin (52 ) 1 sin (52 ) = 1.7kHz 1 sin (52 ) 1 ± sin (52 ) = 14.5kHz Compensator dc gain should be G c0 = f c f 0 2 1 T u0 f z f p = 3.7 Þ 11.3dB 53
Lead compensator Bode plot 40dB G c Ð G G c c0 f f G c z p 20dB 0dB G c0 fz f p f c = f z f p Ð20dB Ð40dB 0û f z /10 f p /10 10f z 90û 0û Ð G c Ð90û Ð180û 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 54
Loop gain, with lead compensator 40dB T Ð T T T 0 = 8.6 Þ 18.7dB Q 0 = 9.5 Þ 19.5dB 20dB T(s)=T u0 G c0 1 s w p 1 1 s w z s Q 0 w 0 s w 0 2 0dB Ð20dB Ð40dB Ð T 0û 170Hz f 0 f z 1kHz 1.7kHz f c 5kHz 900Hz f p 14kHz 0û 1.4kHz 17kHz j 1.1kHz m =52û Ð90û Ð180û Ð270û 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 55
1/(1T), with lead compensator 40dB 20dB 0dB Ð20dB T T 0 = 8.6 Þ 18.7dB 1 1T 1 / T 0 = 0.12 Þ Ð 18.7dB f 0 f z Q 0 = 9.5 Þ 19.5dB f c f p need more low-frequency loop gain hence, add inverted zero (PID controller) Q 0 Ð40dB 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 56
Improved compensator (PID) 40dB G c G c Ð G c 20dB 0dB Ð20dB Ð40dB Ð G c Ð 90û 1 w s 1 w L z s G c (s)=g cm f L /10 G cm f z /10 f L 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f f z 90û/dec 1 s w p f p /10 f c 10f L 45û/dec 10f z f p Ð 45û/dec 90û 0û Ð90û Ð180û add inverted zero to PD compensator, without changing dc gain or corner frequencies choose f L to be f c /10, so that phase margin is unchanged 57
T(s) and 1/(1T(s)), with PID compensator 60dB 40dB T 20dB Q 0 0dB f L f 0 fz f c Ð20dB Ð40dB 1 1T Q 0 f p Ð60dB Ð80dB 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 58
Line-to-output transfer function v v g 20dB 0dB G vg (0) = D Q 0 Ð20dB Ð40dB Ð60dB open-loop G vg 20dB/dec D T u0 G cm f L f 0 f z f c Ð80dB closed-loop G vg 1T Ð 40dB/dec Ð100dB 1Hz 10Hz 100Hz 1kHz 10kHz 100kHz f 59
9.6. Measurement of loop gains Block 1 Block 2 A Z 1 (s) v ref (s) Ð v e (s) G 1 (s) v e (s) Ð v x (s) Z 2 (s) G 2 (s) v x (s)=v(s) Ð T(s) H(s) Objective: experimentally determine loop gain T(s), by making measurements at point A Correct result is Z T(s)=G 1 (s) 2 (s) G 2 (s)h(s) Z 1 (s)z 2 (s) 60
Conventional approach: break loop, measure T(s) as conventional transfer function V CC 0 Block 1 Block 2 dc bias Z 1 (s) Ð v ref (s) Ð v e (s) G 1 (s) v e (s) Ð v y (s) v x (s) Z 2 (s) G 2 (s) v x (s)=v(s) v z Ð T m (s) H(s) measured gain is T m (s)= v y(s) v x (s) v ref =0 v g =0 T m (s)=g 1 (s)g 2 (s)h(s) 61
Measured vs. actual loop gain Actual loop gain: T(s)=G 1 (s) Measured loop gain: Z 2 (s) Z 1 (s)z 2 (s) G 2 (s)h(s) T m (s)=g 1 (s)g 2 (s)h(s) Express T m as function of T: T m (s)=t(s) 1 Z 1(s) Z 2 (s) T m (s)»t(s) provided that Z 2 >> Z 1 62
Discussion Breaking the loop disrupts the loading of block 2 on block 1. A suitable injection point must be found, where loading is not significant. Breaking the loop disrupts the dc biasing and quiescent operating point. A potentiometer must be used, to correctly bias the input to block 2. In the common case where the dc loop gain is large, it is very difficult to correctly set the dc bias. It would be desirable to avoid breaking the loop, such that the biasing circuits of the system itself set the quiescent operating point. 63
9.6.1. Voltage injection 0 Block 1 Ð v z Block 2 i(s) Z 1 (s) Z Ð s (s) v ref (s) Ð v e (s) G 1 (s) v e (s) Ð v y (s) v x (s) Z 2 (s) G 2 (s) v x (s)=v(s) Ð T v (s) H(s) Ac injection source v z is connected between blocks 1 and 2 Dc bias is determined by biasing circuits of the system itself Injection source does modify loading of block 2 on block 1 64
Voltage injection: measured transfer function T v (s) Network analyzer measures T v (s)= v y(s) v x (s) v ref =0 v g =0 v ref (s) Solve block diagram: v e (s)=±h(s)g 2 (s)v x (s) Ð v e (s) ±v y (s)=g 1 (s)v e (s)±i(s)z 1 (s) Hence 0 G 1 (s) v e (s) ±v y (s)=±v x (s)g 2 (s)h(s)g 1 (s)±i(s)z 1 (s) with i(s)= v x(s) Z 2 (s) Block 1 Ð v z Block 2 i(s) Z 1 (s) Z Ð s (s) Ð H(s) v y (s) T v (s) Substitute: v x (s) Ð Z 2 (s) G 2 (s) v x (s)=v(s) v y (s)=v x (s) G 1 (s)g 2 (s)h(s) Z 1(s) Z 2 (s) which leads to the measured gain T v (s)=g 1 (s)g 2 (s)h(s) Z 1(s) Z 2 (s) 65
Comparison of T v (s) with T(s) Actual loop gain is T(s)=G 1 (s) Z 2 (s) Z 1 (s)z 2 (s) G 2 (s)h(s) Gain measured via voltage injection: T v (s)=g 1 (s)g 2 (s)h(s) Z 1(s) Z 2 (s) Express Tv(s) in terms of T(s): T v (s)=t(s) 1 Z 1(s) Z 2 (s) Z 1(s) Z 2 (s) Condition for accurate measurement: T v (s)» T(s) provided (i) Z 1 (s) << Z 2 (s), and (ii) T(s) >> Z 1(s) Z 2 (s) 66
Example: voltage injection Block 1 Block 2 Ð 50W Ð v y (s) v z Ð v x (s) 500W Z 1 (s)=50w Z 2 (s) = 500W Z 1 (s) = 0.1 Þ ±20dB Z 2 (s) Ð 1 Z 1(s) Z 2 (s) = 1.1 Þ 0.83dB suppose actual T(s)= 1 s 2p10Hz 10 4 1 s 2p100kHz 67
Example: measured T v (s) and actual T(s) 100dB 80dB T v (s)=t(s) 1 Z 1(s) Z 2 (s) Z 1(s) Z 2 (s) 60dB 40dB T T v 20dB 0dB Ð20dB Z 1 Z 2 Þ ± 20dB T v Ð40dB 10Hz 100Hz 1kHz 10kHz 100kHz 1MHz f T 68
9.6.2. Current injection T i (s)= i y(s) i x (s) v ref =0 v g =0 Block 1 Block 2 0 Z 1 (s) i y i z i x v ref (s) Ð v e (s) G 1 (s) v e (s) Ð Z s (s) Z 2 (s) G 2 (s) v x (s)=v(s) T i (s) H(s) 69
Current injection It can be shown that T i (s)=t(s) 1 Z 2(s) Z 1 (s) Z 2(s) Z 1 (s) Injection source impedance Z s is irrelevant. We could inject using a Thevenin-equivalent voltage source: Conditions for obtaining accurate measurement: i y C b i z i x (i) Z 2 (s) << Z 1 (s), and R s (ii) T(s) >> Z 2(s) Z 1 (s) v z 70
9.6.3. Measurement of unstable systems Injection source impedance Z s does not affect measurement Increasing Z s reduces loop gain of circuit, tending to stabilize system Original (unstable) loop gain is measured (not including Z s ), while circuit operates stabily Ð v Block 1 z Block 2 0 Z 1 (s) Ð R ext Z s (s) v ref (s) Ð v e (s) G 1 (s) v e (s) Ð v y (s) L ext v x (s) Z 2 (s) G 2 (s) v x (s)=v(s) Ð T v (s) H(s) 71
9.7. Summary of key points 1. Negative feedback causes the system output to closely follow the reference input, according to the gain 1 / H(s). The influence on the output of disturbances and variation of gains in the forward path is reduced. 2. The loop gain T(s) is equal to the products of the gains in the forward and feedback paths. The loop gain is a measure of how well the feedback system works: a large loop gain leads to better regulation of the output. The crossover frequency f c is the frequency at which the loop gain T has unity magnitude, and is a measure of the bandwidth of the control system. 72
Summary of key points 3. The introduction of feedback causes the transfer functions from disturbances to the output to be multiplied by the factor 1/(1T(s)). At frequencies where T is large in magnitude (i.e., below the crossover frequency), this factor is approximately equal to 1/T(s). Hence, the influence of low-frequency disturbances on the output is reduced by a factor of 1/T(s). At frequencies where T is small in magnitude (i.e., above the crossover frequency), the factor is approximately equal to 1. The feedback loop then has no effect. Closed-loop disturbance-tooutput transfer functions, such as the line-to-output transfer function or the output impedance, can easily be constructed using the algebra-onthe-graph method. 4. Stability can be assessed using the phase margin test. The phase of T is evaluated at the crossover frequency, and the stability of the important closed-loop quantities T/(1T) and 1/(1T) is then deduced. Inadequate phase margin leads to ringing and overshoot in the system transient response, and peaking in the closed-loop transfer functions. 73
Summary of key points 5. Compensators are added in the forward paths of feedback loops to shape the loop gain, such that desired performance is obtained. Lead compensators, or PD controllers, are added to improve the phase margin and extend the control system bandwidth. PI controllers are used to increase the low-frequency loop gain, to improve the rejection of low-frequency disturbances and reduce the steady-state error. 6. Loop gains can be experimentally measured by use of voltage or current injection. This approach avoids the problem of establishing the correct quiescent operating conditions in the system, a common difficulty in systems having a large dc loop gain. An injection point must be found where interstage loading is not significant. Unstable loop gains can also be measured. 74