Fusion Digital Fusion Digital Fusion Digital Fusion Digital
Real Real-
- time Self Compensating AC/DC
Real- -time Self Compensating AC/DC time Self Compensating AC/DC - - PowerPoint PPT Presentation
Fusion Digital Fusion Digital Fusion Digital Fusion Digital Real- -time Self Compensating AC/DC time Self Compensating AC/DC Real Digitally Controlled Power Supply Digitally Controlled Power Supply Dave Freeman, Mark Hagen Texas
2
12Sep06
3
12Sep06
4
12Sep06
G(s) power stage H(z) digital compensator
y' u'
digital controller ADC PWM
u y d2 d1 x r
1 2 2 1 2 1 2 1 2 1 2 1
Given the following basic system equations: The closed loop response for each node is
c
5
12Sep06
GH GH + 1 GH H + 1 GH H + 1 GH + 1 1 GH GH + − 1 GH G + 1 GH + 1 1 GH GH + − 1 GH G + − 1 GH G + − 1
d2 d1 e x c u y measure at inject at d2 d1 e x c u y measure at inject at
Y D Y −
1
1
1
− u Hd 1
1
− c Hd 1
1 −
x d e d e + −
1
Hy d Hy −
2
1
2 −
u d c d c + −
2
Hx d Hx + −
2
He d He + −
2
Transfer gains at each node: Calculation of open loop gain G(f)H(f) from measurements at each node:
2 1 2 2 1 2
meas s meas s meas s meas
(for a 2nd order compensator)
6
12Sep06
table
rate sample meas
7
12Sep06
uCosSum += u*bcos; // Accumulate cosine // sum for measurement node u uSinSum -= u*bsin; // Accumulate sine // sum for measurement node u
− = − = −
1 1 /
N n n N n N nk j n k
2π
8
12Sep06
G(s) power stage H(z) digital compensator
y' u'
digital controller ADC PWM
u y dcos r
Inject at d2, measure at c Return cosSum and sinSum for each injected excitation frequency. Calculate open loop gain as follows:
c
z-1 z-1
dsin cosSum sinSum G(s) power stage H(z) digital compensator
y' u'
digital controller ADC PWM
u y dcos r
( ) ( )
2 2 2 2 2 cos 2
2 2 /
i r r r r i r i r r r
C C C D D C jD C C c D sinSum j cosSum D N sinSum j cosSum c d c GH + + + − + + − = ⋅ + + ⋅ + − = + − =
Inject at d1, measure at e
x
z-1 z-1
dsin cosSum sinSum
Then plot magnitude and phase of G(f)H(f) to determine phase margin and bandwidth
( ) ( )
2 2 2 2 2 cos 2
2 2 /
i r r r r i r i r r r
E E E D D E jD E E E D sinSum j cosSum D N sinSum j cosSum e d e GH + + + − + + − = ⋅ + + ⋅ + − = + − =
Where Dcos is the base to peak amplitude
9
12Sep06
10
12Sep06
11
12Sep06
12
12Sep06
13
12Sep06
Status Digital coefficients Update coefficients based on PID gains Update coefficients based on analog poles & zeros magnitude plot Select control loop Select which part of the loop to display Transfer Function Analysis (measure Bode) BW gain margin phase margin phase plot
14
12Sep06
Recall from sheet 8 that
2 2 2 2 2 2 2 2 2
2 2
i r r r r i r i r r r r i r r r
C C C D D C D j C C C D D C C C D c d c GH + + + − + + + + + − = + − =
( ) ( )
2 2 2 2 2 2 2 2
2 atan
i r r r r i r i r r r i r
C C C D D C C C D C GH mag C C C D C D GH phase + + + + = + − = + + =
then Rearranging the equation for magnitude, at the zero dB cross-over frequency
1 2
2 2 2 2 2
= + − = +
i r r r r
C C mag mag C D D
10
3
10
4
10
5
1 2 3 freq normalized magnitude
adaptError cosSum/N sinSum/N
15
12Sep06