How to get a stable frequency using a crystal oscilltor

Thread Starter

dumindu89

Joined Oct 28, 2010
113
I want to output a stable frequency using a crystal oscilltor. I have 4 MHz crystal oscillator (SD4.00000) and I need to get a square wave (High level: 5 V and low level 0 V) with a stable frequency of 4MHz.

How Can I achieve this from this crystal oscillator? Do I need extra components or circuit?
 

Wendy

Joined Mar 24, 2008
23,421
Crystal oscillators come in different parts. You are confusing the output drivers with the base oscillator.

THE_RB has some neat circuits on his website. One is a way to tweak the output time base with a PIC, another is to make a super simple crystal oven for a crystal, which is one way to really stabilize a oscillator. The norm in most test equipment, matter of fact.

http://www.romanblack.com/

[SIZE=-1]Make a OCXO (xtal oven) for $1[/SIZE]
 
Last edited:

MrChips

Joined Oct 2, 2009
30,805
A quartz crystal by itself does not oscillate. You need in create an oscillator circuit that uses the crystal as a feedback element.

Alternatively, you can purchase a crystal oscillator module that has a ready made crystal oscillator. You apply power and ground (usually +5V and GND) and the output pin provides the oscillator signal at TTL voltage levels. Some modules will also provide outputs at frequencies that have been divided down from the crystal frequency.

Crystal oscillators are generally stable to a few parts per 1,000,000.
 

Wendy

Joined Mar 24, 2008
23,421
The simple fact is the crystal element is much more stable than you will ever get from any kind of LC oscillator. It was considered a vital skill during WWII, and has been pretty much automated since. This is not going to change anytime soon.
 

THE_RB

Joined Feb 11, 2008
5,438
I want to output a stable frequency using a crystal oscilltor. I have 4 MHz crystal oscillator (SD4.00000) and I need to get a square wave (High level: 5 V and low level 0 V) with a stable frequency of 4MHz.
...
Is that one of those square can crystal oscillators with a leg on each corner? If so that is already a complete oscillator and should produce a logic level 4MHz output.

Just watch the output loading, they won't drive a lot of current so it's best to feed that into a high impedance input like a CMOS input etc.
 

ErnieM

Joined Apr 24, 2011
8,377
I couldn't find much on your part, from the limited data here it seems to be a complete oscillator: you give it power and it gives you an output wave. I don't see if it is a sine or square wave, but in either case it is a 3.3V part so you will need to buffer the output to get your 5V levels.

Such a buffer should make a sine into at least a pulse wave. The frequency will be fine but it may not be a square wave 50% duty cycle.

Good luck determining the pinout :D
 
Top