Code covered by the BSD License

### Highlights from Simple PLL demostration

4.66667
4.7 | 3 ratings Rate this file 38 Downloads (last 30 days) File Size: 1.77 KB File ID: #24167

# Simple PLL demostration

by

### J C (view profile)

This m-file demonstrates PLL operation

File Information
Description

This m_file uses a PLL to demodulate an FM modulated carrier.

MATLAB release MATLAB 6.5 (R13)
29 Apr 2013 Anderson

### Anderson (view profile)

Thank you very much for this simple PLL implementation. However, I noticed it uses both the real and imaginary parts of the Signal. In a physical implementation we only have access to the real part of the signal, right? So how can this be applied to a real, physical signal?

11 Jul 2012 Mike Woodward

### Mike Woodward (view profile)

You might also be interested in our new PLL design page: http://www.mathworks.com/mixed-signal-systems/pll-design.html

Comment only
22 Nov 2011 Mike Woodward

### Mike Woodward (view profile)

If you're interested in this submission, you might also like the new, free mixed-signal library available from here: http://www.mathworks.com/programs/mixed-signal/index.html

Comment only
16 Sep 2011 Fernando Gregorio

### Fernando Gregorio (view profile)

17 May 2010 Andres Camilo Cuervo Pinilla

### Andres Camilo Cuervo Pinilla (view profile)

PLEASE SR I WOULD LIKE TO KNOW THE MEAN OF SOME VARIABLES:

phi_hat(1)=30;
e(1)=0;
phd_output(1)=0;

vco(n)=conj(exp(1i*(2*pi*n*f/fs+phi_hat(n-1))));%Compute VCO
phd_output(n)=imag(Signal(n)*vco(n));%Complex multiply VCO x Signal input
e(n)=e(n-1)+(kp+ki)*phd_output(n)-ki*phd_output(n-1);%Filter integrator
phi_hat(n)=phi_hat(n-1)+e(n);%Update VCO

ALSO I WOULD LIKE TO KNOW HERE I COULD FIND SOME BOOKS TO READ ABOUT PLL

THANKS
AC