Dario Greggio wrote: > Hmmm, I may be missing something but.. I can't get any result out of > the IIR filtering, nor the raw samples, nor their average... > > Well, I simulated 20 samples (one full sine wave) on an Excel > spreadsheet, and tried shifting the sine with respect to the sampling > point, and the result does change a lot - not good. > > Can you suggest where I'm going wrong? It's not clear what exactly you're doing. You have 20 samples of a sine wave, but what are you trying to get from those and what are you getting? If this signal contains harmonics, did you remember to apply a anti-aliasing filter to get rid of the ones your sample stream can't represent? ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist