I'm not sure how to use PicBasic to configure PIC12F629 so that GP3,4,5 can be used as GPIO. Any idea without using assembly? I want to use internal 20MHz oscillation.
Printable View
I'm not sure how to use PicBasic to configure PIC12F629 so that GP3,4,5 can be used as GPIO. Any idea without using assembly? I want to use internal 20MHz oscillation.
Set the config to
Then you can use the internal 4 MHz osc and GP3 can be used for an input.Code:__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF
Then turn off the ADC
http://www.picbasic.co.uk/forum/showthread.php?t=561
Problem solved. Need to use the following code if not using MPASM assembler in PBP:
asm
device pic12F629, MCLR_OFF,INTRC_OSC_NOCLKOUT, wdt_off, pwrt_on,protect_off
endasm