# Comparing Frequencies with an Oscilloscope

This article describes a method for the very precise measurement of a frequency difference using an oscilloscope with multiple channels.

The following video shows the display of an oscilloscope whose four channels are connected to four different Temperature Compensated Crystal Oscillators (TCXOs).

As seen in the above video, four different waveforms originating form the oscillators are displayed on the oscilloscope screen. The TCXOs are very accurate and are rated at , so their frequencies are very close to each other. The waveform on channel 4 (dark blue) has been used as the trigger source, this waveform shall represent the reference frequency . The waveforms on channels 1, 2 and 3 (yellow, light blue and purple) are slowly drifting relative to the reference waveform. Thus, these waveforms have ever so slightly different frequencies whose difference we are about to determine.

In order to determine the exact frequency difference , we need to first measure how fast the corresponding waveform is scrolling relative to the reference waveform. For this purpose, we shall define as the time duration in seconds that is required for the waveform to move by one whole period relative to one of the fixed vertical lines on the oscilloscope screen. can be determined by visually observing the waveform and measuring one period scroll duration using a stopwatch.

If a waveform is scrolling towards the left side relative to the reference waveform, then its frequency is larger than and shall have a positive sign. The opposite is true if the waveform is scrolling towards the right side, then its frequency is smaller than and shall have a negative sign.

Whenever elapses, the measured waveform will advance or retard by one full period duration relative to the reference waveform.

For , the measured waveform will advance by exactly one period per second. Consequently, the frequency difference relative to would be . This behaviour can be generalised by the following formula: The difference in parts per million can be calculated as follows: The TCXOs measured in the above setup have been used for increasing the accuracy of a classic Casio digital wrist watch. Hence, it is of our interest to calculate the particular oscillator’s drift in seconds per day. This can be done using the following formula: Taking the purple waveform on channel 3 as an example, we can measure . This would yield to .

For the above example, and .