make sure of your config fuses setting, LVP mode must be disabled, and you must select the internal OSCillator as well.
once done, you must set the internal OSC to 4MHZ, by default it's 32KHz... pretty slow...
i don't know if PBC support the configuration fuse setting, but you could add the following at the top of your code to see if it return you any error..
Code:
@ DEVICE PIC16F818, INTRC_OSC_NOCLKOUT
@ DEVICE PIC16F818, WDT_OFF
@ DEVICE PIC16F818, MCLR_ON
@ DEVICE PIC16F818, BOD_ON
@ DEVICE PIC16F818, LVP_OFF
@ DEVICE PIC16F818, CPD_OFF
@ DEVICE PIC16F818, WRT_OFF
@ DEVICE PIC16F818, DEBUG_OFF
@ DEVICE PIC16F818, CCPMX_OFF
@ DEVICE PIC16F818, PROTECT_OFF
Bookmarks