Electronics-Related.com
Forums

Capacitance value for PIC crystal

Started by P E Schoen June 6, 2013
On Jun 6, 2:55=A0pm, "P E Schoen" <p...@peschoen.com> wrote:
> For most of my projects I use either a 14.7456 MHz crystal (57600*256) or > 20.000 MHz (for USB 96 MHz 24*f/5). The 20 MHz crystal I am using specifi=
es
> a 20 pF parallel load, but my boards have 12 pF capacitors. I just notice=
d
> this and I think the value had been selected for a previous brand of > crystal, but the oscillator frequencies measure pretty close to the ideal > value, as follows for five boards: > > Board 1: 20.00258 +0.013% 130PPM > Board 2: 20.00039 +0.002% =A020PPM > Board 3: 20.00068 +0.003% =A030PPM > Board 4: 20.00085 +0.004% =A040PPM > Board 5: 20.00073 +0.004% =A040PPM > > My specification is 0.02%, or 200 PPM, so all are within spec, but perhap=
s
> with the 20 pF capacitors the frequency will be much closer and variation > will be positive and negative. But the application notes I found seem a b=
it
> confusing as to the correct way to figure the load capacitance: > > http://www.statek.com/pdf/tn33.pdfhttp://www.foxonline.com/pdfs/xtaldesig=
nnotes.pdfhttp://www.oscilent.com/spec_pages/PNDescrpt/Load_Cap.htm
> > It seems that the capacitance is determined by: > > CL =3D (CL1*CL2)/(CL1+CL2)+CS > > Where CL1 and CL2 are the load capacitors and CS is the stray capacitance=
,
> generally figured about 5 pF. So with my 12 pF capacitors the actual CL =
=3D 11
> pF and with 20 pF capacitors CL =3D 15 pF and with 47 pF capacitors (as I > think I used at one time), CL =3D 28.5 pF. The ideal value appears to be =
30
> pF. I don't know the actual stray capacitance, but it is a double sided > board with 0805 SMT capacitors and a PIC18F4455 microcontroller in a TQFP=
-44
> package. It has a value of 15 pF or the OSC2 pin but this is characterize=
d
> for external clock drive into OSC1. > > I think the 12 pF capacitors are OK but I think I will try changing to 20=
pF
> and see if the frequency comes in closer. The crystal itself is rated 30 =
PPM
> and 100 PPM over the temperature range. Except for board #1, I'm just abo=
ut
> there. > > But the CL formula seems a bit strange. Usually, when I see product over > sum, its square root is taken, as for parallel resistors. And if one of t=
he
> capacitors is zero, the other apparently has no effect, and that just see=
ms
> wrong. > > Paul
is it possible to 'pull' those crystals 1kHz with only 8pF? probably not. What does LTspice show?
On 08/06/2013 07:03, Jan Panteltje wrote:
> On a sunny day (Fri, 7 Jun 2013 17:19:06 -0400) it happened "P E > Schoen" <paul@peschoen.com> wrote in <kotig8$l2a$1@dont-email.me>: > >> "Mike Perkins" wrote in message >> news:etqdnZyoWrW73S_MnZ2dnUVZ7sWdnZ2d@bt.com... >> >>> If its a genuine AT cut crystal then I would have hoped for a >>> quite = >> good >>> performance for just a small temperature change. >> >>> http://cfm.citizen.co.jp/english/product/cvo_character.html >> >> The ECS crystals I'm using are 100 PPM over -40 to +85 C, with >> initial tolerance of 30 PPM. Not bad for less than a dollar: >> http://www.mouser.com/ds/2/122/hc-49usx-dn-16344.pdf >> >> You can get them with as little as 10 PPM tolerance and stability, >> for = about $3 each: >> http://www.mouser.com/ds/2/122/ecx-32-6206.pdf > > I was actually referring to the temperature coefficient of the caps, > not the crystal. And not sure how stable input capacitance of PIC is > versus temperature. Try heating and lowering your setup 10 degrees > and see if it still meets spec.
NP0, or C0G specced capacitors should have a capacitance virtually independent of temperature. I would have assumed that drift as function of temperature would be more likely be down to the PIC itself, where the speed, gain and threshold of the semiconductor would be far more sensitive on temperature, and far outweigh any change in capacitance or crystal frequency. -- Mike Perkins Video Solutions Ltd www.videosolutions.ltd.uk
On a sunny day (Sat, 08 Jun 2013 18:45:49 +0100) it happened Mike Perkins
<spam@spam.com> wrote in <2eednSU9AtZP8C7MnZ2dnUVZ8kqdnZ2d@bt.com>:

>On 08/06/2013 07:03, Jan Panteltje wrote: >> On a sunny day (Fri, 7 Jun 2013 17:19:06 -0400) it happened "P E >> Schoen" <paul@peschoen.com> wrote in <kotig8$l2a$1@dont-email.me>: >> >>> "Mike Perkins" wrote in message >>> news:etqdnZyoWrW73S_MnZ2dnUVZ7sWdnZ2d@bt.com... >>> >>>> If its a genuine AT cut crystal then I would have hoped for a >>>> quite = >>> good >>>> performance for just a small temperature change. >>> >>>> http://cfm.citizen.co.jp/english/product/cvo_character.html >>> >>> The ECS crystals I'm using are 100 PPM over -40 to +85 C, with >>> initial tolerance of 30 PPM. Not bad for less than a dollar: >>> http://www.mouser.com/ds/2/122/hc-49usx-dn-16344.pdf >>> >>> You can get them with as little as 10 PPM tolerance and stability, >>> for = about $3 each: >>> http://www.mouser.com/ds/2/122/ecx-32-6206.pdf >> >> I was actually referring to the temperature coefficient of the caps, >> not the crystal. And not sure how stable input capacitance of PIC is >> versus temperature. Try heating and lowering your setup 10 degrees >> and see if it still meets spec. > >NP0, or C0G specced capacitors should have a capacitance virtually >independent of temperature. > >I would have assumed that drift as function of temperature would be more >likely be down to the PIC itself, where the speed, gain and threshold of >the semiconductor would be far more sensitive on temperature, and far >outweigh any change in capacitance or crystal frequency.
Yes, possible. I noticed the drift when soldering different caps to the combination crystal+PIC+caps: http://panteltje.com/panteltje/pic/freq_pic/frequency_meter_before_closing_case_img_1536.jpg http://panteltje.com/panteltje/pic/freq_pic/ Had to wait several minutes for it to stabilize. It is actually a really nice frequency counter that takes up very little space, but only calibrated at room temperature. IIRC have seen temperature drift in other applications with these sort of caps too.
>-- >Mike Perkins >Video Solutions Ltd >www.videosolutions.ltd.uk >
On 08/06/2013 18:56, Jan Panteltje wrote:
> On a sunny day (Sat, 08 Jun 2013 18:45:49 +0100) it happened Mike > Perkins <spam@spam.com> wrote in > <2eednSU9AtZP8C7MnZ2dnUVZ8kqdnZ2d@bt.com>: > >> On 08/06/2013 07:03, Jan Panteltje wrote: >>> On a sunny day (Fri, 7 Jun 2013 17:19:06 -0400) it happened "P E >>> Schoen" <paul@peschoen.com> wrote in >>> <kotig8$l2a$1@dont-email.me>: >>> >>>> "Mike Perkins" wrote in message >>>> news:etqdnZyoWrW73S_MnZ2dnUVZ7sWdnZ2d@bt.com... >>>> >>>>> If its a genuine AT cut crystal then I would have hoped for a >>>>> quite = >>>> good >>>>> performance for just a small temperature change. >>>> >>>>> http://cfm.citizen.co.jp/english/product/cvo_character.html >>>> >>>> The ECS crystals I'm using are 100 PPM over -40 to +85 C, with >>>> initial tolerance of 30 PPM. Not bad for less than a dollar: >>>> http://www.mouser.com/ds/2/122/hc-49usx-dn-16344.pdf >>>> >>>> You can get them with as little as 10 PPM tolerance and >>>> stability, for = about $3 each: >>>> http://www.mouser.com/ds/2/122/ecx-32-6206.pdf >>> >>> I was actually referring to the temperature coefficient of the >>> caps, not the crystal. And not sure how stable input capacitance >>> of PIC is versus temperature. Try heating and lowering your >>> setup 10 degrees and see if it still meets spec. >> >> NP0, or C0G specced capacitors should have a capacitance virtually >> independent of temperature. >> >> I would have assumed that drift as function of temperature would >> be more likely be down to the PIC itself, where the speed, gain >> and threshold of the semiconductor would be far more sensitive on >> temperature, and far outweigh any change in capacitance or crystal >> frequency. > > Yes, possible. I noticed the drift when soldering different caps to > the combination crystal+PIC+caps: > http://panteltje.com/panteltje/pic/freq_pic/frequency_meter_before_closing_case_img_1536.jpg > http://panteltje.com/panteltje/pic/freq_pic/ > Had to wait several minutes for it to stabilize. It is actually a > really nice frequency counter that takes up very little space, but > only calibrated at room temperature. IIRC have seen temperature > drift in other applications with these sort of caps too. >
Neat - it is cheating to measure its own frequency!! http://freenet-homepage.de/dl4yhf/freq_counter/freq_counter.html doesn't seem to work? -- Mike Perkins Video Solutions Ltd www.videosolutions.ltd.uk
On a sunny day (Sat, 08 Jun 2013 20:27:30 +0100) it happened Mike Perkins
<spam@spam.com> wrote in <BeqdnWhjoo46GC7MnZ2dnUVZ8madnZ2d@bt.com>:

>>> I would have assumed that drift as function of temperature would >>> be more likely be down to the PIC itself, where the speed, gain >>> and threshold of the semiconductor would be far more sensitive on >>> temperature, and far outweigh any change in capacitance or crystal >>> frequency. >> >> Yes, possible. I noticed the drift when soldering different caps to >> the combination crystal+PIC+caps: >> http://panteltje.com/panteltje/pic/freq_pic/frequency_meter_before_closing_case_img_1536.jpg >> http://panteltje.com/panteltje/pic/freq_pic/ >> Had to wait several minutes for it to stabilize. It is actually a >> really nice frequency counter that takes up very little space, but >> only calibrated at room temperature. IIRC have seen temperature >> drift in other applications with these sort of caps too. >> > >Neat - it is cheating to measure its own frequency!!
Interesting is why it does not measure 20.000... but one lower :-)
>http://freenet-homepage.de/dl4yhf/freq_counter/freq_counter.html doesn't >seem to work?
Yes, links change, this project is already a few years old. I do not always keep up with those changes... I think if you google dl4yhf (callsign) it will show up, lemme try: http://www.qsl.net/dl4yhf/freq_counter/freq_counter.html Moved to qsl.net...
On 6/7/2013 8:05 PM, bloggs.fredbloggs.fred@gmail.com wrote:
> > Another consideration is the phase delay introduced by the gates internal to the PIC. If these are running at say 10ns, that is 10/50 x 360=72o in addition to the 180o inversion. The Pierce allows for 90o from the crystal and points forward, so with the additional 72o, that leaves just 18o shift from the crystal. As the PIC gate Tpd moves around with temperature ( a minuscule amount), so does the phase shift across the crystal, and so does the loop frequency. If you model the crystal as series LC , all paralleled with load C, with assumed Q and look at phase versus delta-f/fo, that is chnage in phase as a function of ratio of frequency perturbation to resonant frequency ( the most popular plot), that will give an idea of how the oscillator loop frequency pulls with its phase shift. > I think Co in that manufacturer's pulling equation is also called header capacitance, or the net capacitance between the metalization of the crystal and the conductive housing.
They often claim C0 is due to the case, etc, but the source is irrelevant. The values are part of a model that seems to work fairly well regardless of exactly where it comes from. I seem to recall that one of the two capacitances, the "motional" capacitance IIRC, is very small, typically in the fF range. So that might be C1. Assuming it is 27 pF is likely a major source of error. Some crystal makers give all the data needed to verify that you are designing the oscillator correctly, but many don't. -- Rick
On 6/7/2013 5:19 PM, P E Schoen wrote:
> "Mike Perkins" wrote in message > news:etqdnZyoWrW73S_MnZ2dnUVZ7sWdnZ2d@bt.com... > >> If its a genuine AT cut crystal then I would have hoped for a quite good >> performance for just a small temperature change. > >> http://cfm.citizen.co.jp/english/product/cvo_character.html > > The ECS crystals I'm using are 100 PPM over -40 to +85 C, with initial > tolerance of 30 PPM. Not bad for less than a dollar: > http://www.mouser.com/ds/2/122/hc-49usx-dn-16344.pdf > > You can get them with as little as 10 PPM tolerance and stability, for > about $3 each: > http://www.mouser.com/ds/2/122/ecx-32-6206.pdf > > And these are impressive for about $0.40: > http://www.mouser.com/ProductDetail/ECS/ECS-200-20-1X/?qs=sGAEpiMZZMsBj6bBr9Q9aWDZfF25lWfiUcdswAjCEnw%3d
Just remember that the various frequency errors are additive including the aging spec which is often the worst one of the bunch considered over a few years. -- Rick
On 6/8/2013 2:06 AM, Jan Panteltje wrote:
> On a sunny day (Fri, 07 Jun 2013 20:59:27 +0100) it happened John Devereux > <john@devereux.me.uk> wrote in<87ehcditeo.fsf@devereux.me.uk>: > >> Jan Panteltje<pNaonStpealmtje@yahoo.com> writes: >> >>> On a sunny day (Fri, 07 Jun 2013 19:55:42 +0100) it happened John Devereux >>> <john@devereux.me.uk> wrote in<87ip1piwcx.fsf@devereux.me.uk>: >>> >>>> He said 0.02% for the final frequency, not the capacitance tolerance! >>> >>> I am missing a temperature spec in all this. >>> When I tried to calibrate my little PIC frequency counter against a Rubidium standard by adding caps, >>> I found that a few degrees Celsius temperature change makes a lot of difference. >>> Zero tc caps may help, trimmers are useful as others pointed out. >> >> Caps that value are usually "zero TC" anyway aren't they? > > No no, the small disk ceramics of a few pF drift a lot.
That's like saying, cars go really slow, you know, the ones with wheels on all four corners. Do you have any idea of the type of cap on the inside? -- Rick
On 6/8/2013 8:54 AM, Robert Macy wrote:
> On Jun 6, 2:55 pm, "P E Schoen"<p...@peschoen.com> wrote: >> For most of my projects I use either a 14.7456 MHz crystal (57600*256) or >> 20.000 MHz (for USB 96 MHz 24*f/5). The 20 MHz crystal I am using specifies >> a 20 pF parallel load, but my boards have 12 pF capacitors. I just noticed >> this and I think the value had been selected for a previous brand of >> crystal, but the oscillator frequencies measure pretty close to the ideal >> value, as follows for five boards: >> >> Board 1: 20.00258 +0.013% 130PPM >> Board 2: 20.00039 +0.002% 20PPM >> Board 3: 20.00068 +0.003% 30PPM >> Board 4: 20.00085 +0.004% 40PPM >> Board 5: 20.00073 +0.004% 40PPM >> >> My specification is 0.02%, or 200 PPM, so all are within spec, but perhaps >> with the 20 pF capacitors the frequency will be much closer and variation >> will be positive and negative. But the application notes I found seem a bit >> confusing as to the correct way to figure the load capacitance: >> >> http://www.statek.com/pdf/tn33.pdfhttp://www.foxonline.com/pdfs/xtaldesignnotes.pdfhttp://www.oscilent.com/spec_pages/PNDescrpt/Load_Cap.htm >> >> It seems that the capacitance is determined by: >> >> CL = (CL1*CL2)/(CL1+CL2)+CS >> >> Where CL1 and CL2 are the load capacitors and CS is the stray capacitance, >> generally figured about 5 pF. So with my 12 pF capacitors the actual CL = 11 >> pF and with 20 pF capacitors CL = 15 pF and with 47 pF capacitors (as I >> think I used at one time), CL = 28.5 pF. The ideal value appears to be 30 >> pF. I don't know the actual stray capacitance, but it is a double sided >> board with 0805 SMT capacitors and a PIC18F4455 microcontroller in a TQFP-44 >> package. It has a value of 15 pF or the OSC2 pin but this is characterized >> for external clock drive into OSC1. >> >> I think the 12 pF capacitors are OK but I think I will try changing to 20 pF >> and see if the frequency comes in closer. The crystal itself is rated 30 PPM >> and 100 PPM over the temperature range. Except for board #1, I'm just about >> there. >> >> But the CL formula seems a bit strange. Usually, when I see product over >> sum, its square root is taken, as for parallel resistors. And if one of the >> capacitors is zero, the other apparently has no effect, and that just seems >> wrong. >> >> Paul > > is it possible to 'pull' those crystals 1kHz with only 8pF? probably > not. > What does LTspice show?
Good luck on that. I don't think there are any good LTspice models for crystals... at least not the ones I wanted to simulate. I think they just tell you to construct a cap model using the crystal parameters which most crystal makers don't provide. A model is only as good as the data. I'd say a test is worth a lot more than a simulation in this case. -- Rick
On Sat, 08 Jun 2013 19:35:33 -0400, rickman wrote:

> Good luck on that. I don't think there are any good LTspice models for > crystals... at least not the ones I wanted to simulate. I think they > just tell you to construct a cap model using the crystal parameters > which most crystal makers don't provide. A model is only as good as the > data.
Roll your own. A combination of capacitance, inductance, and resistance. What else do you need? If you have insufficient data - measure... -- "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." (Richard Feynman)