element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs CMOS Crystal Oscillator
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jc2048
  • Date Created: 8 Sep 2021 12:35 PM Date Created
  • Views 1622 views
  • Likes 10 likes
  • Comments 9 comments
  • fpga clock
  • oscillator
  • cmos
  • xtal
  • jc2048
Related
Recommended

CMOS Crystal Oscillator

jc2048
jc2048
8 Sep 2021

Introduction

 

I'm currently looking at doing some digital audio stuff with an FPGA. Ideally, I need to be

working with a clock that's a multiple of one of the common audio sample rates (48kHz, 96kHz, or

192kHz). 12.288MHz would be a good choice, being a reasonably high multiple of all of those, but

it's an awkward value to generate using an FPGA's PLL: on my Lattice Brevia 2 board, with its XP2

FPGA and 50MHz oscillator, the closest I can get to 12.288MHz is out by 0.2%. The DAC part that

I'm using would work with that [the PCMxxx part that's doing the output conversion does more than

just a simple conversion and needs to be able to work out which sample rate is in use, but the

datasheet allows for 4%, so it would function ok], and if I were to base musical note frequencies

on it you wouldn't hear the difference, unless you had exceptionally good perfect pitch, but even

so I'd like to be working with 12.288MHz, so I'm going to need a crystal oscillator. I don't have

an oscillator, but I do have a couple of crystals of the right frequency, so this blog is about me

building a simple oscillator to drive the FPGA.

 

The Circuit

 

I found a really nice application note[1] from Fairchild that covers what I want to do and used

that as a guide. My design is loosly based on the circuits in the app note. I'm being quite sloppy

with all this - don't copy it for a product design. It's ok for one-off experiments with an FPGA,

though.

 

I don't have any 'HC04 inverters (that I can find), so I've based it on a couple of the NAND gates

in a 74HC4011.

 

Here's the circuit. I'm just guessing that the crystal might be cut for a load capacitance of

something like 30pF. So the load caps might have been better as 56pF, but I had some 68pF, so went

with those.

 

image

 

The Prototype

 

Here's what my prototype looked like on a plug-in breadboard

 

image

 

Fortunately, it started up and ran nicely.

 

Here it is on a 5V supply:

 

image

 

and here on 3.3V:

 

image

 

It's less symmetrical on 3.3V, though I don't suppose the FPGA would mind. The frequency is much

more accurate on 3.3V, though still a little high, so I'll go with that one since the FPGA IO is

also 3.3V. There's a little more jitter, but it looks to be less than half a ns (can't really tell

any better than that with my scope, anyway). If it were a problem, I could always give it to one

of the PLLs in the FPGA to clean up.

 

This is how it behaves when the power comes up.

 

image

 

It starts quickly enough, when the supply gets up to about 1.2V. The subsequent ramp up that you

see is simply the smoothing capacitor in the bench supply output charging.

 

That's enough of that. I'll add it to my Brevia 2 board prototype and see if I can generate some

waveforms with it.

 

References
[1] AN-340 Fairchild

  • Sign in to reply

Top Comments

  • rsjawale24
    rsjawale24 over 2 years ago +3
    Nice design and modifications in the circuit. Also, this type of oscillator is called Pierce Crystal Oscillator.
  • jc2048
    jc2048 over 2 years ago in reply to rsjawale24 +2
    Thank you. Yes, good point, it was originally due to Pierce. The patent is interesting to look at (I assume this is 'fair use' as I'm only showing part of it and we are having a technical discussion).…
  • rsjawale24
    rsjawale24 over 2 years ago in reply to jc2048 +2
    Yes it seems the headphones are used as a detector for the oscillations. So the frequency must be in few kHz. This also reminds me of a very simple type of radio receiver circuit called as a crystal radio…
  • Jan Cumps
    Jan Cumps over 2 years ago

    Ah, this is a scenario where the FPGA would not be able to perform the activity of the left NAND gate in the design.

    It secretly uses the underlying bipolar-or-fet-based implementation of that gate.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rsjawale24
    rsjawale24 over 2 years ago in reply to jc2048

    Yes it seems the headphones are used as a detector for the oscillations. So the frequency must be in few kHz.

    This also reminds me of a very simple type of radio receiver circuit called as a crystal radio receiver, which does not require any batteries. Pretty interesting work, both of the designs.

    It fascinates me how people came up with such designs in olden days when not much of theory/books were available.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 2 years ago in reply to rsjawale24

    Thank you. Yes, good point, it was originally due to Pierce. The patent is interesting to look at (I assume this is 'fair use' as I'm only showing part of it and we are having a technical discussion). I wonder what the crystal frequency was? Since it shows headphones, maybe it was a few kilohertz - it's certainly a big lump of quartz (it that's what it is).

     

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rsjawale24
    rsjawale24 over 2 years ago

    Nice design and modifications in the circuit. Also, this type of oscillator is called Pierce Crystal Oscillator.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube