Hello. Is there anybody who has used the builtin comparators on the 16f628 in c2c? I am planning to use the comparators to compare to phototransistors in voltage divider circuits to compare the voltages so I can make my robot phototropic. So far I tried setting the CMCON bints directly and then using an if statement: if(!c1out) comp = 1; to see if it was high and if it did, set a variable high in return. Right now all I get is an error sying something about "incorrect anrar" . If anyone could tell me how to set the cmcon byte and check c1out or c2 out in c2c, please help! __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body