See if this configuration works for you. Note - you won't need the external pull-ups.
Code:
@ device pic12f683, fcmen_off, ieso_off, intrc_osc, wdt_off
@ device pic12f683, pwrt_on, mclr_off, protect_off
GPIO = %00000000 ' All outputs low
CMCON0=7 ' Comparators off
ANSEL=0 ' All digital
TRISIO=%00111000 ' Setup ins & outs
WPU=%00110000 ' Pull-ups on for GPIO.4 & 5 inputs
OPTION_REG.7=0 ' Enable internal pull-ups
The default PBP header file for this device doesn't call-out the power-up timer (PWRT), so it defaults to off. This can cause some odd things to happen if your power supply is slow rising.
You don't need to configure ADCON0 or VRCON unless you're using A/D & comparators.
Bookmarks