Crystal OscillatorsC 1 » C 2.ElectrodeC 2LCrystalC 1ElectrodeFigure 10.8. Symbol <strong>and</strong> equivalent circuit for a crystalRThe impedance of the equivalent circuit of Figure 10.8 in the s – domainisZs ( ) = 1 ⁄ sC 1|| ( R + sL + 1 ⁄ sC 2 )We now recall that in a series resonant circuit the quality factor QωQ 0S L0S = -----------Rat resonance is(10.16)(10.17)<strong>and</strong> since the Q of a crystal oscillator is very high, the value of the resistance R in (10.17) must bevery low <strong>and</strong> thus it can be omitted in relation (10.16) which can now be expressed asor( sL + 1 ⁄ sCZs ( ) 1⁄ sC 1|| ( sL + 1 ⁄ sC 2 ) ( 1⁄sC 1 )2 )= = ⋅ --------------------------------------------------1⁄ sC 1 + sL + 1 ⁄ sC 2s 2 + 1⁄LCZs ( ) = ( 1⁄sC 1 ) ⋅ ---------------------------------------------------------------2s 2 + [( C 1 + C 2 ) ⁄ ( LC 1 C 2 )](10.18)The denominator of (10.18) is a quadratic <strong>and</strong> it implies the presence of two resonant frequencieswhich can be found by inspection of the equivalent circuit of Figure 10.10. The resonance of theseries branch occurs when the imaginary part of the impedance is equal to zero. Thus, lettings = jω we obtain Zjω ( ) = jωL + 1⁄jωC 2 = 0 <strong>and</strong> denoting this frequency as ω 0S we obtain1ω 0S = --------------LC 2(10.19)We also can prove * that the resonance of the parallel combination occurs whenCω + 1 C 20P = -----------------LC 1 C 2(10.20)As stated above,(10.19).C 1 » C 2<strong>and</strong> under this condition relation (10.20) reduces to that of relation* The proof is left as an exercise for the reader at the end of this chapter.<strong>Electronic</strong> <strong>Devices</strong> <strong>and</strong> <strong>Amplifier</strong> <strong>Circuits</strong> with MATLAB® / Simulink® / Sim<strong>Electronic</strong>s® Examples, Third EditionCopyright © Orchard Publications10−9
Appendix AIntroduction to MATLAB®This appendix serves as an introduction to the basic MATLAB comm<strong>and</strong>s <strong>and</strong> functions, proceduresfor naming <strong>and</strong> saving the user generated files, comment lines, access to MATLAB’sEditor / Debugger, finding the roots of a polynomial, <strong>and</strong> making plots. Several examples areprovided with detailed explanations.A.1 MATLAB® <strong>and</strong> Simulink®MATLAB <strong>and</strong> Simulink are products of The MathWorks, Inc. These are two outst<strong>and</strong>ing softwarepackages for scientific <strong>and</strong> engineering computations <strong>and</strong> are used in educational institutions<strong>and</strong> in industries including automotive, aerospace, electronics, telecommunications, <strong>and</strong> environmentalapplications. MATLAB enables us to solve many advanced numerical problems rapidly <strong>and</strong>efficiently.A.2 Comm<strong>and</strong> WindowTo distinguish the screen displays from the user comm<strong>and</strong>s, important terms, <strong>and</strong> MATLAB functions,we will use the following conventions:Click: Click the left button of the mouseCourier Font: Screen displaysHelvetica Font: User inputs at MATLAB’s comm<strong>and</strong> window prompt >> or EDU>> *Helvetica Bold: MATLAB functionsNormal Font Bold Italic: Important terms <strong>and</strong> facts, notes <strong>and</strong> file namesWhen we first start MATLAB, we see various help topics <strong>and</strong> other information. Initially, we areinterested in the comm<strong>and</strong> screen which can be selected from the Window drop menu. When thecomm<strong>and</strong> screen, we see the prompt >> or EDU>>. This prompt is displayed also after execution ofa comm<strong>and</strong>; MATLAB now waits for a new comm<strong>and</strong> from the user. It is highly recommended thatwe use the Editor/Debugger to write our program, save it, <strong>and</strong> return to the comm<strong>and</strong> screen to executethe program as explained below.To use the Editor/Debugger:1. From the File menu on the toolbar, we choose New <strong>and</strong> click on M−File. This takes us to the EditorWindow where we can type our script (list of statements) for a new file, or open a previouslysaved file. We must save our program with a file name which starts with a letter. Important!MATLAB is case sensitive, that is, it distinguishes between upper− <strong>and</strong> lower−case letters. Thus, t* EDU>> is the MATLAB prompt in the Student Version<strong>Electronic</strong> <strong>Devices</strong> <strong>and</strong> <strong>Amplifier</strong> <strong>Circuits</strong> with MATLAB® / Simulink® / Sim<strong>Electronic</strong>s® Examples, Third EditionCopyright © Orchard PublicationsA−1