Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Squared wave comparison

Status
Not open for further replies.

prprog

Member
Besides using a PLL chip, is there any other component/chip/circuit that can output a high signal to indicate that a square wave frequency is equal to a predetermine frequency?

Thanks,
 
You could use a **broken link removed** followed by a window comparator. What you use depends on the frequency, etc. How precise and accurate do you need it to be?
 
Here's my idea how to solve this:

Have two counters. Let both counters count to 127b (just an example). Those two counters have to start (reset) at the very same moment. One counter uses the predetermined frequency as input, and the other one uses the other frequency as input.

When at least one counter reach 127b, stop counting and check wheter both counters contains 127b. If the numbers fiffers, the frequency is also different.

And of course - the more pulses you counts, the more accurate the check will be. If it will work in practice is another story. You must consider when the frequency is equal, but different phase. Then one counter will always be one step behind.
 
You could do it with a microcontroller pretty easily.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top