Well, since you got a grown-up compiler, we might as well do things properly...
Code:
'
' PIC Defines
' -----------
@ DEVICE pic12F675, INTRC_OSC_NOCLKOUT
' System Clock Options (Internal)
@ DEVICE pic12F675, WDT_ON
' Watchdog Timer
@ DEVICE pic12F675, PWRT_ON
' Power-On Timer
@ DEVICE pic12F675, MCLR_OFF
' Master Clear Options (Internal)
@ DEVICE pic12F675, BOD_ON
' Brown-Out Detect
@ DEVICE pic12F675, CPD_OFF
' Data Memory Code Protect
@ DEVICE pic12F675, PROTECT_OFF
' Program Code Protection
'
' Hardware Defines
' ----------------
LED var GPIO.1
'
' Initialise PIC
' --------------
TRISIO=%00001000 ' All Output except GPIO.3
CMCON=%00000111 ' Disable Comparators
ANSEL=%00000000 ' Disable ADC
'
' Let's do Blinky Thing...
' ------------------------
Start:
Toggle LED
Goto Start
end
Compile using the command line...
PBP -p12F675 myprog -v
Then if you want to be exotic with your 12F675 download yankeedoodle from here...
http://www.picbasic.co.uk/forum/showthread.php?t=64
Bookmarks