Crystal Problems (by Tom J.)
I am truly disappointed in myself as I write this.
I've been trying for days to run with a 20MHS crystal on PIC16F628A & PIC16F886 and neither will run with the crystal despite trying everything so I'm submitting everything here and maybe one of you guys will point to a simple rookie mistake.
I can run this on the internal oscillator just fine
1) Changed the crystal 3 times
2) Tried Ceramic Capacitors at 30 pf (marked 300J)
3) Tried Ceramic Capacitors at 22 pf (marked 200)
4) Tried LDMicro CONFIG and also tried multiple combinations on CONFIG bits in
the Minipro software (Always 10, HS OSC)
5) MCLR both high and open
I'm open to any suggestions, making a few posts so I can get some screenshots and the very simple ladder posted.
Thanks, Tom
(no subject) (by Tom J.)
And as usual you were exactly correct MGP!
I was trying to use caps from a big box that's been in my lab for decades, bad, wrong, I don't care they're all going in the garbage.
We have exactly one electronics supply local and they have only a few things in stock and way too expensive but I did find two variables there and once I installed them all I had to do was dial them a tad to get it running. Check that thread where we were discussing serial LCD when you get a chance! Tom
(no subject) (by Tom J.)
A quick question, if one were to put variable caps in the oscillator would the frequency be tuneable within a small range around the crystal frequency?
I'm disappointed that I don't know, this is still a new level.
(no subject) (by Tom J.)
Thank you MGP, that's an interesting read, and a tiny bit of unintentional comedic value to boot.
I'm counting cycle time so I can simply tweak the count like Jonathan recommended.
To be safe I should run the variable caps as well and ensure the oscillator is accurate.