![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
hayee
Joined: 05 Sep 2007 Posts: 252
|
crystal capacitor |
Posted: Tue Jan 13, 2009 12:26 am |
|
|
Hi,
I am using pic16f628A and with this i am using 20Mhz crystal (ECX-200-20-1X).
In the datasheet of crystal(ECX-200-20-1X) load capacitance of 20pF is given.
I also read from different websites that if load capacitance is of 20pF then use 32pF capacitor on both sides.
they give the formula to calculate capacitance like that
C.load=(C.actual value + C.parasitic capacitance)/2
also C.parasitic capacitance is usually 5pF.
now if we put values in equation then
20pF=(C.actual value + 5pF)/2 is equal to 32pF.
Now
1- I wanna know that i directly use 20pF capacitor as given in the datasheet or i go with this formula
2- Which ceramic capacitor i can use for this.give me any model no. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Tue Jan 13, 2009 3:28 am |
|
|
The formula, calculates the required capacitance to _give_ a particular load capacitance. Basically, the individual capacitors are paralleled with the parasitic capacitance, and then these two resulting capacitors are seen _in series_to give the atual load on the crystal. Hence the /2.
The parasitic capacitance, will depend _massively_ on the board layout. 5 to 6pF, is a 'good' guide figure, _provided_ the board has been properly laid out, _without_ a power plane, round the oscillator pins. See Microchip's application note on this.
The data sheet for the crystal, is saying that the crystal requires a load capacitance of 20pF, and to give this, provided the board is well laid out, the 32pF capactors are the way to go, and the formula you have is correct.
Microchip, uses crystals that only require 14pF load capacitance. Hence their use of 22pF load capactors.
This becomes 'critical', if you want to get really good accuracy out of your oscillator (things like USB, are much less forgiving than things like RS232....).
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|