On Sun, 22 Jun 2003, Gaston Gagnon wrote: > The low pass filter output will average the pwm value. A simple RC > network should do. > The idea is to have the pwm output average to match your analog signal. > You watch the comparator output to determine if the pwm value should be > increased or decreased. > The pwm value is the digital image of your analog signal. > Aaah, I see now... I think I need to add 'low pass filters' to my list of things to read up on :) Although I've never tried it, I'm not sure it would work for my application... My analog input is a video signal, so it's changing quite quickly and the low pass filter sounds like it will take some time to settle. So, by the time I've read back the last voltage to compare to the current one, I've lost the rest of the scanline. I think that's how it'll go, anyway :/ Thanks for the idea though, it could come in handy.. Cheers, Tim -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.