Sci.Electronics.Basics

on Electronics-Related.com

  Home  |  Books  |  Sci.Electronics.Design  |  Sci.Electronics.Basics  |  Resources  |  Contact  | 
Sign in
username:

password:

Remember Me

Not a member?
Search Sci.Electronics.Basics

Search Tips

Sci.Electronics.Basics -> Optimum RC values for crystal oscillator?

There are 7 messages in this thread.
You are currently looking at messages 1 to 7.






Author: Bill Bowden
Date: 21:51 09-05-08


I made a low frequency crystal oscillator using a couple CMOS
inverters (CD4069) and a very old 31.5KHz crystal. It's a fairly large
crystal package that measures about 3/4 by 3/8 inch from the 1970s.

The first inverter feeds the second, and the output of the second
connects the crystal back to the input of the first inverter. The
first inverter has a 100K resistor connected from input to output and
there is a 470pF cap from the input to ground. Works well, but I'm
wondering what the best RC values should be? I was thinking the
reactance of the cap should be about equal to the resistor, but that
works out to about 50pF which doesn't work. Lots of different
combinations will work, such as 22K and 1000pF.

How does one determine the best values?

-Bill

Author: Andrew Holme
Date: 05:38 10-05-08


"Bill Bowden" <wrongaddress@att.net> wrote in message
news:3eb67024-6caf-48c6-90b6-0a34a80e1319@y22g2000prd.googlegroups.com...
>I made a low frequency crystal oscillator using a couple CMOS
> inverters (CD4069) and a very old 31.5KHz crystal. It's a fairly large
> crystal package that measures about 3/4 by 3/8 inch from the 1970s.
>
> The first inverter feeds the second, and the output of the second
> connects the crystal back to the input of the first inverter. The
> first inverter has a 100K resistor connected from input to output and
> there is a 470pF cap from the input to ground. Works well, but I'm
> wondering what the best RC values should be? I was thinking the
> reactance of the cap should be about equal to the resistor, but that
> works out to about 50pF which doesn't work. Lots of different
> combinations will work, such as 22K and 1000pF.
>
> How does one determine the best values?
>
> -Bill

The resistor controls loop gain. I would find the lowest value for which
oscillation starts reliably and multiply it by 10.

The loading capacitance will affect frequency. Since you are using a
crystal, presumably you care about frequency (if not, you could use a simple
RC oscillator) so choose the capacitor which gets you closest to 31.500 KHz.

I was recently playing with miniature 32.768 KHz tuning-fork watch crystals,
which require extremely low drive levels; but I presume your large 1970s
crystal is not of this type.



Author: Bill Bowden
Date: 22:16 10-05-08

On May 10, 2:38 am, "Andrew Holme" <a...@nospam.co.uk> wrote:
> "Bill Bowden" <wrongaddr...@att.net> wrote in message
>
> news:3eb67024-6caf-48c6-90b6-0a34a80e1319@y22g2000prd.googlegroups.com...
>
>
>
> >I made a low frequency crystal oscillator using a couple CMOS
> > inverters (CD4069) and a very old 31.5KHz crystal. It's a fairly large
> > crystal package that measures about 3/4 by 3/8 inch from the 1970s.
>
> > The first inverter feeds the second, and the output of the second
> > connects the crystal back to the input of the first inverter. The
> > first inverter has a 100K resistor connected from input to output and
> > there is a 470pF cap from the input to ground. Works well, but I'm
> > wondering what the best RC values should be? I was thinking the
> > reactance of the cap should be about equal to the resistor, but that
> > works out to about 50pF which doesn't work. Lots of different
> > combinations will work, such as 22K and 1000pF.
>
> > How does one determine the best values?
>
> > -Bill
>
> The resistor controls loop gain. I would find the lowest value for which
> oscillation starts reliably and multiply it by 10.
>
> The loading capacitance will affect frequency. Since you are using a
> crystal, presumably you care about frequency (if not, you could use a simple
> RC oscillator) so choose the capacitor which gets you closest to 31.500 KHz.
>
> I was recently playing with miniature 32.768 KHz tuning-fork watch crystals,
> which require extremely low drive levels; but I presume your large 1970s
> crystal is not of this type.

Thanks for the reply.

Yes, the little 32768 tuning fork watch crystals work well with little
drive. I'm just playing around with this old "heavy duty" crystal, I
really don't need to use. My understanding of crystals is they look
like a high Q parallel LC circuit at resonance, and to excite them,
they just need feedback at 180 degrees. But that doesn't seem to work,
and some phase shift is needed for reliable operation, and so the
addition of the RC components to shift the phase slightly so the
feedback is not exactly 180 degrees.

Using 100K and 470pF yields a frequency of 31493 which is only a 7
cycle error out of 31500.

-Bill

Author: John Fields
Date: 08:51 11-05-08

On Sat, 10 May 2008 19:16:49 -0700 (PDT), Bill Bowden
<wrongaddress@att.net> wrote:

>On May 10, 2:38 am, "Andrew Holme" <a...@nospam.co.uk> wrote:
>> "Bill Bowden" <wrongaddr...@att.net> wrote in message
>>
>> news:3eb67024-6caf-48c6-90b6-0a34a80e1319@y22g2000prd.googlegroups.com...
>>
>>
>>
>> >I made a low frequency crystal oscillator using a couple CMOS
>> > inverters (CD4069) and a very old 31.5KHz crystal. It's a fairly large
>> > crystal package that measures about 3/4 by 3/8 inch from the 1970s.
>>
>> > The first inverter feeds the second, and the output of the second
>> > connects the crystal back to the input of the first inverter. The
>> > first inverter has a 100K resistor connected from input to output and
>> > there is a 470pF cap from the input to ground. Works well, but I'm
>> > wondering what the best RC values should be? I was thinking the
>> > reactance of the cap should be about equal to the resistor, but that
>> > works out to about 50pF which doesn't work. Lots of different
>> > combinations will work, such as 22K and 1000pF.
>>
>> > How does one determine the best values?
>>
>> > -Bill
>>
>> The resistor controls loop gain. I would find the lowest value for which
>> oscillation starts reliably and multiply it by 10.
>>
>> The loading capacitance will affect frequency. Since you are using a
>> crystal, presumably you care about frequency (if not, you could use a simple
>> RC oscillator) so choose the capacitor which gets you closest to 31.500 KHz.
>>
>> I was recently playing with miniature 32.768 KHz tuning-fork watch crystals,
>> which require extremely low drive levels; but I presume your large 1970s
>> crystal is not of this type.
>
>Thanks for the reply.
>
>Yes, the little 32768 tuning fork watch crystals work well with little
>drive. I'm just playing around with this old "heavy duty" crystal, I
>really don't need to use. My understanding of crystals is they look
>like a high Q parallel LC circuit at resonance, and to excite them,
>they just need feedback at 180 degrees. But that doesn't seem to work,
>and some phase shift is needed for reliable operation, and so the
>addition of the RC components to shift the phase slightly so the
>feedback is not exactly 180 degrees.
>
>Using 100K and 470pF yields a frequency of 31493 which is only a 7
>cycle error out of 31500.

---
Crystals can look like either series or parallel resonant circuits,
depending on how they're driven.

Here's a pretty good explanation:

http://download.intel.com/design/mcs51/applnots/23065901.pdf

JF

Author: Bill Bowden
Date: 21:03 12-05-08

On May 11, 5:51 am, John Fields <jfie...@austininstruments.com> wrote:
> On Sat, 10 May 2008 19:16:49 -0700 (PDT), Bill Bowden
>
>
>
> <wrongaddr...@att.net> wrote:
> >On May 10, 2:38 am, "Andrew Holme" <a...@nospam.co.uk> wrote:
> >> "Bill Bowden" <wrongaddr...@att.net> wrote in message
>
> >>news:3eb67024-6caf-48c6-90b6-0a34a80e1319@y22g2000prd.googlegroups.com...
>
> >> >I made a low frequency crystal oscillator using a couple CMOS
> >> > inverters (CD4069) and a very old 31.5KHz crystal. It's a fairly
large
> >> > crystal package that measures about 3/4 by 3/8 inch from the 1970s.
>
> >> > The first inverter feeds the second, and the output of the second
> >> > connects the crystal back to the input of the first inverter. The
> >> > first inverter has a 100K resistor connected from input to output and
> >> > there is a 470pF cap from the input to ground. Works well, but I'm
> >> > wondering what the best RC values should be? I was thinking the
> >> > reactance of the cap should be about equal to the resistor, but that
> >> > works out to about 50pF which doesn't work. Lots of different
> >> > combinations will work, such as 22K and 1000pF.
>
> >> > How does one determine the best values?
>
> >> > -Bill
>
> >> The resistor controls loop gain. I would find the lowest value for which
> >> oscillation starts reliably and multiply it by 10.
>
> >> The loading capacitance will affect frequency. Since you are using a
> >> crystal, presumably you care about frequency (if not, you could use a
simple
> >> RC oscillator) so choose the capacitor which gets you closest to 31.500
KHz.
>
> >> I was recently playing with miniature 32.768 KHz tuning-fork watch
crystals,
> >> which require extremely low drive levels; but I presume your large 1970s
> >> crystal is not of this type.
>
> >Thanks for the reply.
>
> >Yes, the little 32768 tuning fork watch crystals work well with little
> >drive. I'm just playing around with this old "heavy duty" crystal, I
> >really don't need to use. My understanding of crystals is they look
> >like a high Q parallel LC circuit at resonance, and to excite them,
> >they just need feedback at 180 degrees. But that doesn't seem to work,
> >and some phase shift is needed for reliable operation, and so the
> >addition of the RC components to shift the phase slightly so the
> >feedback is not exactly 180 degrees.
>
> >Using 100K and 470pF yields a frequency of 31493 which is only a 7
> >cycle error out of 31500.
>
> ---
> Crystals can look like either series or parallel resonant circuits,
> depending on how they're driven.
>
> Here's a pretty good explanation:
>
> http://download.intel.com/design/mcs51/applnots/23065901.pdf
>
> JF

Yes, it looks like a series resonant circuit needs 360 degree feedback
(two inverters) and the parallel circuit with 180 degree feedback
needs only one inverter with some bias.

But, I broke my crystal when I swiped my hand across the table and the
crystal went flying, hit the wall, and landed on the floor, and
doesn't work anymore. So, I tried another crystal of larger size in
the parallel configuration using just one inverter (parallel resonant)
with good results. This thing is huge and measures 1.5 by 3/4 inch.
It's 50KHz and works well using 47K and 470pF. I found I could adjust
the duty cycle with the resistor value.

-Bill

Author: Ardent
Date: 20:19 14-05-08

On Sat, 10 May 2008 10:38:20 +0100, "Andrew Holme" <ah@nospam.co.uk>
wrote:

>I was recently playing with miniature 32.768 KHz tuning-fork watch crystals,
>which require extremely low drive levels;

Hi

Maybe you can hep me. I tried a 32.768 with 8051 microcontroller. I
used 11 pf capacitor and a 330k resistor in series and it worked well
on the breadboard. But when I made a pcb and soldered all the parts
exactly as was in the breadboard the crystal refused to oscillate.

What is missing?

Thanks for your time and attention
Archer

Author: me
Date: 21:13 14-05-08

Ardent <iam@here.com.invalid> wrote in
news:412m2496jl1eta2g9vpbd51tj1edobiav2@4ax.com:

>On Sat, 10 May 2008 10:38:20 +0100, "Andrew Holme" <ah@nospam.co.uk>
>wrote:
>
>>I was recently playing with miniature 32.768 KHz tuning-fork watch
>>crystals, which require extremely low drive levels;
>
>Hi
>
>Maybe you can hep me. I tried a 32.768 with 8051 microcontroller. I
>used 11 pf capacitor and a 330k resistor in series and it worked well
>on the breadboard. But when I made a pcb and soldered all the parts
>exactly as was in the breadboard the crystal refused to oscillate.
>
>What is missing?
>
>Thanks for your time and attention
>Archer
>

probably another 20-30 pf...

try something around 68 pf as a start.


----== Posted via Pronews.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.pronews.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= - Total Privacy via Encryption =---

1


      Contact  |  Electronic Portal


Sci.Electronics.Basics by Keywords
ADC
Antenna
CAD
Coil
Generator
IDE
LCD
Modulator
MOSFET
NiMH
Opamp
Oscilloscope
PID
RS232
Telephone
Transformers
TTL
USB

Sci.Electronics.Basics By Author