I had the exactly same problem yesterday when using 16C622. > But you need to first disable the comparators on Port A by writing a value > of 7 to the CMCON register. This will make the Port A pins behave as >digital i/o pins. My colleague suggested what Bala mentioned above, and it works straight away. Regards, Pei Yin -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.