Post Go back to editing

how to write command for AD9837

Thread Summary

The user is experiencing issues with SPI commands for sine wave generation on the AD9837 when using an nRF52 DK board, despite the circuit using a CMOS oscillator. The problem might be related to the SPI interface mode. The user is asked to provide a plot of the SPI transmission for further troubleshooting.
AI Generated Content

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.

Thread Notes