Either look up the theory of SAR A/D converters, or for very easy (but slow) operation: just adjust the PWM value up or down one step depending on the comparison of the (filtered!) A/D value and the analog input. The PWM setting is your (slowly tracking) conversion result. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of michael brown > Sent: Monday, December 16, 2002 11:40 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Which PIC should I use? > > > On Monday 16 December 2002 02:56 pm, you wrote: > > > - use the PWM + comparator of a 16F628 as a (slow) DIY A/D > > > > Wouter van Ooijen > > Could you point me somewhere on how to do this? I only need about 10 > A/D conversions per second. > > michael brown > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu