Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 94
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
RateReducer (35)


Next birthdays
11/02 Download (31)
11/02 ScottH (37)
11/03 Electroguy (94)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Crystal oscillators

1 2 
Move Thread LAN_403
Marko
Fri Oct 12 2007, 12:40PM Print
Marko Registered Member #89 Joined: Thu Feb 09 2006, 02:40PM
Location: Zadar, Croatia
Posts: 3145
Hi all,

I just came into a need of a stable squarewave source in low Mhz.
Crystal oscillators are not something I'm familiar with and I would really want to know more about how they work.

I wanted to use a discrete quartz. First thing I lashed up was a crystal over a single 74hc14 gate - it worked, but stability was poor, sometimes it wouldn't oscillate before I touched it by a finger.
Used 4Mhz crystal, at most, 12Mhz worked.
I couldn't get the 32.768kHz watch crystal to work. Only briefly and noisy while I was actually touching the input - it would probably require careful biasing like 74LS04 gates did -see next..

I tried several different caps between crystal and ground (10-100pF) and some pullup resistors, none seemed to help much.

I was very unhappy with the output waveform from the IC too.
Output has to high impednce, rings a lot even with scope probe capacitance and duty cycle seems impossible to keep even.

My biggest problem is that I hardly understand how these things work at all.

I tried constructing an oscillator of 74LS04 gates which I hoped for to be faster, but I just couldn't get it to oscillate.

After half an hour fiddling with potentiometers and nearly exactly copying this circuit Link2 I made it to work, and was stable, but waveform didn't look any better than HC14 version.

I know that it's bad to use logic circuits in linear mode like this, but I rather wouldn't use any special components here.

I tried to construct discrete pierce oscillators which output sinewave but hardly any worked unless it was a directly copied circuit with exact crystal.

What I want is to build an oscillator with discrete crystal with available components that will output at least a decent square wave of few Mhz into scope probe load.
I noticed micro controllers use comparators at their Xtal input - but I don't think I have any that fast.

The crystal appears to be usable both in series and parallel resonant modes. Most oscillators are parallel, though.

I would greatly appreciate all tips regarding this, and some designs I could use.

chip output; my scope could be too slow for this, but still I don't think I'm having duty cycle increased to 60% for that reason. I'm using two buffer gates here.
1192192846 89 FT0 P1010003

probe in this pic is not in it's place
1192192846 89 FT0 P1010001
Back to top
ShawnLG
Fri Oct 12 2007, 01:10PM
ShawnLG Registered Member #286 Joined: Mon Mar 06 2006, 04:52AM
Location:
Posts: 399
I have read somewhere that a 74AC04 is recommended when using it as a crystal oscillator. Also put a 1M ohm resistor in parallel with the crystal to start the oscillation on turn on. Sometimes you would need to use a small pulldown capacitor around 22pf to 33pf on the input an output inverting pins to help stop higher frequency operation. One thing about this type oscillator is that it will not be 50-50 square wave. You will need to double your target frequency and divide it through a D-flipflop to get a 50-50 square wave.
Back to top
Tom540
Fri Oct 12 2007, 03:09PM
Tom540 Banned on 3/17/2009.
Registered Member #487 Joined: Sun Jul 09 2006, 01:22AM
Location:
Posts: 617
I've used crystal oscillators with 74HC14's before. Put the crystal in parallel with the inverter and 1M ohm resistor across the inverter just like Shawn said. I used 15Pf caps on mine but it depends on the crystal. Thats all you need. It works for the 32.768 crystals too which I used for IR detectors on robots. Since I'm bored at work I'm going to draw it for you.
1192201728 487 FT32650 Osc
Back to top
Avi
Fri Oct 12 2007, 04:24PM
Avi Registered Member #580 Joined: Mon Mar 12 2007, 03:17PM
Location: Melbourne, Australia
Posts: 410
If you connect the output to the input of another gate it will possibly have a better waveform and also will not 'load it down' when you try to use the signal.
Back to top
Sulaiman
Fri Oct 12 2007, 07:03PM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
Marko, this Link2 is quite good
Back to top
Marko
Fri Oct 12 2007, 07:30PM
Marko Registered Member #89 Joined: Thu Feb 09 2006, 02:40PM
Location: Zadar, Croatia
Posts: 3145
Tom, that's *exactly* what I did adn I can't get the watch crystal to work. I used 12pf caps.

It oscillates only when I'm holding it with hand and waveform is noisy - scope can't trigger to it, and on some spurious frequencies 500khz and up.

I'l twiddle some more with it this evening.

Sulaiman: I actually have the article from very long ago.

As I figured out, the capacitors ''tune'' the crystal which behaves like a sort of inductor?
What caps do you guys use for 32.768kHz crystal?

Also, I do always use buffer gates, as I already stated. The shown waveform is actually inverted oscillator output.
Back to top
Bjørn
Fri Oct 12 2007, 08:10PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Crystals are quite sensitive so if you don't get one to work properly there is a chance of it being damaged.

This page has good iformation about 32768 Hz oscillators: Link2
Back to top
Tom540
Fri Oct 12 2007, 08:20PM
Tom540 Banned on 3/17/2009.
Registered Member #487 Joined: Sun Jul 09 2006, 01:22AM
Location:
Posts: 617
Hmm, it has been a long time since I've tried it but I have an old board sitting on top of my bench as we speak with this circuit In it. I'll fire it up tonight and double check the circuit. It uses a 40KHz crystal on it.

You do need the output going through another inverter. I got the 15pF caps value form the crystals datasheet.

By the way I remember someone saying that some crystals are meant to operate in harmonic mode. They might be squirrelly or something.
Back to top
Amateur-Scientist
Fri Oct 12 2007, 11:18PM
Amateur-Scientist Registered Member #1015 Joined: Fri Sept 21 2007, 06:43PM
Location:
Posts: 14
Have you looked at the SG-8002 from Epson? I've used these in the past and they work great. Digikey has them for about $5. You just tell them the frequency you want in the notes when you order.
Back to top
Marko
Sun Oct 14 2007, 09:37PM
Marko Registered Member #89 Joined: Thu Feb 09 2006, 02:40PM
Location: Zadar, Croatia
Posts: 3145
I always use at least one additional buffer gate; but still duty cycle is always uneven and waveform is ringy. Flip flop definitely helped there a lot!

BTW, I had no clue how accurate cap values need to be for those watch crystals. Thanks guys for now ^

Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.