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 it. If I remember it right, in that device there's no single bit to convert each analog pin to digital, there's an A/D SFR that select groups of pins as analog. Best regards, Isaac Em 03/01/2013 00:58, Justin Richards escreveu: > Experimenting with PORTA discovered that RA5 is not reflected in the > debugger accurately it seems. > > I clearly (using a shadow register) set the pin high, the pin measures > high but the debugger indicates it is 0 > > Another debugger gotcha, best i read the manual again. > > Justin --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .