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

Does an AD9834 low-14-bit update overwrite the high bits of its frequency word?

No, provided B28 is cleared, HLB is cleared, and the write addresses the intended AD9834 frequency register. In this mode HLB = 0 selects the low fourteen bits and HLB = 1 selects the high fourteen bits. Setting B28 instead loads a complete 28-bit frequency word through two successive writes. A single SPI word is not the same operation when the controller leaves B28 in full-word mode.

With a suitable 50 MHz Epson SG-8018 at MCLK, the nominal tuning increment is 50 MHz divided by 2²⁸, about 0.1863 Hz. Adding 100 codes to the low half increases frequency by about 18.63 Hz if there is no carry. If the low half starts at 16350, adding 100 crosses 16383. Writing only the wrapped low half loses a carry of 16384 codes. Compute the full new 28-bit value and use the proper complete-word sequence for that change.

Selecting HLB = 1 by mistake changes the half whose code weight is 16384 times larger. Check the control word and register address on the wire, then confirm which frequency register actually supplies the active output. Programming a valid inactive register is not evidence that a frequency change should be visible. Oscillator tolerance determines absolute accuracy separately from the word increment.

Test a sequence away from the boundary, followed by a sequence deliberately crossing it. Keep the same reference and frequency counter and compare outputs to the captured SPI writes. A sharp kilohertz-scale step calls for checking half-word selection and arithmetic first. It is not explained by ordinary oscillator drift or by a one-clock delay on FSELECT.

Related selection guide: MERLIN Crystal Timing: Choosing Direct or Divided SIGN BIT OUT with a 5 MHz AD9834 Sine Output | Crystal & Oscillator Handbook

Resource link: https://www.mecxtal.com.cn/en/handbook/ad9834-sign-bit-clock-path.html

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.