You set the use of an exernal oscillator in your programmer software, in your case you should look for HS oscillator. To make GP0 and 1 analog inputs, GP2 digital output and ADconverter 10bit, you should probably(never used the 12F675) use ....
TRISIO = %00000011
ANSEL = %00110011
ADCON0 = %10000001
ADvalue VAR WORD
ADCIN 0,ADvalue ' Read channel 0
ADCIN 1,ADvalue ' Read channel 1




Bookmarks