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

Using AD9834 SIGN BIT OUT as a square-wave reference: which path drives it?

An AD9834 board produces a 5 MHz sine at IOUT, yet the logic analyzer reports a steady 2.5 MHz at SIGN BIT OUT. Record MCLK, the selected tuning word and the last control frame sent to the device. SIGN BIT OUT can carry a digital sign bit, a divided version of that bit or the on-chip comparator output. A test record that simply says “5 MHz square wave” leaves the person replacing the board without its signal path or the reference event for each edge.

Decode the four bits that determine the output

Use Table 17 of the AD9834 Revision D data sheet. OPBITEN is DB5, MODE is DB1, SIGN/PIB is DB4 and DIV2 is DB3. MODE must be zero for the enabled paths discussed here. With the digital path selected, a zero in DIV2 gives MSB divided by two. Set DIV2 to one for direct MSB. Comparator output requires both SIGN/PIB and DIV2 set to one. The combination with SIGN/PIB set and DIV2 clear is reserved. With OPBITEN clear, the output is high impedance. A board pull-up may then make the line look permanently high.

The table gives the contribution of these four bits, whose mask is 0x003A. Keep the other control settings that the board uses, including frequency and phase selection, reset and sleep. The examples are not complete control words.

Signal pathContribution of the four bitsWith the sine set near 5 MHz
Digital MSB divided by two0x0020About 2.5 MHz
Direct digital MSB0x0028About 5 MHz
Comparator0x0038About 5 MHz when VIN receives a suitable 5 MHz sine

For an assumed 50 MHz MCLK, rounding 5,000,000 × 228 ÷ 50,000,000 gives K = 26,843,546. Substituting this integer yields a fundamental of about 5,000,000.075 Hz. Dividing it by two gives about 2,500,000.037 Hz. These are calculated results. Even a 20 ppm reference error would shift a 5 MHz output by only around 100 Hz. A stable reading at almost exactly half the expected frequency gives you a reason to check the DIV2 path, the programmed frequency and the instrument's edge recognition before sourcing another oscillator.

Find the analog feed to VIN when the comparator is selected

The control word selects the comparator output at the pin. Follow the board's connections from IOUT or IOUTB through the conversion load and the external filter to VIN. The DAC pins provide current outputs. Check the voltage compliance at the fitted load before assuming the signal measured at a connector is the comparator input. Analog Devices describes a comparator input range of roughly 100 mV to 1 V peak to peak, internal AC coupling with self-bias and a typical minimum input frequency of about 3 MHz for operation as a zero-crossing detector. A 5 MHz setup does not establish performance at 1 MHz. Check amplitude and crossings at VIN over the intended frequency range and with the real filter fitted.

With a 50 MHz sampler and 5 MHz fundamental, the first nearby image pair is approximately 45 MHz and 55 MHz. The relevant filter needs to preserve enough amplitude near 5 MHz and reduce energy that moves the threshold crossings. It can also introduce phase shift. If an illustrative 5 MHz sine at a downstream point lags the upstream point by 18°, the two corresponding phases are separated by 200 ns × 18 ÷ 360, or 10 ns. Record the two probe points and state how phase was unwrapped if comparing results across frequencies.

Consider a 0.6 V peak-to-peak ideal sine at 5 MHz. Its slope near a zero crossing is about 2π × 5 MHz × 0.3 V, or 9.42 mV/ns. A small 1 mV disturbance at the threshold corresponds to approximately 106 ps of time displacement. This estimates one noise-to-time mechanism and does not predict the board's total jitter. Keep the manufacturer's comparator jitter test conditions with any data cited. The table uses a 3 MHz and 0.6 V peak-to-peak input for its example condition. Filtering, comparator noise, supply interference and receiver loading can change the result on the assembled board.

Capture both paths with the same reference and load

Hold the programmed frequency and reference constant while capturing the DAC signal, the actual VIN waveform and SIGN BIT OUT. Use the VIN crossing and the measured MCLK edges as timing markers. Digital transitions are constrained by the MCLK update grid, whose spacing is 20 ns at 50 MHz. Choose a second tuning word that does not correspond approximately to an integer number of MCLK periods per output cycle. Compare the edge distributions at the receiver for the two words. For the comparator capture, keep the filter, receiving load and probe setup constant. A change to the input termination or the measurement threshold can move the apparent edge even though the control word is unchanged.

Keep the full reference oscillator code, MCLK interface and allowed error, chosen SIGN BIT OUT source, fitted filter and receiver requirements in the acceptance record. For a replacement oscillator or a complete replacement DDS module, compare the circuit path and saved register configuration before repeating the frequency and edge measurements. That lets purchasing ask for the correct part and lets engineering reproduce what “5 MHz square wave” meant on the original board.

Manufacturer reference · Analog Devices AD9834 Rev. D, Table 17 and the comparator and DAC output sections

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.