On Sun, 22 Jun 2003, Gaston Gagnon wrote: > Tim, > Did my suggestion made it to the list or was it discarded for a lack of > good sense ? > Gaston > It did make it, but only after I sent my last email :( Time to change ISPs I think... I'll paste in your email here: > I have not tried this but what about feeding your signal on one input of > a comparator while the other input is connected to the pwm output trough > a low pass filter? > The comparator output is then used to make the pwm follow your analog > signal. > Could the time constant of the filter be made small enough ? > Gaston Hmm, I don't quite understand what you mean here.. I *think* you mean to watch the comparator 'match' flag, then read what the PWM pin was doing at the that instance? If so, isn't the PWM output a square wave, so my analog input will only match if it hits vss or vdd? Or is that what the low pass filter fixes? Cheers, Tim -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics