|
貢獻code-matlab amp
好像不錯 下再看看
8 `. L" [, z( |6 F" c- Bs = tf('s');
6 e4 s6 O) t! \5 f& _R1=2e3* C" P, C, \+ O4 t! N7 e
C1 =0.47e-9
6 H+ @- k$ a0 V% gR2 =8.2618e+003, x* `$ y l! k. c( z* x8 z
R3 =500
/ a6 V/ B4 F# w1 H) vZ1=R3+(R1/(1+s*C1*R1))
2 c, g* M: u" V8 X4 q9 J b% V9 wZ2=R2/ Z4 H1 x% S5 P ~& a
% OPA gain:A;OPA open loop gain:A0 ; dominant pole ; compensator close feedback gain:Gcl # U5 d: ?/ W- v' [7 T
A0=10.77 B4 n6 w1 R; Z' N) n
p=5e3
5 b$ ?8 T3 ]0 `* DA=A0*p/(s+p)
' q$ n$ y% w/ l" n- i5 Q6 [) lfigure(1); Q# k# ^; O! m3 A1 }
margin(A)% t$ R: H& o8 i& O$ _0 w o
Gc=-((Z2/Z1)/(1+((1+(Z2/Z1))/A)))
8 {+ H* m+ r* y# Ofigure(2)$ \" T4 [0 v$ Y" j; d* r
margin(Gc) |
|