5 Crystal oscillator Circuits using CMOS

You want a crystal oscillator circuit, right?  There are a lot of circuits diagram you do. How much frequency and waveform do you want?

This is a simple Crystal oscillator circuit using 74LS04. It provides a square wave of 1MHz to 10MHz. Using an inverter gate IC and controls output frequencies with crystal. I will show you with two circuit ideas below.

The oscillators or frequency generators provide a waveform out in various forms. For example, sine wave, Triangular waveform, and square wave. They generate the frequencies to be a base time. To control an electronic circuit.

The crystal oscillator circuit like this get a popular uses in digitals.

The others oscillators will use transistors or FET to connect together with a network circuit. They may use several parts. For example:

  • a resistor and a capacitor in RC oscillator circuit.
  • a wires or coil and capacitors are a LC-oscillator circuit
  • Using crystal to joint with the resistor.

How Crystal Oscillator circuit Works

Simple crystal oscillator 1-10MHz using inverter gate
Simple crystal oscillator 1-10MHz using inverter gate

In the circuit below is the simple oscillator that generate the square wave or DC pulse.

They match the crystal and two resistors. To working instead of the RC network circuit. Then, Look at this circuit.

  • Use the crystal of 1MHz to 10MHz.
  • And the resistors from 1K to 4.7K. Both resistors R1 and R2 must be same resistance.
  • Working with two inverter gate within IC1

They can generate the output constant frequency of 1MHz to 10 MHz. It depends on that crystal.

Though the stability of this output frequency has slight defects. Because its temperature changes while working. Which it affect to the capacity within the crystal and making frequency tolerances.

But it has very less value. When compare with the common oscillators. That uses RC or LC network.

Next, look at a power supply. This circuit uses a low current consumption and constant power supply of 5V.

Using DCV supply of 9-12 volts comes to DC regulator IC2-78L05. To keep output to A steady voltage. There are capacitor C1 and C3 filter current to smooth.

Then, C2 pull a high frequency that contamination from power supply to ground. And protect Interference that may occur to the circuit.

For IC1 may be LS, HC or HCT types.

How to build

You can make easily this circuit on the universal PCB as Figure.

The components layout of this circuit

The components list

Resistors ¼W +5%
R1, R2_1K to 4.7K
C1: 10uF_16V, Electrolytic
C2: 0.1uF_50V, Polyester
C3: 2.2uF_16V, Electrolytic
D1: 1N4001, 1A 50V Diode
IC1: 74LS04, Inverter gate IC
IC2: 78L05, 5V regulator IC
XTAL1: Crystal between 1MHz to 10MHz
Universal PCB board

Testing Crystal oscillator using TTL 74LS04

I like the TTL crystal oscillator circuit. Because it is good and enjoyable. It just the signal status “1” and “0” only. And the frequency generator is a circuit that I like.

However, when studying the TTL IC., Which is the basis of a digital circuit that everyone should learn it.

we test they on breadboard

Although it can be tricky about the power supply to 5V fixed and high current consumption. It can be used with very high frequency.

When we need a highly accurate, it uses the crystal frequency control better.

This is a simple and cheap crystal oscillator circuit, that we use a few parts comprises a TTL digital number SN7404 or SN74LS04 (Package contains six inverters), four resistors and a crystal.

The tree inverters gate are biased into their linear regions by R1 to R4, and the crystal provides the feedback.

Oscillation can only occur at the crystals basic frequency, for example, we need frequency is 2MHz, we chose crystals as a 2 MHZ.

The output signal has formed is Square wave Oscillator at 5Volt p-p.

Simple TTL Crystal Oscillator circuit
Simple TTL Crystal Oscillator circuit

We test them on a breadboard. We use a 3.579545 MHz crystal then measure frequency output show on LED display highly accurate.

002_the frequency output

However, If you think that this circuit is not good enough for you.
You can see the crystal oscillator circuit is as follows:

Quartz watch crystal oscillator circuit

My Friend need to like a Pulse Generator Oscillator circuit that stable frequency at 32.768KHz with watch crystal,for digital CMOS binary counter, so he tell to me even low prices.

I think may be used the watch crystal and IC4069 or IC4049 inverter CMOS IC. They are very cheap and we can look at the general electronic shop.

In the circuit figure first be produces to square wave form the other part I think you can know them, it very simple. If you take up the voltage power supply to 12V doing the output volt peak up to 12V as well.

But this circuit do not well for high frequency,you should use this a better: Crystal oscillator using TTL

My son get a watch crystal from the Cheap Quartz Alarm Clocks.
001_Cheap Quartz Alarm Clock

They are not yet durable. But we can take a well used components to reuse new our projects.
002_well used components to reuse

Inside Cheap Quartz Alarm Clock, there are component on PCB.
Inside Cheap Quartz Alarm Clock

Here is the watch crystal at 32.768KHz
Here is the watch crystal at 32.768KHz

He examined test waveform with oscilloscope. It is a square wave signal.
test waveform with oscilloscope

Then measure the frequency output by a frequency counter Kits. It is cheapest tool.
The frequency is 32771Hz or 32.771KHz. Meter accuracy Low. And we can adjust the frequency output by C1-56pF trimmer.
006_Then measure the frequency output is 32771HZ

CD4060 crystal oscillator circuit

This is 1Hz oscillator circuit for a standard digital clock,frequency size 1 Hz or 2 Hz. It can be used in the normal clock circuit. It consists of IC-4060 and IC-4013, the IC-4060 single acting Oscillator and Counter. of the frequency determined by the resistor and external capacitor.In the circuit, IC 4060 is a standard frequency generator with quartz crystal. The adjustment period with C2, and counter circuits within the IC 4060 will be only 2 Hz frequency dividing out the pin 3. The IC-4015 in the style of TF / F to divide two of the Clock signal frequency is out 1 Hz.


Next circuit when you want to build a ramping waveform by crystal so also easily we used a singlr transistor 2N3904 or BC548 that is NPN types. the full voltage same power supply level. and you change to other wave form do not difficult or you can see Oscillator astable multi-vibrator with Crystal controller

1. 1 MHz time base using ceramic filter 10.7Mhz
2. 1HZ Standard digital clock
3. The 60hz calibration frequency standards for digital clock by MM5369
4. Pulse Generator Oscillator 32.768KHz by watch crystal
5. Oscillator astable multi-vibrator with Crystal controller

Sharing is caring!

Related Posts


I always try to make Electronics Learning Easy.

JLCPCB - Only $2 for PCB Protytpe(Any Color)

With 600,000+ Customers Worldwide, 10,000+ PCB Orders Per Day

Up to $20 shipping discount on first order now: https://jlcpcb.com/quote

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

newest oldest most voted
Notify of
iranagouda S N

I want an CMOS level design of the Crystal wt can i do For that please give any suggestion…


I was trying to find the solution for non working of similar circuit made with SN7400, as used in one of reputed working instrument. Your circuit is similar to existing problematic circuit except IC SN7404. Both are not oscillating to any frequency, tried with all version of TTL logic. Can you pl explain the reason and solution for it.Will be obliged for solution through email.


if i want to generate 1 Mhz square wave. what are the crystal oscillator, value of R1 and R2 that i should use. Is this design will give out square wave directly?


please can you guys provide voltage divider formula and formula for frequency in the output.

shaikh iram

please, what is the working of circuit in detail is not given … that can easy to understand concept and what is use of each component…

Close Menu