I tried to follow App Note 1070 to create 400 MHz sin wave for AD9833 chip. The only different is my MCLK is 16 MHz so the FREQ0 calculation is 0x1A37 for my case.
Here is the sequence on the SPI bus (waveform attached, too):
I did see the sin waveform but the problem is it's not 400 Hz but 200 KHz. I don't know what I did wrong? Any idea?
For the SPI bus, the SCLK is 6 MHz while MCLK is 16 MHz. Does it matter?
I use SPI MODE 0 (POL = 0, PHA = 0): active high, data sampling on rising edge of SCLK.
I use ARM A8 processor.
Any help is appreciated. Thanks.