michael brown wrote: > No offense to Roman, but he seemed to be getting it backwards. ;-) Ha ha! Thats me. Sometimes backwards is better? Re the comparator problem, try config the comparator with a digital output, and use 2 pots for testing, one on each input. That should clear up whether you have a comparator hardware error or some other fault. Also whack a decent cap 1uF etc across each comparator input, you may be getting 300mV worth of spike noise etc. And maybe try another PIC? :o) -Roman > Here is some ugly ascii art of the schematic. > +5V |------------- > | V | 16F628 > |____/\/\/\/\___ | __________________ > | |___RA2__| Comp + Comp - |___RA1___ > 10K V | | | > Gnd __RA3__| Charge Pin | | > | | | | > | |_________________| | > | | > | _________________| > | | > |____/\/\/\/\____|___|(______ > | > 4.7K 1uF V > Gnd -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body