热度 3| ||
1阶1型PLL
MATLAB代码:
VDD = 0.8; % supply voltage [V] Kd = VDD/pi; % PD gain [V/rad] F = 1; % loop filter tf [V/V] Kv = 2*pi*100*10^6; % VCO gain [rad/(V*s)] % open loop tf G = Kd*F*tf(Kv,[1,0]) % closed loop tf H = feedback(G,1) nyquist(G) bode(G,H) step(H) % step response
2阶1型PLL
MATLAB代码:
% circuit parameters VDD = 0.8; % supply voltage [V] R1 = 20e3; %[Ohm] R2 = 1e3; %[Ohm] C = 1e-12; %[F] Kv = 2*pi*100e6; %[rad/s/V] Kd = VDD/pi; % PD gain [V/rad] F = tf([R2*C,1],[(R1+R2)*C,1]); % loop filter tf G = Kd*F*tf(Kv,[1,0]) H = feedback(G,1) nyquist(G) margin(G) step(H)
2阶2型CPPLL
3阶2型CPPLL
MATLAB代码:
% circuit parameters Icp = 100e-6; %[A] R = 32e3; %[Ohm] C1 = 32e-12; %[F] C2 = 2.5e-12; %[F] Kv = 2*pi*1e6; %[rad/s/V] Kd_p = Icp/(2*pi); Z = tf([R*C1,1],[R*C1*C2,C1+C2,0]); % impedence of LF G = Kd_p*Z*tf(Kv,[1,0]) H = feedback(G,1) nyquist(G) margin(G) step(H)
4阶2型CPPLL