> RA5 is an analog input. The behavior you describe is exactly what > happens when you forget to change an analog pin to digital before using i= t. That was it, reading the manual again I (re-)realised it was a analog pin, but was the only one that seems to behave this way. With the device the manual seems to imply there is a one to one relationship between ANSEL settings and the corresponding Analog input, I too thought it was grouped. Cheers Justin --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .