This is my first post on here and I hoped it wouldn't be to ask a question.
I am having a with the 18f4550 and an external oscillator I have the circuit built with a 20mhz crystal and 2 22pf caps. I used the schematic posted on eegeek.net
http://eegeek.net/images/stories/PIC/18 ... _basic.png
The problem I am having is that I am unable to get the 18f4550 to work with an external crystal. Running programs off of the internal oscillator works fine but when attempting use the crystal it just locks up.
This even happens with the code generated from EasyHID.
I'm using the following code for setting up the 18f4550
Code: Select all
// device and clock...
Device = 18f4550
Clock = 48
Config
FOSC = HSPLL_HS,
PLLDIV = 2,
CPUDIV = OSC2_PLL3,
USBDIV = 2
Const Threshold = 200
Thanks for the help.
Drew