Hi,

What is wrong with this code, I know that is has to be very simple but I can not get it to work!

@ DEVICE pic12F629, INTRC_OSC_NOCLKOUT ; System Clock Options
@ DEVICE pic12F629, WDT_ON ; Watchdog Timer
@ DEVICE pic12F629, PWRT_ON ; Power-On Timer
@ DEVICE pic12F629, MCLR_OFF ; Master Clear Options (Internal)
@ DEVICE pic12F629, BOD_OFF ; Brown-Out Detect
@ DEVICE pic12F629, CPD_OFF ; Data Memory Code Protect
@ DEVICE pic12F629, PROTECT_OFF

DEFINE OSCCAL_1K 1' Set OSCCAL for 1k
cmcon = 7 ' Comparator OFF

loop:
High GPIO.0 ' Turn on LED connected to PORT0
Pause 500 ' Delay for .5 seconds

Low GPIO.0 ' Turn off LED connected to PORTB.0
Pause 500 ' Delay for .5 seconds

GoTo loop ' Go back to loop and blink LED forever
I have tried to download a hexfile for the 12F629 that blinks GPIO.0 and 1 that is working just fine, but when I try the above code it don't work.

An the worst thing is that when i have tried to run the above code my PIC dies, in other words it is not possible to program it again

Regards
Sharky