A 50 MSPS ADC receives a 10 MHz sine wave. The spectrum spreads into a skirt around the fundamental. Before trying a different oscillator, work out how many input cycles fit in the captured record. An FFT effectively repeats the finite record. If the next copy starts at a different phase from the phase the original sine would have reached, the join creates spectral leakage. To measure small spurs near the test tone, first control that join so you can tell the leakage from signals introduced by the source, clock or board.
Calculate the tone from the actual sample rate and record length
Let N be the number of samples, fS the actual sample rate and fIN the input tone. The record contains N × fIN ÷ fS cycles. If that number is exactly k, the ideal tone lands on bin k. The FFT time window is N sample periods. There are only N−1 intervals between the first and last recorded sample, and the next interval reaches the start of the repeated window.
Assume exactly 50,000,000 samples per second and 4096 consecutive points. The bin spacing is about 12,207.03125 Hz and the record spans 81.92 µs. For a tone near 10 MHz, choose bin 819. Its frequency is 50,000,000 × 819 ÷ 4096 = 9,997,558.59375 Hz. Setting the generator to 10,000,000 Hz instead gives 819.2 cycles, about 2,441.40625 Hz beyond the bin. Save both raw captures and label the frequency axis with the bin numbers as well as the frequency when comparing the difference.
The integers 819 and 4096 are coprime, so the phase sequence does not repeat after a smaller group of samples. An integer number of cycles is sufficient for an ideal tone to be coherent. Choosing coprime values also gives greater phase coverage across the record. For a power-of-two record length such as 4096, an odd bin has that property. If exactly 10 MHz is required and record length can change, 5000 actual samples at 50 MSPS span 1000 cycles. That sequence revisits fewer distinct phases, so check the required coverage for an ADC linearity test or record a separate run at a nearby coprime bin.
Do not use a zero-padded FFT length as the number of acquired samples. If the data still contain only 4096 actual points, padding to 5000 changes the displayed bin grid. It leaves the original 81.92 µs observation and its 819.2 sine cycles in place. The 5000-point coherent example requires 5000 consecutive samples from the ADC. In a capture log, distinguish acquired samples, padded FFT length and the first sample included in the window. If the hardware only returns powers of two and the test tone is fixed at exactly 10 MHz, choose an appropriate window or recalculate the sampling rate if permitted.
Verify the ratio after both instruments report lock
Use a common reference for the analog generator and sample-clock source when the setup permits. Check their lock indicators and measure or independently confirm the sample rate used to make the file. Any clock divider, multiplier or decimation stage changes the relevant rate. Confirm that the FFT receives the expected number of consecutive points. A generator with 1 Hz resolution can set 9,997,559 Hz, about 0.40625 Hz away from the calculated frequency. Decide whether the resulting offset is acceptable using the application's dynamic range, chosen window and repeat captures.
Independent clocks can drift relative to each other even if both meet their own frequency specifications. An illustrative relative error of 20 ppm near 10 MHz amounts to about 200 Hz, or 0.0164 of a bin in the 4096-point example. A longer record narrows the bin spacing, so the same offset occupies a larger fraction of a bin. For a controlled comparison on the same board, save two captures using the independent references and see whether the apparent center moves. Then lock both sources to a shared reference, set the tone on the calculated bin and repeat with the same amplitude and analysis settings.
Use an appropriate window when coherence is unavailable
If getting both sources onto the same reference is impractical, select a window for the measurement and save its name and scaling method. For close-in spurs, check how wide the main lobe becomes and where the sidelobes fall. A tone between bins can occupy several neighboring points within that main lobe. Do not count each as a separate spur. Correct amplitude with the applicable window gain or integration procedure, and use the corresponding noise bandwidth when estimating the floor. Changing the window, record length or portion of the main lobe excluded from noise changes the reported result.
Keep the raw codes, actual sample and input rates, reference lock status, FFT window and expected bin in the acceptance record. If the skirt appears only when a fractional cycle remains, fix the measurement before attributing it to the oscillator. If the same offset line remains in a coherent capture, follow it through the clock, input source and supply setup. Purchasing can retain the exact oscillator configuration and its electrical, frequency and phase-noise requirements while the bench record separately documents the test generator frequency.
Analog Devices, coherent sampling and windowing. Analog Devices AN-835, high-speed ADC and FFT test methods.
