//#include //#include "MiniArDSP.h" PROGMEM prog_int16_t sinewave[] = { // this file is stored in MiniArDSP and is a 1024 value // sinewave lookup table of signed 16bit integers // you can replace it with your own waveform if you like #include }; void setup() { TCCR2A = 0x12; TCCR2B = 0x01; OCR2A = 0x03; OCR2B = 0x01; DDRD |= 0x08; DDRB |= 0x2e; SPCR = 0x58; SPSR = 0x01; PORTB |= 0x04; // SS high TCCR1A = 0x40; TCCR1B = 0x09; OCR1AH = 0x07; OCR1AL = 0xff; delay(100); // setup dds chip - control register (0b00xx...) PORTB &= ~0x04; // SS low SPDR = 0x10; // send high byte (B28=off,HLB=msb) while ((SPSR & (1<