Yes a 16F877, I think the problem is I could take as many samples as I want but junk in = junk out at the end of the day. I need to figure out why on earth the results I'm getting are less than predictable, even though I am taking the A2D samples at the same point in the duty cycle, (from ON to OFF, or a small offset from there. Ed On 22 Feb 2004, at 12:59, Dennis Crawley wrote: > [Edward Cooper] > Sent: Saturday, February 21, 2004 11:40 PM > Subject: [PIC]: Using PWM with A2D's >> Hi guys >> The problem I am having is that whenever the PWM is running my A2D >> values are flying all over the place, I am taking the median of 16 >> each >> time but that isnt helping much. > > and you are using...? > > With a 16f877 you could run pwm independently of the ad module. In > fact you > can take 256 samples into two registers by adding each sample. Then > read > only > the first register. If you need more accuracy than 8bits the method is > different. > > > Regards, > Dennis. > > -- > 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 -- 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