|
貢獻code-matlab amp
好像不錯 下再看看
% \( O7 P. S2 l q2 z! Zs = tf('s');2 N' O: S. T" }' m( n7 D
R1=2e3. y2 K7 r$ I* y" }' k
C1 =0.47e-9
& [- r0 S2 @. _1 E( o; J! g; aR2 =8.2618e+003
+ U3 V0 u/ c5 J0 G2 r' i7 SR3 =500
8 n) v6 ]4 A0 GZ1=R3+(R1/(1+s*C1*R1))
# \8 l; f6 C1 d/ x" bZ2=R2
$ U2 A( D% ]4 R( e; u- @* O I% OPA gain:A;OPA open loop gain:A0 ; dominant pole ; compensator close feedback gain:Gcl * v: N$ O3 N* g9 f# K7 e7 c
A0=10.7
+ y' }# P' l" _p=5e3
% j$ [% X& ]" @" r& q, j, t7 T- C% [A=A0*p/(s+p)3 U' u) Z5 H/ X% `/ I% N1 g
figure(1)
- K4 P+ s5 W, |3 ]1 C/ d- | H* kmargin(A)
* v7 p6 [9 a$ B0 B k$ A; cGc=-((Z2/Z1)/(1+((1+(Z2/Z1))/A))), W0 H* ]. g2 Z0 m, W/ J* i8 n$ g
figure(2)
5 u) g' c, l; ~/ w- x' amargin(Gc) |
|