I thought(!) I understood that PortA 4 & 5 on a PIC16F684 could be used as general purpose I/O pins with an internal oscillator. So far I have been unable to achieve this. I have this at the top of my programme:-
@_CONFIG INTOSCIO & _WDT_ON & MCRE_OFF & _CP_OFF
ANSEL = $00
OSCON = %01100001
CMCON0 = 7
TRISA = $00
TRISC = $00
All other pins work fine but A4 continues to display a pretty 1Mhz clock output and A5 just looks at me!
I've RTFM endlessly and tried several things including subtle changes to the oscillator configuration fuse to no avail. So, to stop premature baldness can someone tell me what the problem is!
Many thanks
Adrian