@ 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
Bookmarks