CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

crystal loading capacitor

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

crystal loading capacitor
PostPosted: Wed Nov 29, 2006 12:35 pm     Reply with quote

I feel a little silly asking this question.
I would like to use this crystal in my design.
CM309S18.432MABJTR with a loading cap. of 18pF
http://rocky.digikey.com/WebLib/Citizen/Web%20Data/Citizen%20Crystal%20Part%20No%20System.pdf
What cap do I connect to ground on the osc1 and osc2?

Is it simply the load value? a 18pF on each side?

or do I need to consider the loading in the input of the PIC pins?

or is it some series/parallel cap calculation?
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Nov 29, 2006 2:59 pm     Reply with quote

Got it.
http://forum.microchip.com/tm.aspx?m=49934
http://ww1.microchip.com/downloads/en/AppNotes/FACT001.PDF
start at 2x the load. Caps are in series thus effective cap is 1/2 of an individual.

ie if loading is rated at 18pF start with 2 caps each rated at 36pF.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 29, 2006 3:30 pm     Reply with quote

Here is a FAQ from a crystal manufacturer.
http://www.foxonline.com/techfaqs_cry.htm#a4

The problem with all the FAQs and Tech notes offered by crystal
manufacturers is that they never show the equation "solved" for
the capacitor value. They show it "solved" for the crystals' load
capacitance (CL), which in fact we already know. I'll solve it
for the cap value:

Let's assume that both caps will be the same value (This is the
standard practice). Then the equation shown in the link becomes:

CL = ((C * C) / 2C ) + Cs

Reducing this down, we get:

CL = C/2 + Cs

Then we can easily solve it for C (the value of each capacitor):

C = (CL - Cs) * 2

Now let's plug in your numbers into it. Let's assume the stray
capacitance (Cs) is 5 pf. (Typical Cs values are from 3 to 5 pf).

C = (18 - 5) * 2

C = 13 * 2

C = 26 pF

You could use 27 pf for that caps, since that's a standard value.

In actual practice, I have used 22 pf for all crystals from 4 MHz to 20 MHz
and it always works. However, if the capacitors are not the proper
value for the circuit, the frequency may be pulled off of the nominal value.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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