You can use the same idea from this page : http://medo.fov.uni-mb.si/mapp/ds_adc/index.html The conversion time is something about 10 mS. Regards. On 4 Feb 2002 at 20:08, juan manuel garofalo wrote: > Hi there: > > > Does it make sense to build an ADC using a PWM output, low pass filtered and a > comparator from a 16f627 ? > > My idea is to conect the voltage i want to measure to one input of the > comparator and the pic's PWM output to the other input. Then i sweep the > duty cycle from 0 to the point at wich the comparator changes. My guess is that > it's not a very fast ADC, but that's not a concern. Is this a workable solution > or are there any gotchas i should be aware of ? > > > Thanks in advance. > > jm > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > --- Marcelo Puhl Mensa Brasil member http://www.mensa.com.br -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body