Joe Koberg wrote: > Just for added detail, here is a capture containing "at least one" > complete cycle without a glitch. To me this indicates the table is > being indexed properly (and the counter is wrapping OK), and that the > table values are valid. > > http://s3.ae5ne.com.s3.amazonaws.com/dspic33_bad_sinewave2.pdf OK, now step back from the computer and look at that critically. It's giving you a big clue on a silver platter. Obviously you have a problem putting the right value into the table. Basically, you're skipping time sometimes. In that plot the main glitch lost about 1/4 cycle, which is about 2ms if I understand the legend right. Somewhere you've got a bug in how the angle is being advanced, the timer behind it, or something. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .