View previous topic :: View next topic |
Author |
Message |
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
capacitors |
Posted: Wed Jun 30, 2010 10:24 am |
|
|
Hi i have a problem with the values of Capacitors with 20MHz. i am using 24pF but i think its speed is varied with change of physical position of my board... _________________ ... |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Wed Jun 30, 2010 2:43 pm |
|
|
Of course it will.
It'll also depend on what your crystal actually wants.
A crystal is specified for a particular load capacitace to give the right frequency, and gain behaviour.
Cl = load capacitance the crystal requires. Typically something between 8pF, and 30pF - find from the data sheet of the crystal
Cs = stray capacitance of the board and pins. The pin capacitance is in the PIC data sheet, and the board capacitance will depend on your design. Things to avoid - long leads, running ground planes right round the capacitor legs, etc. etc..
A well designed board, with the crystal close to the PIC, will have Cs, at perhaps 4 to 5pF. A badly designed board with a ground plane close round the crystal legs, and long leads to the chip, can easily go up over 20pF.
Then:
Creqd = (Cl-Cs)*2
The '*2', is because the crystal sees the capacitances _in series_.
So for a 16pF crystal, with 5pF of stray capacitance, the required capacitors become:
(16-5)*2 = 22pF
However double your stray capacitance, and the value drops to just 12pF.
So board layout is _critical_ if you want good accuracy, and reliability from the oscillator...
Best Wishes |
|
|
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
.. |
Posted: Thu Jul 01, 2010 2:09 am |
|
|
means I should use less then 22pF of Caps... _________________ ... |
|
|
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
.. |
Posted: Thu Jul 01, 2010 2:10 am |
|
|
thanks Ttelmah it will help..
thanks a lot.. _________________ ... |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Thu Jul 01, 2010 6:25 am |
|
|
It also means you must be very careful of moving conductive surfaces near the crystal. These will cause the stray capacitance to change and the frequency to change. You may have to put a grounded metal "can" around the crystal circuitry, so that any movement is outside the can and shielded from the crystal. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
... |
Posted: Thu Jul 01, 2010 7:16 am |
|
|
OOo thanks SherpaDoug..
this point is more important i believe.. _________________ ... |
|
|
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
.. |
Posted: Thu Jul 01, 2010 8:17 am |
|
|
15pF will work with 20MHz Crystal with few precautions?? _________________ ... |
|
|
|