Hi,
Has anyone had trouble getting a 20 mhz crytal with a breadboard and Pic18f452 working reliably.
All I want to do is just make a light blink on and off (reguarly). Everything works fine with a 4MHz crystal (the light blinks reguarly). But when I switch the Crystal to 20 Mhz, update the Configuration Oscilator setting to HS and put DEFINE OSC 20 at the top of my code the light blinks but, its really irregular. (I also made sure that the "update configuration from file setting is switched off"). I have the correct value of capicators for the crystal also.
I'm about to tear my hair out.
Here's my code
DEFINE OSC 20
MAIN:
high portd.1
pause 4000
low portd.1
pause 4000
GOTO main
It's not a powered oscillator (could this be the problem)?
Apologies if this is a really think question, just starting out and have very very basic electronics knowledge.
Thanks
Mark
p.s. Massive Karma is going out to anyone who answers 'cause I'm about to chuck the bloody thing out the window![]()
Bookmarks