/* Version 1.01 2 March 2016 ND6T This source file is under General Public License version 3.0 Control of AD9850 DDS board by Arduino Uno R3 using minimal leads single frequency */ //Prep for AD9850 #define pulse(pin) {digitalWrite(pin, HIGH); digitalWrite(pin, LOW); } void setup() { pinMode(10, OUTPUT);// AD9850 clock pin pinMode(11, OUTPUT);//freq update pin pinMode(12, OUTPUT);//DATA pin pinMode(13, OUTPUT);//Reset pulse(13); pulse(10); pulse(11); // Enables AD9850 serial mode } void loop() { output (7032000); // Put your desired frequency here. SLEEP_MODE_PWR_DOWN; //Synthesizer programmed, no need for controller } void output(float frequency) { long freq = frequency * pow (2,32) /125000000; // Reference clock for (int b=0; b<4; b++, freq >>= 8) shiftOut(12,10,LSBFIRST,freq); shiftOut(12,10,LSBFIRST,0); pulse(11); }