
Originally Posted by
tarexpanda
I tried to do a really simple blink led, but my code won't compile!
Every time I try to compile:
@ DEVICE PIC16F877A, HS_OSC, WDT_OFF, PROTECT_OFF, LVP_OFF
DEFINE OSC 20
LED VAR PORTB.2
TRISB=%00000000
PORTB=%00000000
main:
low LED
pause 1000
high LED
pause 1000
goto main
END
I get an error message that says I have an undefined symbol 'pic16f877a'
What can I do to fix this?
Are you using MPASM or PM as your assembler?
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks