Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

The AD9834's 50 MHz oscillator is fine. Why can a frequency switch take one extra clock?

Identify what controls the switch before counting MCLK cycles

An accurate 50 MHz master clock and two correct frequency words do not make FSELECT change the DAC output immediately. With hardware control and the specified t11 and t11A conditions met, FSELECT and PSELECT have an eight-MCLK pipeline delay. The manufacturer states that missing those conditions adds one cycle. An asynchronous serial write to the selected frequency or phase register can likewise take eight or nine cycles. An extra cycle is not, by itself, oscillator drift.

Define the timing origin: an MCU command, the transition at the DDS pin, the final SPI clock, or a measurable transition after an analog filter. Those events are not interchangeable. Capture actual signals on a shared measurement timebase. A steady-frequency counter reading does not identify the cycle when a switch takes effect.

Different control paths need different observations

EventPathWhere to look
FSELECT or PSELECT transitionHardware selection of preloaded valuesSelection timing relative to MCLK
FSEL or PSEL control bitSoftware selectionPIN/SW and the actual control word
Asynchronous write to selected registerSerial update then internal pipelineEffective register update to DAC change
Settled waveform after filteringAnalog pathMeasure separately from raw DAC output

Preload both values if using the selection pins

Preloading two frequency registers avoids sending both halves of a frequency word at the instant of switching. For pin control, set PIN/SW accordingly. With software control, FSEL or PSEL selects the active register, so a toggling pin does not show the DDS changed selection. Do not substitute a software command for a hardware trigger and publish the same timing result for both paths. Distinguish startup defaults, operating mode and the test setting.

PSELECT changes the selected phase offset, while FSELECT changes the frequency register. Use clearly distinguishable known values and hold the other selection fixed. That avoids treating a phase change or one filtered zero crossing as proof that frequency changed.

Where do 160 and 180 ns come from?

A 50 MHz period is 20 ns, so eight cycles are 160 ns and nine are 180 ns. A discrete 20 ns change is not a 20 ns oscillator period error. Check oscillator frequency and jitter separately if needed. When observations form two timing groups one cycle apart, first check synchronization and the setup and hold window. Comparisons need the same defined starting event.

Against a hypothetical 175 ns limit, eight cycles leave 15 ns; nine exceed it by 5 ns, even before path or analog delays. That example shows why a favorable observation is not a guarantee. Design fixed-cycle systems with the data-sheet timing table and figure, rather than inferring trigger polarity from an internal edge description.

Separate switch timing from filter delay

Capture MCLK, the actual FSELECT input and an identifiable change at the DAC on the same instrument. Measure downstream too if needed. With a synchronized selection path, verify t11 and t11A at the receiver per the timing diagram. Compare asynchronous triggering separately. Do not use a host instruction time as the only reference. Record instrument timebase, bandwidth, triggering and the output criterion.

Start asynchronous serial measurements at the complete update

If a full frequency word requires two 16-bit transfers, do not start counting eight cycles after the first frame. Verify destination and when the configured complete update takes effect. The specified eight-to-nine-cycle interval follows loading the selected register, not command preparation, queuing or an unfinished transfer. Define the origin independently for hardware and serial cases.

A filtered analog waveform is not necessarily a clean trigger marker. Define how to detect the change and use that rule consistently. If only the filtered result differs, check filter delay and load before blaming the digital switch. Separate initialization, reset release and ordinary changes.

Define the delay before selecting another oscillator

Epson's SG-210STF X1G0041710126xx is a documented 50 MHz powered oscillator example. Verify supply, thresholds, loading and timing. It provides MCLK but does not guarantee an eight-cycle result for asynchronous control. Record the exact oscillator specification, trigger origin, observation endpoint and permitted timing window. If output frequency is correct but switching varies by whole cycles, check selection ownership and synchronization before replacing the clock.

Save several switches in both directions with known frequency and phase values. A single passing capture does not cover every trigger phase. For any nine-cycle observation, record which control path produced it. Firmware, synchronization or layout changes can then be tested on the affected path without guessing from clock frequency again.

For another engineer to reproduce the test, identify the physical start net, input threshold and output observation window without relying on software estimates. Record any instrument or triggering change. Compare boards at the same supplies, loads and initial phase settings before blaming routing or synchronization. Report delay both in nanoseconds and in cycles so a future master-clock change can distinguish a fixed-cycle pipeline from elapsed time and identify which checks to repeat.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.