Quote Originally Posted by xobx View Post
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