Try turning on the Power Up Timer enable...
Caps on the crystal?
Caps across Vdd and Vss pins?
Try turning on the Power Up Timer enable...
Caps on the crystal?
Caps across Vdd and Vss pins?
Thanks,
I've got bypass caps on the Vss and Vdd
I'm using a resonator so I don't think caps are needed
I've tried the Power on Timer and it did not help
any other thoughts? I feel like I am missing something simple
Does the resonator have 2 legs or 3?
2 legs (haven't seen many, but haven't looked either) needs caps and grounds.
3 legs needs a ground...
I have had very intermittent results with 20 Mhz 3 leg resonators. 4 MHz resonators work every time on every chip I have tried but 20 MHz units have been most disappointing. A few work, most don't. I have tried HS and XT settings but the answer is always the same - intermittent working and bulk frustration.
Go for the appropriate cut crystal, preferably with the recommended capacitors and I reckon your clock problems will vanish. I have just soldered the crystal into the outer pin positions of the resonator PCB footprint and left the capacitors off and over the last 5 years or more have never had a unit run significantly off frequency.
HTH
BrianT
Last edited by BrianT; - 2nd September 2008 at 05:14. Reason: typo
Hello,
With all due respect to Brian T. I have no problems whatsoever with the 3 leg resonators, and use 20 mhz almost exclusively. Where I have had problems is from old breadboards. The higher the Frequency, the more affected the circuit is by corrosion, moisture, long lead length induced problems, and just plain funk. If you have to use longish wires to the resonator, then twist them, it seems to help. Make sure your power supply is up to the job and do not forget to tie up the MCLR and tie down any loose inputs. Do not run wires in parallel with the ones going to the resonator, as the added capacitance may load down the OSC.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Echo'ing Joe's reply...
Slower resonators (i.e. <8Mhz)...no problems on the messy/quicky boards...
Faster resonators (i.e. above 10Mhz or so)... Gotta be a clean set up, good solder joints, short runs, clean power, and so on...
I almost always prototype my designs piece by piece on solderless breadboards. That is probably why I am getting dodgy results with fast resonators.
If the solderless version does not work I am most reluctant to build a pcb on the wish that it might with a better layout. I also use a couple of general purpose boards like those from OLIMEX and my own designs but these all have crystals.
thanks
BrianT
Bookmarks