Hi Guys,
thats my first try with an 18F
ASM
CONFIG OSCS=OFF ; Oscillator switch OFF
CONFIG OSC=ECIO EC-OSC2 ; Use extern oscillator (20MHZ here)
CONFIG PWRT=ON ; Power-up timer ON
CONFIG WDT=ON ; Watch dog timer ON
CONFIG STVR=ON ; Stack over/underflow ON
CONFIG DEBUG=OFF ; Background debugger OFF
ENDASM
define osc 20
TRISB = 0
loop:
Pause 500 ' Wait .5 second
PORTB.7 = 1
Pause 500 ' Wait .5 second
PORTB.7 = 0
Goto loop
END
but this gives me just compilation errors.
I just want to use an external osc.....i looked at most threads that were made before concerning this defines....just too new to me
may anyone help?
Bookmarks