I am programming a PIC 16F676 and have come across a problem. I am using a 20MHz ceramic as the oscillator, but the problem persists even if I use the internal 4MHz one.
You can see from the initialisation code below that I want to set PORTA 1 & 2 as inputs with pull-ups. PORTA,2 works OK, but...