PDA

View Full Version : 8Mhz to 20mhz



lerameur
- 14th November 2011, 03:35
I just transfered to Microbasic from using notepad and PM to MPASM
I just found out how to use the internal oscillator.
Now i am using some of my old code on 20Mhz and it is not working
I redefined:

INCLUDE "modedefs.bas"
'OSCCON = %01110000 '8 Mhz
Define OSC 20

and I added the following line in the .inc file:
__config _CONFIG1, _HS_OSC

what more do i have to change to get it working on an external 20Mhz crystal?
thanks

K