The PICkit1 has 8 LEDs all being controlled by GPIO.1, 2, 4 and 5.
If you want to blink a single LED, this will work to blink D7.
@ DEVICE PIC12F675, INTRC_OSC_NOCLKOUT, WDT_OFF, MCLR_OFF
ANSEL=0
CMCON=%00000111
TRISIO=0
LEDS VAR GPIO
Loop:
LEDS = 2
Pause 200
LEDS = 1
PAUSE 200
goto Loop
End
If you look at the PICkit1 schematic, you'll see why & how this works.
Bookmarks