
Originally Posted by
xobx
I cant get this code to work with my PIC16F887 :/
Code:
@ device pic16F887, hs_osc, wdt_off, mclr_on, lvp_off, protect_off
DEFINE OSC 20
loop:
high portb.2
pause 500
low portb.2
pause 500
goto loop
end
Im not 100% sure if this is right, is it?
Code:
@ device pic16F887, hs_osc, wdt_off, mclr_on, lvp_off, protect_off
For PM assembler use:
Code:
@ DEVICE PIC16F887, HS_OSC
@ DEVICE PIC16F887, WDT_OFF
@ DEVICE PIC16F887, MCLR_ON
@ DEVICE PIC16F887, LVP_OFF
@ DEVICE PIC16F887, PROTECT_OFF
For MPASM use:
Code:
@ __config _HS_OSC & _WDT_OFF & _PWRTE_ON & _LVP_OFF & MCLR_ON, & PROTECT_OFF
SEE THIS THREAD: http://www.picbasic.co.uk/forum/show...iguration+fuse
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