Fork me on GitHub

Project Notes

#688 Crystal-locked 4MHz Oscillator

Testing a 4MHz crystal-locked Pierce oscillator using CD4001 CMOS NOR gates.

Build

Notes

This circuit is a variation on the theme from LEAP#656 Crystal-Locked Schmitt Oscillator using NOR gates and a 4MHz crystal.

Circuit Design

Key design notes:

  • Instead of simple inverters, the design uses NOR gates from a CD4001 chip. The NOR gate may either be wired:
    • both inputs tied together, so the output is always the inverse of the input
    • one input tied to ground, so the output is always the inverse of the other input
  • With a 4MHz crystal, so I needed to add small stabilization capacitors to maintain oscilation (in this case 30pF)
  • R1 is a feedback resistor uses the gate output to ensure sufficient charge on the gate input to oscillate. Values are not critical but as a rule : the higher the frequency, the lower resistance required. 4.7MΩ works fine in this case.

bb

schematic

bb_build

Test Results

Measuring 3.99991MHz, with scope connections as follows:

  • CH1 Yellow: buffered oscillator output
  • CH2 Blue: oscillator output

At 4MHz, waveforms are far from perfect square waves. Aside from breadboard inefficiencies, this is mainly because the oscillator is running in the region of the CD4001’s max propagation delay of 250ns i.e 4MHz

scope

Credits and References

About LEAP#688 CMOS/TTLOscillators
Project Source on GitHub Return to the LEAP Catalog

LEAP is just my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know (or send a PR!). See the individual projects for credits where due.

For a while I have also included various scale modelling projects here too, but I've now split those off into a new repository. Check out LittleModelArt if you are looking for the modelling projects!

Project Gallery Notebook LittleCodingKata LittleModelArt More on my blog