Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #384111

Re: SPICE simulation -- how to bias a crystal oscillatoir

Subject Re: SPICE simulation -- how to bias a crystal oscillatoir
Newsgroups sci.electronics.design
References <4e44bcb3-a1e9-48dc-a358-cfb7dd171f42@googlegroups.com> <vu2s3btj6plhblb1o9luc3k3uikbn2fag9@4ax.com> <826s3b9bgoov8pc40eascnacfilibcic8t@4ax.com> <PL6dnR1noZb0hqPLnZ2dnUU7-WednZ2d@supernews.com> <2s7s3bpvvufcso8u37c0p4esttr4jrv5cn@4ax.com>
From Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date 2015-11-07 11:47 -0500
Message-ID <FdGdnbU2L7WktqPLnZ2dnUU7-KGdnZ2d@supernews.com> (permalink)

Show all headers | View raw


On 11/07/2015 10:59 AM, Jim Thompson wrote:
> On Sat, 7 Nov 2015 10:40:25 -0500, Phil Hobbs
> <pcdhSpamMeSenseless@electrooptical.net> wrote:
>
>> On 11/07/2015 10:34 AM, Jim Thompson wrote:
>>> On Sat, 07 Nov 2015 07:38:36 -0700, Jim Thompson
>>> <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>>>
>>>> On Fri, 6 Nov 2015 19:31:46 -0800 (PST), dakupoto@gmail.com wrote:
>>>>
>>>>> Could some electronics/SPICE guru please help ? I have a
>>>>> simple model of a quartz crystal, as used in an oscillator.
>>>>> With my SPICE simulation, I can measure both the parallel
>>>>> and series resonant frequencies of the "pure" crystal.
>>>>> However, when I attach the same crystal to a biasing
>>>>> circuit, and run the simulation, the output is a flat DC
>>>>> offset. The biasing circuit involves two CMOS(1.0u micron
>>>>> gate length) inverters, as well as the large value feedback
>>>>> resistor, capacitirs etc. Is there anything special I need
>>>>> to do ? Any hints/suggestions would be helpful. Thanks in
>>>>> advance.
>>>>
>>>> Crystal oscillators can be very tricky to simulate.
>>>>
>>>> They _always_ need a "kick-start" of some sort to initiate the
>>>> oscillation.  This can be by inserting a current pulse or skewing the
>>>> normal bias with a .IC statement.
>>>>
>>>> You will also need to set a very small timestep.
>>>>
>>>> If you are using LTspice, be sure to use the "Alternate" solver... the
>>>> "Normal" solver takes simplification liberties that will produce false
>>>> results on most anything but switchers.
>>>> 		
>>>>                                          ...Jim Thompson
>>>
>>> An example...
>>>
>>> <http://www.analog-innovations.com/SED/XtalOscillatorExample.png>
>>>
>>> Several things to note:
>>>
>>> IKS is the "kick-start" current pulse.
>>>
>>> MaxTimeStep is set at 100ps
>>>
>>> SOLVER=0 is equivalent to LTspice's "Alternate" solver (Used to be
>>> PSpice's default solver until they decided to take liberties to
>>> speed-up simulation... not as bad as Mikey's "Normal", but loose
>>> enough not to handle crystal oscillators).
>>>
>>> What's with the Kiwi Semi?  I am the "ghost designer" for a number of
>>> fabless design houses and they like their names on the drawings ;-)
>>>
>>>
>>> 		
>>>                                           ...Jim Thompson
>>>
>> One caution is that the kickstart has to be _small_, not much more than
>> rounding error.  A nanoamp is often a good value.  Putting the current
>> source in parallel with the crystal inductance will make sure that it
>> starts off ringing at its natural frequency, which helps a lot.
>>
>> Cheers
>>
>> Phil Hobbs
>
> No.  It has to be sufficient enough to significantly perturb the
> quiescent operating point.  The example has a 10ns wide x 1mA pulse.

The danger with that approach is that you can easily mask startup 
problems.  I doubt that would happen to you very often, but as a piece 
of general advice to noobs it's not beneficial.

Setting the tank ringing gently, so that it the circuit starts up in the 
small signal limit, is the ticket.  A nanoamp is lots for that, if you 
put it in the right place, i.e. across the inductor.

Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

SPICE simulation -- how to bias a crystal oscillatoir dakupoto@gmail.com - 2015-11-06 19:31 -0800
  Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 07:38 -0700
    Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 08:34 -0700
      Re: SPICE simulation -- how to bias a crystal oscillatoir Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-11-07 10:40 -0500
        Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 08:59 -0700
          Re: SPICE simulation -- how to bias a crystal oscillatoir Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-11-07 11:47 -0500
            Re: SPICE simulation -- how to bias a crystal oscillatoir Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-11-07 12:28 -0500
              Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 11:38 -0700
                Re: SPICE simulation -- how to bias a crystal oscillatoir Phil Hobbs <pcdhobbs@gmail.com> - 2015-11-07 11:21 -0800
            Re: SPICE simulation -- how to bias a crystal oscillatoir Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-11-07 12:30 -0500
            Re: SPICE simulation -- how to bias a crystal oscillatoir John Larkin <jjlarkin@highlandtechnology.com> - 2015-11-07 11:09 -0800
              Re: SPICE simulation -- how to bias a crystal oscillatoir Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-11-07 14:43 -0500
                Re: SPICE simulation -- how to bias a crystal oscillatoir John Larkin <jjlarkin@highlandtechnology.com> - 2015-11-07 12:16 -0800
                Re: SPICE simulation -- how to bias a crystal oscillatoir Phil Hobbs <pcdhobbs@gmail.com> - 2015-11-07 14:48 -0800
                Re: SPICE simulation -- how to bias a crystal oscillatoir John Larkin <jjlarkin@highlandtechnology.com> - 2015-11-07 16:15 -0800
                Re: SPICE simulation -- how to bias a crystal oscillatoir Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> - 2015-11-08 15:48 +0100
                Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-08 09:21 -0700
  Re: SPICE simulation -- how to bias a crystal oscillatoir upsidedown@downunder.com - 2015-11-07 17:09 +0200
    Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 08:36 -0700
    Re: SPICE simulation -- how to bias a crystal oscillatoir DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-11-07 18:42 +0000
  Re: SPICE simulation -- how to bias a crystal oscillatoir Tim Wescott <tim@seemywebsite.com> - 2015-11-07 12:17 -0600
    Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 11:20 -0700
      Re: SPICE simulation -- how to bias a crystal oscillatoir Tim Wescott <tim@seemywebsite.com> - 2015-11-07 13:08 -0600
        Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 12:31 -0700
      Re: SPICE simulation -- how to bias a crystal oscillatoir dakupoto@gmail.com - 2015-11-07 22:09 -0800
        Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-08 09:33 -0700
  Re: SPICE simulation -- how to bias a crystal oscillatoir Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-11-07 15:36 -0700

csiph-web