| Author |
Message |
swicap
Joined: 04 Apr 2004 Posts: 124 Helped: 13
|
07 Apr 2006 17:12 pll lock edge count |
|
|
|
|
pll's divider ratio changes frequently.
Is there any reliable solution?
thx!
|
|
| Back to top |
|
 |
MSSN
Joined: 08 Mar 2006 Posts: 232 Helped: 26
|
07 Apr 2006 18:42 Re: how to design a lock detector for pll |
|
|
|
|
| Is it a fractional or integer PLL,and do u want to detect locking within a certain accuracy or just to detect locking,and how does the divider ratio changes
|
|
| Back to top |
|
 |
safwatonline
Joined: 19 Nov 2005 Posts: 1418 Helped: 172 Location: EGYPT
|
07 Apr 2006 20:57 Re: how to design a lock detector for pll |
|
|
|
|
i qoute:
"When the PLL is in lock, Clk1 and Clk2 have identical frequency, but their phase difference can show variations. The PLL will try to maintain a phase difference close to zero, as result of the `ideal integrator' functionality of our low-pass filter. Identical frequency means that between every two edges of Clk1, precisely one edge of Clk2 will occur. After an edge has occurred on both Clk1 and Clk2, both left flip-flops are reset by the nand-gate. Only when two edges occur on Clk1 without an intermediate edge on Clk2, the flip-flop in the cycle slip detector will become set. This can only occur if Clk1 has a higher frequency than Clk2."
|
|
| Back to top |
|
 |
Google AdSense

|
07 Apr 2006 20:57 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
swicap
Joined: 04 Apr 2004 Posts: 124 Helped: 13
|
08 Apr 2006 10:15 how to design a lock detector for pll |
|
|
|
|
MSSN and safwatonline,
thank u for ur reply.
The lock detector will be used in a fractional pll.
That means the phase difference between ref_clk and div_out_clk will be large some times due to the
changing div_ratio. I want to have a solution which can detect locking with a certern accuracy.
allow maybe 1/4 or 1/8 ref_clk period phase deviation.
Thx.
|
|
| Back to top |
|
 |
MSSN
Joined: 08 Mar 2006 Posts: 232 Helped: 26
|
08 Apr 2006 12:28 Re: how to design a lock detector for pll |
|
|
|
|
| Ok u can use two counters one to count the cycles of the reference clock and the other to count the cycles of the feedback clock and before overflow of the counter that counts the reference clock u compare between the values of the 2 counters which can tell u if u r in lock if they r equal or near lock if there is small difference or away from lock if there is large difference,however this is the basic idea but u have to choose no. of FFs in the counters according to the accuracy u want and ur frequencies and u have to add some logic to adjust the lock detector when the divider ratio changes,there is other ways to make the lock detector but this is a precise and easy method as it is fully digital,good luck
|
|
| Back to top |
|
 |