PDA

View Full Version : 18F1320 with external osc



Mugelpower
- 12th February 2008, 20:46
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?

krohtech
- 12th February 2008, 22:32
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



This method will not work with PBP see
http://www.picbasic.co.uk/forum/showthread.php?t=7661&highlight=fuses

Post 20