blob: 58b0b5257f9f09f9a1afdcd4a3b4ff0583c0d9b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
//Chapter 8:Linear model of phase locked loop
//example 8.1 page no 314
//given
fo=1*10^6//output frequency
fr=25*10^3//reference frequency
N=fo/fr
Kd=2//phase detector gain factor
Ko=100//VCO gain factor
thetao=(2*100*2*%pi)//output phase
s=poly(0,"s")
thetar=s+(2*100*2*%pi)/N//input phase
Tf=thetao/thetar
disp(Tf,'the closed loop transfer function is ')
Kv=Kd*Ko/N//bandwidth
mprintf('the synthesizer bandwidth will be %d Hz',Kv)
|