AnsweredAssumed Answered

STM32F4 AD9833 SPI

Question asked by hedili.solen on Nov 2, 2014
Latest reply on Sep 29, 2016 by talvar.sulochana
Hello,

I'm using an STM32F4 discovery board and I'm trying to control the DDS waveform generator chip AD9833 with it. I'm not very experienced with ARM. I have a AD9833 module like in the picture:

http://www.ebay.com/itm/like/281440408871

Datasheet of AD9833:

http://www.analog.com/static/imported-files/data_sheets/AD9833.pdf

Now, I happen to find a program that runs with Arduino, I've tested it and got no problem. I wanted to change that code so it is compatible with STM32F4. I used SPI tutorials and managed to get a successful compile but I do not see the desired signals on the oscilloscope. I used the PA5 and PA7 as the SPI pins for SCK and MOSI and PE3 for the FSYNC. Could you please help with this issue, I really appreciate it. I've put both the Arduino and my code on the zip file which can be downloaded:

https://drive.google.com/file/d/0B30BBdr7Hh3MZUlidG9JMmZrQzA/view?usp=sharing

Thank so much for the help!

Outcomes