Post Go back to editing

how to get set able frequency at IOUT

Thread Summary

The user is troubleshooting an LVDT excitation circuit using the AD9838BCPZ DDS with a 16 MHz external MCLK. The issue was that the frequency remained fixed despite writing new values. The solution involved correctly setting the RESET bit in the control register, writing the frequency register, and then clearing the RESET bit. The desired output frequency is 7 kHz, and the correct SPI transactions are 0x2108, 0x4AC1, 0x4007, 0x0008.
AI Generated Content
Category: Software
Product Number: AD9838BCPZ, AD9838
Software Version: STM32CubeIDE Version: 1.19.0

   

I’m designing an LVDT excitation circuit using AD9838BCPZ DDS with a 16 MHz external MCLK, controlled by STM32F103C8T6.
The board generates a clean sine wave, but the frequency remains fixed even when new frequency values are written.
I’ve attached the schematic and would like help reviewing the design and understanding proper frequency generation and control

Thread Notes

Parents
  • What frequency is the desired output?

    Setting the frequency register involves several transactions on the SPI bus. I recommend following the flow diagram in Figure 25. First set the RESET bit in the control register, followed by two transactions to write the frequency register. Finally, clear the RESET bit to get the DDS running. Each transaction is 16 bits in length. Note that data is captured on the falling edge of SCLK, not the rising edge.

  • Thanks for the reply.
    The desired output frequency is 7 kHz. I followed the same sequence, and the data is captured on the falling edge of SCLK as well.
    However, I’m still not getting the expected output. I’ll recheck the setup once again and confirm.

Reply Children
No Data