Can you post your code?
Did you have a look at the following thread?
http://www.picbasic.co.uk/forum/showthread.php?t=543
At least from post 1 to 5
EDIT: oh, make sure you have the latest MPLAB and PICKIT 2 software version
MPLAB 8.00
Pickit 2 : V2.40
You may need to update your PICKIT 2 firmware
try this one
Code:
@ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BOD_ON
' Internal Oscillator
' Enable watch dog timer
' Enable power up timer
' Disable MCLR pin
' Enable brown out detect
TRISIO=%11001011 ' MCLR/PGD/PGC pin as input
GPIO=0
ANSEL = 0
CMCON0= 7
Start:
gpio=255
pause 500
gpio=0
pause 500
goto start
While programming, none of the MCLR/PGD/PGC pins should be loaded.
Last edited by mister_e; - 2nd December 2007 at 01:18.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks