SPICE simulation -- how to bias a crystal oscillatoir
Nov 07, 2015 26 Replies
J
Jim Thompson
Quoting that great sage, The Cable Guy, holy moley!
Your mistake was right there under my eyes and I didn't see it at first reading: "... TWO CMOS(1.0u micron gate length) inverters..."
You only need ONE inverter, the crystal phase shift makes up the rest.
See this message:
Newsgroups: sci.electronics.design Subject: Re: SPICE simulation -- how to bias a crystal oscillator Date: Sat, 07 Nov 2015 12:31:01 -0700 Message-ID:
for an actual schematic of a CMOS crystal oscillator. ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Didn't find your answer? Ask the community — no account required.
P
Phil Hobbs
Numerical discretizing schemes generally don't preserve exact eigenfrequenc ies anyway. For instance, in FDTD electromagnetic simulations, you have to dork the value of c to improve accuracy--the numerical c can differ from th e real one by as much as a percent or so.
In an adaptive solver like SPICE, I'd expect the eigenfrequencies to depend on all sorts of internal variables such as time step, solver algorithm, an d a bunch of control panel parameters.
Cheers
Phil Hobbs
J
John Larkin
In LT Spice, the default sim of a simple ringing LC runs about 0.8% slow.
D
dakupoto
The crystal model, as well as the CMOS NMOS/{MPS models, along with the SPICE netlist is below -- full text format. .INCLUDE modelcardold.nmos .INCLUDE modelcardold.pmos
Yes, I am fully aware of the "kick start" method -- I have used it in the past for simulating free running multivibrators, ring oscillators etc., In fact, the netlist above uses the same trick in the SPICE .IC directive. Hopefully, the netlist would be helpful,
G
Gerhard Hoffmann
Am 07.11.2015 um 23:48 schrieb Phil Hobbs:
Xtal oscillators are easier analyzed in the ac domain and not with integration over time. Cut the loop open and calculate the loop gain. It will oscillate where the phase of the loop gain crosses 0. You will also see if it will compress ( amplitude of loop gain @ phase 0 >> 1) or not oscillate at all (amplitude there < 1.0) Source and load impedance at the cut point may be very different, and also different from 50 Ohms if you use s-params, so Randall-Hock correction may be needed to make up for the missing self-termination.
BTW you get weird results with LTspice for steps < 5 Hz or so in a
100 MHz xtal osc. The resolution of f seems to hit the limit.
regards, Gerhard
<
formatting link
>
The book they mention is good.
J
Jim Thompson
[snip]
Cutting the loop open is not necessary. See...
Try the "Alternate" solver... the "Normal" solver takes liberties.
...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
J
Jim Thompson
[snip]
That seems bass-ackwards... PMOS is usually 3-4X the width of NMOS.
Your small devices won't support a 50 Ohm load.
What is your .IC = {Value ?} ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.