PyAMS  (the software under revision)

PyAMS.Analog.Basic.Quartz


Ideal linear electrical Quartz

Information

Crystal oscillators can be modeled as a series RLC: L1,R1 and C1 circuit along with a parallel capacitor C0

. Quartz crystal oscillators tend to operate towards their “series resonance”.tive.

Parameters

NameDefaultDescription
Ls2.5Serie iductance[H]
Rs640.0Serie resistor[Ohm]
Cs1.0e-11Serie capacitor[F]
Cp2.5e-9parallel capacitor[F]

PyAMS definition

from PyAMS import Signal,NewNode
from Inductance import Inductance
from Capacitor import Capacitor
from Resistor import Resistor

class Quartz:
     def __init__(self,a,b):
         c=NewNode()
         d=NewNode()
         
         self.R1=Resistor(a,c)
         self.C1=Capacitor(c,d) 
         self.L1=Inductance(b,d)
         self.C0=Capacitor(a,b)
         
         self.Ls=2.5 
         self.Rs=640.0 
         self.Cs=0.01e-9
         self.Cp=2.5e-9
        
     def  sub(self):
           self.R1.R,self.L1.L,self.C1.C,self.C0.C=[self.Ls,self.Rs,self.Cs,self.Cp]
           return [self.R1,self.L1,self.C1,self.C0]

Documentation generated by PyAMS