: { I tried it and it still shows only the 2V signal. Maybe I do a mistake in the code?
I use now:
- include "mbed.h"
- include "AD9954.h" see below for what that is
Serial pc(USBTX, USBRX);
DigitalOut myled(LED1);
AD9954 myDevice(p5, p6, p7, p8, p9);
int main() {
while(1) {
myDevice.CFR2_write(0x00000008);
myDevice.FTW0_write(0x80000000);
uint32_t ftwo;
ftwo = myDevice.ftwo_read();
uint32_t cfcr1;
cfcr1 = myDevice.cfcr1_read();
}
}
where I use Remy's code from this thread http://mbed.org/forum/helloworld/topic/1664/?page=1#comment-8346 to read and write.
I thought that this would create an endless write loop.
Dear all,
I am a little bit puzzled. I just started working with the mbed and in the end the mbed should controll via the SPI a DDS (Direct Digital Synthesizer).
I wanted to look at the SCLK out signal (set to 1 MHz, i used this http://mbed.org/handbook/SPI code) at Pin 7 with an oscilloscope. Accordingly i connected the ground pin and pin 7. What I see when setting the the oscilloscope to 1 us/Div and .5 V/ Div is a CONSTANT signal at 2 V.
Expected for me is a rectangular signal with 3 V peak.
Are there any ideas what is going wrong?