Ake Hedman wrote: > My thought was to also remove ripple in software. While theoretically possible, I think this is going to be very difficult and result in significant errors in practise. The A/D sampling would have to be precisely timed with the PWM period to get consistant results, but then you wouldn't know what those results meant because there would be a net sampling bias on the PWM signal. Use 2 or 3 poles of low pass filter and an opamp buffer. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist