AD9837
Production
The AD9837 is a low power, programmable waveform generator
capable of producing sine, triangular, and square wave outputs.
Waveform generation is required...
Datasheet
AD9837 on Analog.com
hello , i am working on AD9837 & my board is nrf52 dk.At the time of testing I am sending spi commands to AD9837 but it not works well.Can any one help me to resolve the issue.
Here the AD9837 circuit contains 16Mhz crystal oscillator. The command for sine wave generation is
0x0100 (For Reset)
0x2100 (for control register)
0x5A37 (for LSB for 16MHZ crystal i.e., (400*2^28)/(16000000)=6711=0x1A37,
by set DB15 and DB14 are set to 0 and 1 respectively then it is 5A37)
0x4000 (for MSB)
0xC000 (for phase)
0x2000 (for sine wave generation)
I am getting error code "Bad Memory Address" csn any one please tell me what is Bad Memory Address is & how to solve this issue.
GenevaCooper - Moved from StudentZone (Analog Dialogue) to Direct Digital Synthesis (DDS). Post date updated from Sunday, May 28, 2017 3:25 PM UTC to Thursday, July 3, 2025 7:40 PM UTC to reflect the move.
Hi,
The AD9837 requires a CMOS oscillator... a crystal wont work.
You may try to use a bench square wave to check if this is the problem.
Regards,
Miguel
i am using cmos oscillator .It was working fine with aurdino board but not nrf52 dk
May the problem is the SPI interface mode.. Could you provide a plot of SPI transmission between nrf52 and AD9837, please?
Hi pawanvulichi
Have you received the answers you need? Are you able to provide a plot of SPI transmission as requested above?
Thank you
EZ admin
Hi pawanvulichi,
I would like to close this discussion here. Have you received the answer you need? Thank you for letting me know
best regards
Bernhard
I suggest you create a new ticket for your question. It can be confusing to add questions to a closed ticket.
As for the commands, I suggest using 0x2180 to stop the clock before writing the frequency register. The codes for the frequency register are correct.
We do not know the board NRF52DK and we cannot provide support for this product or its SW.