OSCCON only affects the internal oscillator.
With a 20Mhz crystal and the default configuration bits, the processor will be running at 48Mhz.
DEFINE OSC 48
OSCCON only affects the internal oscillator.
With a 20Mhz crystal and the default configuration bits, the processor will be running at 48Mhz.
DEFINE OSC 48
DT
ok thank you, osc 48 works, but where does it say to write this when using a 20Mhz crystal ?
K
It says it in the default configuration bits (18F4550.inc) when compared to the oscillator structure on those USB chips.
The only way to understand why, is to read (study) the datasheets Oscillator Configurations section.
The oscillators in the USB chips are very different from any of the other PIC families.
http://ww1.microchip.com/downloads/e...Doc/39632e.pdf
DT
Bookmarks