I'm just starting with the PIC micros so am learning as I go. I'm using the PICkit2 to program 16F690 micro that came on the PICkit 2 Low Count Demo board. I'm using MicroCode Studio to write the code and the PICkit 2 programmer software to load the hex file into the 16F690. I'm following the online directions for the first program which is supposed to make an LED blink on and off. All that happens is that the first LED, which correlates to C.0, blinks twice very briefly. I can change it to C.0 to C.1 and then the second LED blinks twice. So I can see that the correct LED is blinking but why does it blink twice and stop. I can take the loop & goto loop out and it will still blink twice very quickly. I can change the pause times and it still has no effect on how long the LED stays on and off. What am I doing wrong? Also, does anyone know of a schematic of the PICkit 2 Low Pin Demo board? There is a PDF of the top layer of traces but a similar picture of the bottom layer of traces would be helpful as well. I should note that I do not have an external power supply hooked up to the board but rather it is getting its power through the PICkit 2 programmer which is hooked up to my computer via USB connection. The code is as follows....
TRISC = %00000000 'Sets port C to all outputs
loop:
High PORTC.0 ' Turn on LED
Pause 500 ' Delay for .5 seconds
Low PORTC.0 ' Turn off LED
Pause 500 ' Delay for .5 seconds
Goto loop ' Go back to loop and blink LED forever
End