I have a numerically controlled oscillator sketch and application note at http://wiblocks.luciani.org/docs/app-notes/nb1a-nco.html The code runs on my Arduino compatible NB1A board (which integrates a '328 with a quad DAC and a RTC). (* jcl *) http://www.wiblocks.com