You are on page 1of 1

3. Write a function to compute PLL parameters K1, K2 (Equation C.61).

Verify your
function is working properly by reproducing the parameters in the examples given
in Appendix C.
Soln:MATLAB Code
function [k1 k2] = pll_para(z,BnTs,N,k0,kp)
%input as pll_para(z,BnTs,N,k0,kp)
%gives the pll parameter given the value of damping factor(z), Noise
%Bnadwidth with respect to symbol period(BnTs), samples per symbols(N), VCO
%gain (k0) and phase detector gain (kp);
x=BnTs/(z+1/4*z);
k1=1/(k0*kp) * ((4*z/N)*x)/(1+2*z/N *x + 1/N^2 *x^2);
k2= 1/(k0*kp) * ((4*z/N^2)*x^2)/(1+2*z/N *x + 1/N^2 *x^2);

I have verified the function and gives the correct value of k1 and k2
>> [k1 k2] =pll_para(1,0.05,1,1,1)
k1 =
0.1479
k2 =
0.0059
I have used the value of parameter as given in the book and obtain the value of k1
and k2 as found in the book.

You might also like