Editing Oscillator

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
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.
 
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. ).
+
(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.
+
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 therefore is 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 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 11: Line 12:
 
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).
 
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.
+
An oscillator can also be made from scratch using crystal in a (2-pin) metal can, a couple of capacitors, an resitor 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 crystal or oscillator.
  
Line 17: Line 18:
 
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. 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.
+
An inverter inside the microcontroller acts as the amplifier, and the crystal and capacitors make up the rest of the oscillator.
  
 
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 24: Line 25:
 
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.
  
The "negative resistance test" measures the oscillation allowance of a crystal oscillator circuit.
+
== for further reading ==
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]
Line 49: Line 31:
 
* [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=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.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]]
 
[[Category:Components]]

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)