r/rfelectronics • u/Rhedogian • Sep 28 '26
Comparing the performance of two oscillators using standard lab equipment
I had a question about how I might go about comparing the performance of one 10Mhz oscillator (a TCXO) versus another reference 10MHz oscillator (let's say from an atomic clock or a reference GPS). I want to obtain numbers for average jitter and drift in ppm for the TCXO over a suitably long timespan, maybe 1 hour to 24 hours if that's feasible.
I've been assigned to make a test setup to characterize the performance of the TCXO and I've been told we can't really buy (or shouldn't need to buy) any specialized equipment to run the test. We have some nice tektronix scopes which have datalogging capabilities but I've never used them. We also have spectrum analyzers which is what I think I'd probably end up using but I'm not sure what the test setup is exactly.
Honestly I'm a little lost where to begin. Are there any good suggestions or initial things I should start thinking about? Any help is greatly appreciated.
Additionally, is it more valuable to measure the 10Mhz output of the TCXO against the 1PPS output of the reference oscillator, rather than measuring both 10MHz directly against each other?
5
u/Allan-H Sep 28 '26 edited Sep 28 '26
The measurement is dictated by the requirements of the application.
For example, for many of the timing circuits I've designed, TDEV (Wikipedia EDIT: read the reference linked from that page) is a much more useful measure of stability than "drift in ppm". It's also relatively easy to measure. For other applications phase noise may be the important metric.
Check the phase noise floor specification for your spectrum analyser before attempting to use it to measure something low noise like a TCXO.
3
u/PE1NUT Sep 28 '26
It would be better to measure the 10 MHz against each other, as that gives you less noise than when only measuring once a second using a PPS.
The long term drift can be measured by using one of the oscilloscopes and displaying both channels, but triggering only off the reference signal. You'll see the TCXO drift left or right over time. Take sufficient snapshots that you don't end up with a 'cycle slip', where you don't know how many full cycles were lost or gained.
Some modern scopes also include the ability to measure jitter directly, although one has to test if that's sensitive enough to measure the jitter between two clocks like that, and how much of the jitter contributed is due to the scopes itself.
1
u/aholtzma Sep 28 '26
This can be done with a standard two channel frequency counter. For software, you can use either TimeLab or Stable32, both free.
2
u/StageMajestic613 Sep 28 '26 edited Sep 29 '26
Just mix them together and LPF, then record long-duration on slow sample rate (data logger) scope using the 10 MHz standard as its reference input. Ā Then post-process the data. Ā With 100 Hz rate you can essential record forever. Ā Just need to make sure the sample rate is sufficient to cover your drift. Ā You need to know the exact sample rate of the scope (i.e. if it has a DDS you must know the exact values).
There are other methods such as phase locking them together and recording the error signal, though youād need to integrate to find the frequency difference.
1
u/jimlux Sep 30 '26
Two channel scope? Oscillators at same frequency? Run them into two inputs, set sweep so youāve got a couple zero crossings. Capture once a second, measure phase difference between the two. Run for hours. Accumulate statistics. You can get both waveforms in, fit a sine to each of them in software, and estimate the phase (and frequency and amplitude). Or you can use the scopeās measuring capabilities (with less accuracy)
Have a lab counter? Run your standard into the external reference input of the counter. Run your unknown into the counterās input. Measure frequency with a gate time of 1 second (or whatever). Accumulate statistics.
A better way - Spend $250 and get a TICC and a divider that can take your unknown and make a 1 pps - itās a time interval counter mounted on an Arduino - feed it a good 10MHz reference and send in your unknown and it measures the period, very accurately - it has a ātime to digitalā converter that can measure the edge times of the 1pps with picoseconds accuracy.
Classic way to characterize these things is if you can use your reference oscillator to generate a frequency that is, say, 1000 Hz from your unknown (a good synthesizer can do this). Then mix the unknown with this offset standard. Run the audio difference signal through a filter/amplifier, digitize and carefully measure its frequency every second (or run it into a counter), collect statistics. This is called the Dual Mixer Time Difference (DMTD) measurement scheme.
https://tda.jpl.nasa.gov/progress_report/42-169/169B.pdf for DMTD
https://web.tapr.org/~n8ur/TICC_Manual.pdf is the manual for the TICC
Generically, iād go to the time-nuts mailing list where this topic is widely discussed. Thereās all kinds of stuff in the archives with various schemes. https://lists.febo.com/empathy/list/time-nuts.lists.febo.com or your favorite mailing list archive. Google is your friend. āTime-Nuts DMTD site:febo.comā for instanceā¦
1
u/BanalMoniker Oct 02 '26
I havenāt seen anyone else mention persistence, but that can give you some visibility over very long periods of time.
If you have a good reference oscillator, route that to the scope with the trigger on that channel. Route the other clock to other channels and adjust so you can see if they skew. Turn on persistence and watch to see if the worse channel is drifting. Check at incrementing durations.
I tried this with a Leo Bodnar GPS disciplined oscillator (1MHz) and a Ublox timing module (PPS as the trigger) and was very pleased with the lack of drift.
1
u/Irrasible Oct 06 '26
If you want long-term drift, you can make a dirt-simple phase detector. If both are square waves of the same amplitude, simply connect the outputs to a two-diode OR gate driving an RC load. When the signals are exactly in phase, you will see a 50/50 square wave. When they are exactly out of phase, you see a steady 100/0 DC level.
The nuance is that you offset one of the oscillators so that the frequency difference is always positive. That may already be the case.