## Estimating Frequency in PLL from phase

Started by 8 years ago7 replieslatest reply 8 years ago453 views

Hi

Assume I have a digital PLL that outputs phase estimate of the reference signal, however I am wondering can I estimate the frequency signal according to the given phase estimate? I know frequency is derivative of phase respect to time but dont we need a operating or center frequency of VCO(NCO).In another words can I get the good estimate of the frequency using PLL?

[ - ]

Phase is relative to something that repeats, so if you know how often you get to the same phase point, you can measure the time and derive the frequency.  Usually the error in time changes the frequency so the phase stays the same, but once it is locked you should get a good time measure.

I always think of phase and frequency as independent things.  But this is a good question especially when you think about FM demodulation where phase and frequency can be swapped.  Maybe that is a way to look at it - FM demod can be done with a PLL, so I would think frequency measurement can be done as well.  I'm going to see if I can bend my brain around this - good question!

[ - ]

Yes, the NCO always has the basic value of the reference frequency in its Phase Increment Register (PIR).   If your loop adjusts the PIR to steer the loop to lock the reference to the input, then the value in the PIR after lock is the locked frequency.   If your loop is a second-order loop, then the value in the loop integrator also represents a frequency offset of the loop from the PIR value.  Adding the PIR and the integrator value together, considering any scale factors in between them, should give you a pretty accurate estimate of the locked frequency.

[ - ]

Actually, if you have a second order loop PLL, the frequency estimation is just the value in the loop filter register. The "accuracy" of this "estimate" will depend on the bandwidth of your loop filter. Just remeber that in some cases, like a noisy signal, a simple PLL will not lock to the signal phase without some coarse estimate of the frequency.

[ - ]

Thanks. I have a second order loop but I implemented it digitally, which means my NCO is just integrator in discrete domain which means it is like Z/Z-1 and I have no gain associated with it. So when you say frequency is the value of loop filter, you mean the frequency of incoming signal ? Because of NCO is producing small value since it takes the signal from phase detector and phase detector output is small (It is the error if PLL is working properly ). Can you elaborate on that please ?

[ - ]