EDN logo


Design Ideas: September 29, 1994

Frequency comparer produces binary results

Jay Kirschenbaum,
Columbia University, New York, NY

thumbnail Instead of resorting to full-blown frequency counters, the simple circuit in Fig 1 uses four ICs to rapidly compare the frequency of two pulse trains. The circuit produces a binary 0 if f1 is greater than f2 and a binary 1 if f1 is less than f2. The circuit exploits the fact that inevitably two consecutive leading edges of the higher frequency pulse train will follow each other in time without an intervening leading edge from the other pulse train. The circuit uses two pairs of flip-flops, IC2 and IC3, as 2-bit binary counters. A dual monostable multivibrator, IC1, marks the leading edges of the input pulses by producing spikes of approximately 100 nsec in duration. The circuit couples each stream of spikes to the clock input of one counter and to the reset input of the other.

When one counter's clock receives two consecutive spikes without the arrival of an intervening reset pulse, the high-order bit of that counter goes high. Then, a latch formed by two NOR gates of IC4 sets or resets depending on which of the two pulse trains has the higher frequency. If f1 is greater than f2, the latch resets to 0; if fis less than f2, the latch sets to 1. The latch holds it state until there is a change in the relative magnitudes of the two frequencies.

For frequencies f1 and f2, the maximum response time of the circuit is given by the following

At 1 kHz and for f1 and f2 within 1% of each other, the circuit responds within 100 msec. One important note: The circuit is designed to handle asynchronous pulse trains, and it won't work if f1 and f2 are synchronous integral multiples of each other.


| EDN Access | feedback | subscribe to EDN! |
| design features | design ideas | columnist |


Copyright © 1995 EDN Magazine. EDN is a registered trademark of Reed Properties Inc, used under license.