I am writing code for a phase locked loop in MATLAB. Up to now, I assumed that the frequency of the input signal is given (known) and I choose the frequency of my VCO close or exactly the same as the reference signal. What if I do not know the reference signal frequency? How can I approach the problem in that case? How can I choose the frequency of the VCO?
However I am wondering what if I do not know the reference signal frequency, how can I approach the problem in that case ? How can I choose the frequency of VCO?
The VCO frequency should be equal to the desired output frequency, or cover the range of desired output frequencies. It isn't related to the reference frequency.
But to go any further, you do have to know your range of accepted reference frequencies. Because you'll need to choose a divide ratio to divide down the output frequency, and possibly the reference frequency, to obtain two equal frequencies for comparing to each other.