Difference between revisions of "Oscillator"

From OpenCircuits
Jump to navigation Jump to search
(mention the "negative resistance test")
 
(74 intermediate revisions by 50 users not shown)
Line 1: Line 1:
[http://trumanburb.ifrance.com/view/new/risultati-partite.htm risultati partite calcio] [http://gajar.ifrance.com/html/eschenbach-wolfram.htm eschenbach, wolfram von-] [http://cocopuff66.ifrance.com/text/directory/nokia/ nokia 7270] [http://gabe95.ifrance.com/html/siamo-tutti/ siamo tutti la fuori] [http://smegmacheez.ifrance.com/content/view/riparazione-orologi/ riparazione orologi antichi] [http://atrayah.ifrance.com/topic/gs-racing.htm gs racing automodellismo] [http://alishca-st.ifrance.com/text/directory/monitor-.htm monitor 19 pollici samsung] [http://lightmyfire0214.ifrance.com/topic/ella-elle/ ella elle l a] [http://nokros.ifrance.com/data/www-kissfm/ www kissfm ro] [http://mfirishka.ifrance.com/view/new/jordan-lad.htm jordan lad] [http://nokros.ifrance.com/data/windows-xp/ windows xp n] [http://gabe95.ifrance.com/html/risultati-test/ risultati test ammissione medicina] [http://mfirishka.ifrance.com/view/new/notizie-di.htm notizie di secondigliano] [http://flawedamythyst.ifrance.com/img/styles/palmone-treo.htm palmone treo 600 standard ed] [http://dejablu503.ifrance.com/description/lib/braids-bohemian.htm braids bohemian rapsody] [http://atrayah.ifrance.com/topic/canzoni-classiche.htm canzoni classiche di mauro caputo] [http://gabe95.ifrance.com/html/the-secret/ the secret plot manga] [http://alishca-st.ifrance.com/text/directory/dmx-grand.htm dmx grand champ] [http://dejablu503.ifrance.com/description/lib/samsung.htm samsung 42 1024 768] [http://squoi-oop.ifrance.com/topic/albergo-economici/ albergo economici atene] [http://gajar.ifrance.com/html/www-df.htm www df5 com] [http://squoi-oop.ifrance.com/topic/orologiai-accessori/ orologiai accessori] [http://lekusya.ifrance.com/library/html/handyman/ handyman] [http://call-shotgun.ifrance.com/view/new/rhythm-emotion/ rhythm emotion] [http://smegmacheez.ifrance.com/content/view/stecy-valentine/ stecy valentine] [http://flawedamythyst.ifrance.com/img/styles/persuasione.htm persuasione] [http://mfirishka.ifrance.com/view/new/nirvana-in.htm nirvana in utero] [http://smegmacheez.ifrance.com/content/view/manga-video/ manga video] [http://smegmacheez.ifrance.com/content/view/bmw-/ bmw 320 del 2004] [http://lekusya.ifrance.com/library/html/diarios/ diarios] [http://gajar.ifrance.com/html/sapphire-x.htm sapphire x850] [http://dejablu503.ifrance.com/description/lib/pannelli-divisori.htm pannelli divisori] [http://cocopuff66.ifrance.com/text/directory/targetas-infantiles/ targetas infantiles] [http://call-shotgun.ifrance.com/view/new/benton-brook/ benton brook] [http://gabe95.ifrance.com/html/claudette-colbert/ claudette colbert] [http://smegmacheez.ifrance.com/content/view/eluxury-com/ eluxury com] [http://krychan.ifrance.com/content/view/cdcovers-cc.htm cdcovers cc] [http://squoi-oop.ifrance.com/topic/masterizzatore-esterno/ masterizzatore esterno dual layer dvd] [http://joshuaw-wise.ifrance.com/img/styles/programma-scaricare/ programma scaricare musica gratis] [http://nokros.ifrance.com/data/panasonic-g/ panasonic g60] [http://dejablu503.ifrance.com/description/lib/satoshi-tomiie.htm satoshi tomiie tears] [http://cocopuff66.ifrance.com/text/directory/il-signore/ il signore degli anelli-il ritorno del] [http://nokros.ifrance.com/data/vex-red/ vex red] [http://flawedamythyst.ifrance.com/img/styles/marina-dorica.htm marina dorica] [http://smegmacheez.ifrance.com/content/view/collo-alla/ collo alla papera] [http://call-shotgun.ifrance.com/view/new/coppia-con/ coppia con nero] [http://nokros.ifrance.com/data/www-flair/ www flair bartender com] [http://lekusya.ifrance.com/library/html/flawless-go/ flawless go to the city] [http://cocopuff66.ifrance.com/text/directory/testo-sanremo/ testo sanremo 2006] [http://dejablu503.ifrance.com/description/lib/global-system.htm global system] [http://mfirishka.ifrance.com/view/new/vulci.htm vulci] [http://nokros.ifrance.com/data/palmari-hp/ palmari hp touch screen] [http://krychan.ifrance.com/content/view/www-airberlin.htm www airberlin] [http://lightmyfire0214.ifrance.com/topic/case-in/ case in legno usate] [http://cocopuff66.ifrance.com/text/directory/asus-socket/ asus socket 478 p4s800] [http://horcrionebay.ifrance.com/resources/articles/ericsson-t.htm ericsson t10 batteria] [http://krychan.ifrance.com/content/view/traghetti-sicilia.htm traghetti sicilia] [http://dejablu503.ifrance.com/description/lib/the-sisms.htm the sisms] [http://lightmyfire0214.ifrance.com/topic/sunrise-album/ sunrise album] [http://horcrionebay.ifrance.com/resources/articles/motosega-potatura.htm motosega potatura] [http://atrayah.ifrance.com/topic/comune-sesto.htm comune sesto fiorentino] [http://mfirishka.ifrance.com/view/new/iomega-hdd.htm iomega hdd 60gb] [http://call-shotgun.ifrance.com/view/new/project-nomads/ project nomads] [http://lekusya.ifrance.com/library/html/testi-canzoni/ testi canzoni sanremo] [http://call-shotgun.ifrance.com/view/new/socket-/ socket 940 asus] [http://gabe95.ifrance.com/html/slayer-still/ slayer. still reigning] [http://alishca-st.ifrance.com/text/directory/cd-cover.htm cd cover cd] [http://alishca-st.ifrance.com/text/directory/cx-kodak.htm cx7330 kodak] [http://smegmacheez.ifrance.com/content/view/le-canzoni/ le canzoni piu sentite] [http://alishca-st.ifrance.com/text/directory/rt-x.htm rt x10 hw] [http://krychan.ifrance.com/content/view/nada-valgo.htm nada valgo sin tu amor mp3] [http://nokros.ifrance.com/data/giggle-giggle/ giggle giggle] [http://gabe95.ifrance.com/html/midi-concerto/ midi concerto para uma so voz] [http://horcrionebay.ifrance.com/resources/articles/mp-dance.htm mp3 dance] [http://nokros.ifrance.com/data/sdm/ s.d.m.] [http://horcrionebay.ifrance.com/resources/articles/age-of.htm age of empires the conqueros] [http://sm4.ifrance.com/lib/batteria-motorola/ batteria motorola v100] [http://trumanburb.ifrance.com/view/new/bergamo-berlino.htm bergamo berlino] [http://mfirishka.ifrance.com/view/new/video-adrian.htm video adrian mutu e laura andresan] [http://gabe95.ifrance.com/html/neagh-lough/ neagh, lough-] [http://flawedamythyst.ifrance.com/img/styles/processori-p.htm processori p4 2 4] [http://zeakk.ifrance.com/resources/articles/don-chisciotte.htm don chisciotte di cervantes] [http://krychan.ifrance.com/content/view/gianantonio-manzoni.htm gianantonio manzoni] [http://atrayah.ifrance.com/topic/santurceantiguo.htm santurce-antiguo] [http://lightmyfire0214.ifrance.com/topic/bianca-biaggi/ bianca biaggi] [http://smegmacheez.ifrance.com/content/view/ragata/ ragata] [http://lekusya.ifrance.com/library/html/ivre/ ivre] [http://call-shotgun.ifrance.com/view/new/dangers-and/ dangers and dragon] [http://lightmyfire0214.ifrance.com/topic/trattamenti-cotto/ trattamenti cotto] [http://call-shotgun.ifrance.com/view/new/saggio-breve/ saggio breve condizioni della donna] [http://smegmacheez.ifrance.com/content/view/fax-inkjet/ fax inkjet carta comune] [http://lekusya.ifrance.com/library/html/soul-sister/ soul sister brown sugar] [http://trumanburb.ifrance.com/view/new/jambo-buana.htm jambo buana] [http://lightmyfire0214.ifrance.com/topic/occhiali-christian/ occhiali christian dior my 1] [http://flawedamythyst.ifrance.com/img/styles/djember.htm djember] [http://krychan.ifrance.com/content/view/bilancia-tefal.htm bilancia tefal] [http://horcrionebay.ifrance.com/resources/articles/centar.htm centar] [http://nokros.ifrance.com/data/under-cover/ under cover xp] [http://flawedamythyst.ifrance.com/img/styles/router-dlink.htm router d-link 4] [http://mfirishka.ifrance.com/view/new/dragos-tea.htm dragos tea] [http://gabe95.ifrance.com/html/essere-e/ essere e tempo] [http://trumanburb.ifrance.com/view/new/orario-s.htm orario s messe a s giovanni rotondo] [http://gajar.ifrance.com/html/tatuaggio-stella.htm tatuaggio stella] [http://lightmyfire0214.ifrance.com/topic/panasonic-gs/ panasonic gs250] [http://flawedamythyst.ifrance.com/img/styles/minho-provincia.htm minho (provincia)] [http://zeakk.ifrance.com/resources/articles/shania-twain.htm shania twain nude] [http://gajar.ifrance.com/html/borse-di.htm borse di studio] [http://smegmacheez.ifrance.com/content/view/importatori-mobili/ importatori mobili tibetani] [http://squoi-oop.ifrance.com/topic/adattatore-rca/ adattatore rca stereo] [http://atrayah.ifrance.com/topic/lacie-storage.htm lacie storage ethernet] [http://sm4.ifrance.com/lib/tutor-nella/ tutor nella riforma moratti] [http://krychan.ifrance.com/content/view/behringer-microfoni.htm behringer microfoni] [http://zeakk.ifrance.com/resources/articles/my-way.htm my way limp bizkit] [http://zeakk.ifrance.com/resources/articles/lafontaine-mademoiselle.htm lafontaine, mademoiselle de-] [http://cocopuff66.ifrance.com/text/directory/star-trek/ star trek. the next generation. stagione 6] [http://horcrionebay.ifrance.com/resources/articles/update-award.htm update award modular bios v4 5] [http://gabe95.ifrance.com/html/winmix-it/ winmix it] [http://call-shotgun.ifrance.com/view/new/hotel-resort/ hotel resort gardaland] [http://alishca-st.ifrance.com/text/directory/hello-space.htm hello space boy] [http://gabe95.ifrance.com/html/lattrice/ lattrice] [http://horcrionebay.ifrance.com/resources/articles/o-zone.htm o zone dragonstea din tai] [http://gabe95.ifrance.com/html/inti-ill/ inti ill] [http://trumanburb.ifrance.com/view/new/asus-bt.htm asus bt100] [http://sm4.ifrance.com/lib/oliver-ogar/ oliver ogar] [http://gabe95.ifrance.com/html/lexmark/ lexmark 1190] [http://krychan.ifrance.com/content/view/lavoro-cattolica.htm lavoro cattolica] [http://joshuaw-wise.ifrance.com/img/styles/raf-in/ raf in tutti] [http://smegmacheez.ifrance.com/content/view/www-provincia/ www provincia acona it] [http://krychan.ifrance.com/content/view/magic-bright.htm magic bright] [http://zeakk.ifrance.com/resources/articles/asus-mypal.htm asus mypal a620bt kit gps] [http://nokros.ifrance.com/data/brother-ql/ brother ql550] [http://smegmacheez.ifrance.com/content/view/calendario-alessia/ calendario alessia merz] [http://gabe95.ifrance.com/html/ueda-akinari/ ueda, akinari] [http://alishca-st.ifrance.com/text/directory/dect-.htm dect 311 duo] [http://nokros.ifrance.com/data/scritto-sul/ scritto sul vento] [http://gajar.ifrance.com/html/vogue-gioiello.htm vogue gioiello] [http://mfirishka.ifrance.com/view/new/neotion.htm neotion] [http://nokros.ifrance.com/data/speed-cat/ speed cat] [http://horcrionebay.ifrance.com/resources/articles/batteria-minolta.htm batteria minolta] [http://cocopuff66.ifrance.com/text/directory/photoblog/ photoblog] [http://squoi-oop.ifrance.com/topic/norte-de/ norte de santander] [http://dejablu503.ifrance.com/description/lib/digicom-michelangelo.htm digicom michelangelo adsl cx] [http://horcrionebay.ifrance.com/resources/articles/brenda-paloma.htm brenda paloma] [http://lightmyfire0214.ifrance.com/topic/say-no/ say no] [http://gabe95.ifrance.com/html/sudra/ sudra] [http://gajar.ifrance.com/html/bmw-del.htm bmw del 2001] [http://dejablu503.ifrance.com/description/lib/flora-batterica.htm flora batterica] [http://call-shotgun.ifrance.com/view/new/classifica-cd/ classifica cd] [http://horcrionebay.ifrance.com/resources/articles/video-de.htm video de dido] [http://trumanburb.ifrance.com/view/new/hitachi-travelstar.htm hitachi travelstar 2 5 60 gb] [http://cocopuff66.ifrance.com/text/directory/walter-scott/ walter scott] [http://trumanburb.ifrance.com/view/new/coming-soon.htm coming soon] [http://joshuaw-wise.ifrance.com/img/styles/canon-power/ canon power shot s1 is] [http://trumanburb.ifrance.com/view/new/apertura-scacchi.htm apertura scacchi] [http://krychan.ifrance.com/content/view/cuccette-per.htm cuccette per signora] [http://horcrionebay.ifrance.com/resources/articles/cd-max.htm cd max pezzali] [http://mfirishka.ifrance.com/view/new/note-musicali.htm note musicali] [http://smegmacheez.ifrance.com/content/view/tell-me/ tell me now bellefire] [http://lightmyfire0214.ifrance.com/topic/decapitacion-irak/ decapitacion irak] [http://zeakk.ifrance.com/resources/articles/merlin-dino.htm merlin dino] [http://smegmacheez.ifrance.com/content/view/tucuna/ tucuna] [http://lightmyfire0214.ifrance.com/topic/film-fantozzi/ film fantozzi] [http://dejablu503.ifrance.com/description/lib/everio-gzmcex.htm everio gz-mc200ex] [http://lekusya.ifrance.com/library/html/armadillo-knight/ armadillo knight ep 3] [http://sm4.ifrance.com/lib/lottomania/ lottomania] [http://atrayah.ifrance.com/topic/lg-tv.htm lg tv lcd 15] [http://horcrionebay.ifrance.com/resources/articles/www-cliphunter.htm www cliphunter] [http://lekusya.ifrance.com/library/html/sesso-racconti/ sesso racconti con animali] [http://flawedamythyst.ifrance.com/img/styles/galeon.htm galeon] [http://lekusya.ifrance.com/library/html/riduttore-autoradio/ riduttore autoradio] [http://sm4.ifrance.com/lib/messina-coppie/ messina coppie] [http://flawedamythyst.ifrance.com/img/styles/dick-tracy.htm dick tracy contro cueball] [http://squoi-oop.ifrance.com/topic/dark-warrior/ dark warrior] [http://krychan.ifrance.com/content/view/majestic-lettore.htm majestic lettore dvd dvx mp3] [http://krychan.ifrance.com/content/view/elenco-telefonico.htm elenco telefonico terni] [http://sm4.ifrance.com/lib/raspo/ raspo] [http://squoi-oop.ifrance.com/topic/vendita-on/ vendita on line dvd adulto] [http://zeakk.ifrance.com/resources/articles/jet-airline.htm jet airline modern talking] [http://trumanburb.ifrance.com/view/new/la-signora.htm la signora di shanghai] [http://joshuaw-wise.ifrance.com/img/styles/distributori-detersivi/ distributori detersivi caserta] [http://zeakk.ifrance.com/resources/articles/vivavoce-bluetooth.htm vivavoce bluetooth] [http://flawedamythyst.ifrance.com/img/styles/usoljesibirskoje.htm usolje-sibirskoje] [http://trumanburb.ifrance.com/view/new/www-santi.htm www santi vissuti nel 500 com] [http://gajar.ifrance.com/html/claude-monet.htm claude monet] [http://zeakk.ifrance.com/resources/articles/mizuno-wave.htm mizuno wave] [http://lightmyfire0214.ifrance.com/topic/film-hazzard/ film hazzard] [http://joshuaw-wise.ifrance.com/img/styles/decorazioni-natale/ decorazioni natale] [http://trumanburb.ifrance.com/view/new/david-bekam.htm david bekam nudo] [http://joshuaw-wise.ifrance.com/img/styles/mari-mari/ mari mari] [http://lekusya.ifrance.com/library/html/alaska-sole/ alaska sole di mezzanotte] [http://flawedamythyst.ifrance.com/img/styles/simulazione-esame.htm simulazione esame patente europea] [http://gajar.ifrance.com/html/tetarelli.htm tetarelli] [http://squoi-oop.ifrance.com/topic/cinema-rita/ cinema rita cadillac] [http://call-shotgun.ifrance.com/view/new/donnalee/ donnalee] [http://joshuaw-wise.ifrance.com/img/styles/ferretti-martini/ ferretti martini] [http://cocopuff66.ifrance.com/text/directory/orietta-berti/ orietta berti] [http://atrayah.ifrance.com/topic/e-tu.htm e tu baglioni] [http://atrayah.ifrance.com/topic/asus-schede.htm asus schede video] [http://joshuaw-wise.ifrance.com/img/styles/j/ j 5] [http://gabe95.ifrance.com/html/motori-schemi/ motori schemi] The vast majority of electronic systems operate at some fixed frequency.
+
The vast majority of electronic systems operate at some fixed frequency.
 +
Usually the component that fixes that frequency is a quartz crystal, sealed in a metal can.
 +
(Some very-low-cost devices might use a "ceramic resonator" (made of high-stability piezoelectric ceramics, generally lead zirconium titanate) or a resistor and a capacitor to fix the frequency. ).
  
Usually the component that fixes that frequency is a crystal made of silicon, sealed in a metal can.
+
The entire circuit that generates the frequency is called an "oscillator", includes the resonant part (crystal, resonator, or RC), some capacitors, and a silicon chip and is therefore called a hybrid device.
(Some very-low-cost devices might use a "resonator" or a resistor and a capacitor to fix the frequency).
 
 
 
The entire circuit that generates the frequency is called an "oscillator".
 
 
(An oscillator that uses a resistor and a capacitor to fix the frequency is called a "RC oscillator".
 
(An oscillator that uses a resistor and a capacitor to fix the frequency is called a "RC oscillator".
 
An oscillator that uses a crystal to fix the frequency is called a "crystal oscillator".)
 
An oscillator that uses a crystal to fix the frequency is called a "crystal oscillator".)
Line 10: Line 9:
 
The oscillator includes, in addition to the frequency-fixing component just mentioned, an amplifier and capacitors.
 
The oscillator includes, in addition to the frequency-fixing component just mentioned, an amplifier and capacitors.
  
One can buy an "oscillator" in a metal can. Typically an oscillator can has 4 pins. Inside the can is all the components of the oscillator. One applies DC power on 2 of the pins, and the oscillating signal (the "CLK OUT") appears on another pin. (The remaining pin is unused).
+
Oscillators usually come in a metal can, but Epson also encapsulates them in plastic. Typically an oscillator can has 4 pins. Inside the can is all the components of the oscillator. One applies DC power on 2 of the pins, and the oscillating signal (the "CLK OUT") appears on another pin. (The remaining pin is unused).
  
Other times one buys just the crystal in a (2-pin) metal can and attaches the other components to build an oscillator.
+
An oscillator can also be made from scratch using crystal in a (2-pin) metal can, a couple of capacitors, a resistor and an inverter.
 
+
In either case, the frequency is printed on the top of the crystal or oscillator.
In either case, the frequency is printed on the top of the metal can.
 
  
 
Many microcontrollers have 2 pins (typically labeled "XTAL1" and "XTAL2", or "OSC1" and "OSC2", or something similar)
 
Many microcontrollers have 2 pins (typically labeled "XTAL1" and "XTAL2", or "OSC1" and "OSC2", or something similar)
 
that are designed to be directly connected to the 2 pins of a crystal.
 
that are designed to be directly connected to the 2 pins of a crystal.
 
(Capacitors from those pins to VCC and GND are also part of the recommended circuit).
 
(Capacitors from those pins to VCC and GND are also part of the recommended circuit).
An inverter inside the microcontroller acts as the amplifier, and the crystal and capacitors make up the rest of the oscillator.
+
An inverter inside the microcontroller acts as the amplifier, and the crystal and capacitors make up the rest of the oscillator. Microcontrollers when connected directly to a crystal need to have capacitors attached that need to be percisely matched with other circuit components on the board.  Resonators tend to have the capacitor buildin reducing the amount of trial and error of capacitor selection.
  
 
In systems with multiple CPUs, it is often simpler, cheaper, and more reliable (avoiding metastability problems) to use a single crystal (rather than a dedicated crystal for each CPU).
 
In systems with multiple CPUs, it is often simpler, cheaper, and more reliable (avoiding metastability problems) to use a single crystal (rather than a dedicated crystal for each CPU).
Line 26: Line 24:
 
Unfortunately, many people confuse the "clock signal" generated by an oscillator (a simple metronome beat, tone, at constant frequency) with far more complicated "clock system"s that keep track of seconds, minutes, hours, and sometimes days, weeks, months, and years.
 
Unfortunately, many people confuse the "clock signal" generated by an oscillator (a simple metronome beat, tone, at constant frequency) with far more complicated "clock system"s that keep track of seconds, minutes, hours, and sometimes days, weeks, months, and years.
  
== for further reading ==
+
The "negative resistance test" measures the oscillation allowance of a crystal oscillator circuit.
 +
Most manufacturers recommend that the oscillation allowance of the circuit be at least five times the maximum resistance value of the quartz crystal unit used in the circuit.<ref>
 +
[http://www.ti.com/lit/an/slaa322b/slaa322b.pdf "MSP430 32-kHz Crystal Oscillators"].
 +
p. 5.
 +
</ref><ref>
 +
[http://www.foxonline.com/pdfs/osctheoryoper.pdf "Oscillator Theory of Operation"].
 +
p. 109.
 +
</ref><ref>
 +
[http://www.sii.co.jp/en/quartz/circuit-design/ "Oscillation Circuit Design Overview"].
 +
</ref><ref>
 +
[http://www.atmel.com/images/doc8333.pdf "AVR4100: Selecting and testing 32kHz crystal oscillators for Atmel AVR microcontrollers"].
 +
p. 12.
 +
</ref><ref>
 +
[http://www.ecsxtal.com/store/pdf/Oscillation-Circut-Design-Considerations.pdf "Oscillator Circuit Design Considerations"].
 +
p. 8
 +
</ref>
 +
 
 +
 
 +
 
 +
== Further reading ==
  
 
* [http://techref.massmind.org/techref/clocks.htm massmind: clocks]
 
* [http://techref.massmind.org/techref/clocks.htm massmind: clocks]
 
* [http://en.wikipedia.org/wiki/Crystal_oscillator Wikipedia: crystal oscillator]
 
* [http://en.wikipedia.org/wiki/Crystal_oscillator Wikipedia: crystal oscillator]
* [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE
+
* [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en021190 "App Note AN949: Making Your Oscillator Work" by Brett Duane]
 +
* [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en020706 "App Note AN943: Practical PICmicro® Oscillator Analysis and Design" by Ruan Lourens]
 +
* [http://www.icmfg.com/technicaldata.html#crystal_data Crystal data]
 +
[[Category:Components]]

Latest revision as of 08:32, 8 January 2016

The vast majority of electronic systems operate at some fixed frequency. Usually the component that fixes that frequency is a quartz crystal, sealed in a metal can. (Some very-low-cost devices might use a "ceramic resonator" (made of high-stability piezoelectric ceramics, generally lead zirconium titanate) or a resistor and a capacitor to fix the frequency. ).

The entire circuit that generates the frequency is called an "oscillator", includes the resonant part (crystal, resonator, or RC), some capacitors, and a silicon chip and is therefore called a hybrid device. (An oscillator that uses a resistor and a capacitor to fix the frequency is called a "RC oscillator". An oscillator that uses a crystal to fix the frequency is called a "crystal oscillator".)

The oscillator includes, in addition to the frequency-fixing component just mentioned, an amplifier and capacitors.

Oscillators usually come in a metal can, but Epson also encapsulates them in plastic. Typically an oscillator can has 4 pins. Inside the can is all the components of the oscillator. One applies DC power on 2 of the pins, and the oscillating signal (the "CLK OUT") appears on another pin. (The remaining pin is unused).

An oscillator can also be made from scratch using crystal in a (2-pin) metal can, a couple of capacitors, a resistor and an inverter. In either case, the frequency is printed on the top of the crystal or oscillator.

Many microcontrollers have 2 pins (typically labeled "XTAL1" and "XTAL2", or "OSC1" and "OSC2", or something similar) that are designed to be directly connected to the 2 pins of a crystal. (Capacitors from those pins to VCC and GND are also part of the recommended circuit). An inverter inside the microcontroller acts as the amplifier, and the crystal and capacitors make up the rest of the oscillator. Microcontrollers when connected directly to a crystal need to have capacitors attached that need to be percisely matched with other circuit components on the board. Resonators tend to have the capacitor buildin reducing the amount of trial and error of capacitor selection.

In systems with multiple CPUs, it is often simpler, cheaper, and more reliable (avoiding metastability problems) to use a single crystal (rather than a dedicated crystal for each CPU). CPUs (and many other components) often have a single "CLK" pin designed to be connected to the wire used to send that "clock signal" (a fixed frequency) everywhere.

Unfortunately, many people confuse the "clock signal" generated by an oscillator (a simple metronome beat, tone, at constant frequency) with far more complicated "clock system"s that keep track of seconds, minutes, hours, and sometimes days, weeks, months, and years.

The "negative resistance test" measures the oscillation allowance of a crystal oscillator circuit. Most manufacturers recommend that the oscillation allowance of the circuit be at least five times the maximum resistance value of the quartz crystal unit used in the circuit.<ref> "MSP430 32-kHz Crystal Oscillators". p. 5. </ref><ref> "Oscillator Theory of Operation". p. 109. </ref><ref> "Oscillation Circuit Design Overview". </ref><ref> "AVR4100: Selecting and testing 32kHz crystal oscillators for Atmel AVR microcontrollers". p. 12. </ref><ref> "Oscillator Circuit Design Considerations". p. 8 </ref>


Further reading[edit]