Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #534322 > unrolled thread
| Started by | dakupoto@gmail.com |
|---|---|
| First post | 2019-03-05 02:54 -0800 |
| Last post | 2019-03-05 09:56 -0800 |
| Articles | 20 on this page of 45 — 12 participants |
Back to article view | Back to sci.electronics.design
SPICE tarnsient analysis of oscillators - sampling time dakupoto@gmail.com - 2019-03-05 02:54 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-03-05 11:08 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 08:51 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Winfield Hill <hill@rowland.harvard.edu> - 2019-03-05 12:30 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-05 22:45 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-05 15:11 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 00:34 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 17:19 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 02:22 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 22:47 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 09:35 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-06 07:27 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 19:51 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-06 12:50 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 22:56 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-06 20:25 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-07 18:56 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-07 12:05 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 16:12 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-08 08:37 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 19:25 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-07 18:55 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 16:13 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-08 08:40 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 19:25 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-08 11:48 -0800
Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-09 02:41 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-10 14:33 -0700
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-10 14:40 -0700
Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-11 07:06 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-11 07:02 -0700
Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-12 06:44 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-12 06:47 -0700
Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-12 21:34 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-12 15:51 -0700
Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-13 10:05 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-13 07:22 -0700
Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-14 05:09 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-14 08:13 -0700
Re: SPICE tarnsient analysis of oscillators - sampling time Allan Herriman <allanherriman@hotmail.com> - 2019-03-14 05:04 -0500
RE: Re: SPICE tarnsient analysis of oscillators - sampling time A_george <jcustom@heliost.org> - 2019-03-16 13:13 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-03-16 09:32 -0400
Re: SPICE tarnsient analysis of oscillators - sampling time Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-03-16 09:30 -0400
Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-05 23:14 +0000
Re: SPICE tarnsient analysis of oscillators - sampling time bloggs.fredbloggs.fred@gmail.com - 2019-03-05 09:56 -0800
Page 1 of 3 [1] 2 3 Next page →
| From | dakupoto@gmail.com |
|---|---|
| Date | 2019-03-05 02:54 -0800 |
| Subject | SPICE tarnsient analysis of oscillators - sampling time |
| Message-ID | <f90e9f2d-869b-44b3-a22b-89e5e6411ce2@googlegroups.com> |
Could some electronics guru here please clarify this a bit ? I am experimenting with SPICE transient analysis of oscillator, and I am unsure as to what to set as the ideal sampling time, given that most oscillators will generate a fundamental and a few harmonics. For example, suppose that I have a 500 MHz differential oscillator, and I set the sampling time as 1/(15.0*time period of fundamental), would that be sufficient to satisfy the Nyquist criterion, and also capture the fundamental and the first two harmonics ? The reason I ask is that I have noticed that with this scheme, the fundamental is always at 250 MHz, and the first harmonic is at 500 MHz. This is peculiar. Is there something wrong in my assumption ? Thanks in advance.
[toc] | [next] | [standalone]
| From | Martin Brown <'''newspam'''@nezumi.demon.co.uk> |
|---|---|
| Date | 2019-03-05 11:08 +0000 |
| Message-ID | <q5llbu$10cc$1@gioia.aioe.org> |
| In reply to | #534322 |
On 05/03/2019 10:54, dakupoto@gmail.com wrote: > Could some electronics guru here please clarify this a bit ? > I am experimenting with SPICE transient analysis of oscillator, > and I am unsure as to what to set as the ideal sampling time, > given that most oscillators will generate a fundamental and a > few harmonics. For example, suppose that I have a 500 MHz > differential oscillator, and I set the sampling time as > 1/(15.0*time period of fundamental), would that be sufficient > to satisfy the Nyquist criterion, and also capture the > fundamental and the first two harmonics ? > The reason I ask is that I have noticed that with this scheme, > the fundamental is always at 250 MHz, and the first harmonic > is at 500 MHz. This is peculiar. Is there something wrong in > my assumption ? Sounds to me like a lost factor of two somewhere. Try sampling times of 1/(30*tau) and 1/(60*tau) the latter ought to allow all harmonics out to 5th to be cleanly expressed without aliasing. The Babylonians chose base 60 for a very good reason. -- Regards, Martin Brown
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2019-03-05 08:51 -0800 |
| Message-ID | <6p9t7edliou0t9o75r1a4614onnedmdun2@4ax.com> |
| In reply to | #534322 |
On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: >Could some electronics guru here please clarify this a bit ? >I am experimenting with SPICE transient analysis of oscillator, >and I am unsure as to what to set as the ideal sampling time, >given that most oscillators will generate a fundamental and a >few harmonics. For example, suppose that I have a 500 MHz >differential oscillator, and I set the sampling time as >1/(15.0*time period of fundamental), would that be sufficient >to satisfy the Nyquist criterion, and also capture the >fundamental and the first two harmonics ? >The reason I ask is that I have noticed that with this scheme, >the fundamental is always at 250 MHz, and the first harmonic >is at 500 MHz. This is peculiar. Is there something wrong in >my assumption ? >Thanks in advance. LT Spice goes for sim speed, so it tends to use coarse time steps. If you shock a simple LC and let it ring, at default settings the resonant frequency will be off by percentages. Similarly, oscillator sims will be unrealistic. I set the max time step to be small, way under 1% of the fastest thing I expect to ever see in a circuit. Crank it down until the sim stops changing, or until you can't stand the time it takes to run. Nyquist isn't the issue here. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Winfield Hill <hill@rowland.harvard.edu> |
|---|---|
| Date | 2019-03-05 12:30 -0800 |
| Message-ID | <q5mm8i02j83@drn.newsguy.com> |
| In reply to | #534347 |
John Larkin wrote...
>
> On Tue, 5 Mar 2019, dakupoto@gmail.com wrote:
>
>> Could some electronics guru here please clarify this a bit ?
>> I am experimenting with SPICE transient analysis of oscillator,
>> and I am unsure as to what to set as the ideal sampling time,
[ snip ]
>
> LT Spice goes for sim speed, so it tends to use coarse time steps.
[ snip ]
>I set the max time step to be small, way under 1% of the fastest thing
>I expect to ever see in a circuit. Crank it down until the sim stops
>changing, or until you can't stand the time it takes to run.
>
> Nyquist isn't the issue here.
I agree, you'll want very small time steps. In the old days,
with slow computers, we'd not stress over multi-hour runs.
And as for the issue of the data sampling time step, what's
the issue, dakupoto, don't you have Giga-byte hard drives?
--
Thanks,
- Win
[toc] | [prev] | [next] | [standalone]
| From | Steve Wilson <no@spam.com> |
|---|---|
| Date | 2019-03-05 22:45 +0000 |
| Message-ID | <XnsAA09B4969AAFDidtokenpost@69.16.179.22> |
| In reply to | #534347 |
John Larkin <jjlarkin@highlandtechnology.com> wrote:
> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote:
>>Could some electronics guru here please clarify this a bit ?
>>I am experimenting with SPICE transient analysis of oscillator, and I
>>am unsure as to what to set as the ideal sampling time, given that
>>most oscillators will generate a fundamental and a few harmonics. For
>>example, suppose that I have a 500 MHz differential oscillator, and I
>>set the sampling time as 1/(15.0*time period of fundamental), would
>>that be sufficient to satisfy the Nyquist criterion, and also capture
>>the fundamental and the first two harmonics ?
>>The reason I ask is that I have noticed that with this scheme, the
>>fundamental is always at 250 MHz, and the first harmonic is at 500 MHz.
>>This is peculiar. Is there something wrong in my assumption ?
>>Thanks in advance.
> LT Spice goes for sim speed, so it tends to use coarse time steps. If
> you shock a simple LC and let it ring, at default settings the
> resonant frequency will be off by percentages. Similarly, oscillator
> sims will be unrealistic.
False. Your sim took the difference between the LC tank and a sine wave.
You didn't know the default series resistance of an inductor is 1 milliohm,
so the tank voltage decayed. Your measurement could not tell the difference
between phase and amplitude (simple trig) so you claimed a frequency error.
How you converted your measurement to frequency error is beyond me.
I have attached a simple sim showing the frequency error is unmeasurable
when you set the tank ESR to zero. Let it run for 1,000 cycles. After 1,000
cycles, the tank voltage and sine wave overlap exactly. The frequency
difference is too small to measure.
Oscillator sims are similarly as accurate as the component values you enter
plus strays. See
https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf
Here is the sim. Plot the LC and Sin voltages on the same graph.
Version 4
SHEET 1 1008 680
WIRE 352 -160 176 -160
WIRE 400 -160 352 -160
WIRE 496 -160 400 -160
WIRE 176 -112 176 -160
WIRE 352 -112 352 -160
WIRE 496 -112 496 -160
WIRE 176 16 176 -32
WIRE 352 16 352 -32
WIRE 496 16 496 -48
WIRE 320 112 176 112
WIRE 352 112 320 112
WIRE 176 128 176 112
WIRE 176 224 176 208
FLAG 400 -160 LC
FLAG 176 16 0
FLAG 352 16 0
FLAG 496 16 0
FLAG 176 224 0
FLAG 320 112 Sin
SYMBOL ind 336 -128 R0
WINDOW 0 45 22 Left 2
WINDOW 3 42 47 Left 2
SYMATTR InstName L1
SYMATTR Value {N}
SYMATTR SpiceLine Rser=0
SYMBOL cap 480 -48 M180
WINDOW 0 24 56 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C1
SYMATTR Value {N}
SYMBOL current 176 -112 R0
WINDOW 0 -70 50 Left 2
WINDOW 3 -165 99 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName I1
SYMATTR Value PULSE(1 0 1)
SYMBOL voltage 176 112 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value SINE(0 1 1 1)
TEXT 192 -296 Left 2 ;'1 Hz LC Osc Infinte Q
TEXT 464 -264 Left 2 !.options numdgt=15
TEXT 656 -264 Left 2 !.param N = 1 / (2 * pi)
TEXT 192 -256 Left 2 !.tran 0 1000 0 100u
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2019-03-05 15:11 -0800 |
| Message-ID | <jkvt7e1mu51gueopgk7lodptq5imp5vjru@4ax.com> |
| In reply to | #534376 |
On Tue, 05 Mar 2019 22:45:09 GMT, Steve Wilson <no@spam.com> wrote: >John Larkin <jjlarkin@highlandtechnology.com> wrote: > >> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: > >>>Could some electronics guru here please clarify this a bit ? >>>I am experimenting with SPICE transient analysis of oscillator, and I >>>am unsure as to what to set as the ideal sampling time, given that >>>most oscillators will generate a fundamental and a few harmonics. For >>>example, suppose that I have a 500 MHz differential oscillator, and I >>>set the sampling time as 1/(15.0*time period of fundamental), would >>>that be sufficient to satisfy the Nyquist criterion, and also capture >>>the fundamental and the first two harmonics ? >>>The reason I ask is that I have noticed that with this scheme, the >>>fundamental is always at 250 MHz, and the first harmonic is at 500 MHz. >>>This is peculiar. Is there something wrong in my assumption ? >>>Thanks in advance. > >> LT Spice goes for sim speed, so it tends to use coarse time steps. If >> you shock a simple LC and let it ring, at default settings the >> resonant frequency will be off by percentages. Similarly, oscillator >> sims will be unrealistic. > >False. Your sim took the difference between the LC tank and a sine wave. > >You didn't know the default series resistance of an inductor is 1 milliohm, >so the tank voltage decayed. Your measurement could not tell the difference >between phase and amplitude (simple trig) so you claimed a frequency error. >How you converted your measurement to frequency error is beyond me. > >I have attached a simple sim showing the frequency error is unmeasurable >when you set the tank ESR to zero. Let it run for 1,000 cycles. After 1,000 >cycles, the tank voltage and sine wave overlap exactly. The frequency >difference is too small to measure. Maybe so, but I often have to force the time step down to get a useful simulation. And that sometimes makes simulation times silly. There is a reason that the max time step can be set. When precision matters, I reduce it until the sim doesn't change. Make a pure, 1 volt, 1 Hz sine wave V source. Run that for 5 seconds and zoom the top of the sine. It's chunky line segments. Change the time step to 1 us and it looks a lot better. -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | Steve Wilson <no@spam.com> |
|---|---|
| Date | 2019-03-06 00:34 +0000 |
| Message-ID | <XnsAA09C7295E7F8idtokenpost@69.16.179.23> |
| In reply to | #534386 |
John Larkin <jjlarkin@highland_snip_technology.com> wrote: > On Tue, 05 Mar 2019 22:45:09 GMT, Steve Wilson <no@spam.com> wrote: >>John Larkin <jjlarkin@highlandtechnology.com> wrote: >> >>> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: >>>>Could some electronics guru here please clarify this a bit ? >>>>I am experimenting with SPICE transient analysis of oscillator, and I >>>>am unsure as to what to set as the ideal sampling time, given that >>>>most oscillators will generate a fundamental and a few harmonics. For >>>>example, suppose that I have a 500 MHz differential oscillator, and I >>>>set the sampling time as 1/(15.0*time period of fundamental), would >>>>that be sufficient to satisfy the Nyquist criterion, and also capture >>>>the fundamental and the first two harmonics ? >>>>The reason I ask is that I have noticed that with this scheme, the >>>>fundamental is always at 250 MHz, and the first harmonic is at 500 >>>>MHz. This is peculiar. Is there something wrong in my assumption ? >>>>Thanks in advance. >>> LT Spice goes for sim speed, so it tends to use coarse time steps. If >>> you shock a simple LC and let it ring, at default settings the >>> resonant frequency will be off by percentages. Similarly, oscillator >>> sims will be unrealistic. >>False. Your sim took the difference between the LC tank and a sine wave. >>You didn't know the default series resistance of an inductor is 1 >>milliohm, so the tank voltage decayed. Your measurement could not tell >>the difference between phase and amplitude (simple trig) so you claimed >>a frequency error. How you converted your measurement to frequency error >>is beyond me. >>I have attached a simple sim showing the frequency error is unmeasurable >>when you set the tank ESR to zero. Let it run for 1,000 cycles. After >>1,000 cycles, the tank voltage and sine wave overlap exactly. The >>frequency difference is too small to measure. > Maybe so, but I often have to force the time step down to get a useful > simulation. And that sometimes makes simulation times silly. There is > a reason that the max time step can be set. When precision matters, I > reduce it until the sim doesn't change. > Make a pure, 1 volt, 1 Hz sine wave V source. Run that for 5 seconds > and zoom the top of the sine. It's chunky line segments. Change the > time step to 1 us and it looks a lot better. The optimum time step depends on dv/dt. For sinusoidal waveforms I usually start at period/1e4. For picosecond waveforms, you may have to go way down. You can change the waveform compression by setting .options plotwinsize=0 See http://ltwiki.org/LTspiceHelp/LTspiceHelp/ _OPTIONS_Set_simulator_options.htm This can increase the plot file by 50 times. See http://ltwiki.org/LTspiceHelpXVII/LTspiceHelp/html/Compression.htm The problem then is running out of available disk space. This is important if you are running on a small SSD.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2019-03-05 17:19 -0800 |
| Message-ID | <nu7u7etriqsc78ppv47im5kfb6dj4cdaff@4ax.com> |
| In reply to | #534407 |
On Wed, 06 Mar 2019 00:34:42 GMT, Steve Wilson <no@spam.com> wrote: >John Larkin <jjlarkin@highland_snip_technology.com> wrote: > >> On Tue, 05 Mar 2019 22:45:09 GMT, Steve Wilson <no@spam.com> wrote: > >>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>> >>>> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: > >>>>>Could some electronics guru here please clarify this a bit ? >>>>>I am experimenting with SPICE transient analysis of oscillator, and I >>>>>am unsure as to what to set as the ideal sampling time, given that >>>>>most oscillators will generate a fundamental and a few harmonics. For >>>>>example, suppose that I have a 500 MHz differential oscillator, and I >>>>>set the sampling time as 1/(15.0*time period of fundamental), would >>>>>that be sufficient to satisfy the Nyquist criterion, and also capture >>>>>the fundamental and the first two harmonics ? >>>>>The reason I ask is that I have noticed that with this scheme, the >>>>>fundamental is always at 250 MHz, and the first harmonic is at 500 >>>>>MHz. This is peculiar. Is there something wrong in my assumption ? >>>>>Thanks in advance. > >>>> LT Spice goes for sim speed, so it tends to use coarse time steps. If >>>> you shock a simple LC and let it ring, at default settings the >>>> resonant frequency will be off by percentages. Similarly, oscillator >>>> sims will be unrealistic. > >>>False. Your sim took the difference between the LC tank and a sine wave. > >>>You didn't know the default series resistance of an inductor is 1 >>>milliohm, so the tank voltage decayed. Your measurement could not tell >>>the difference between phase and amplitude (simple trig) so you claimed >>>a frequency error. How you converted your measurement to frequency error >>>is beyond me. > >>>I have attached a simple sim showing the frequency error is unmeasurable >>>when you set the tank ESR to zero. Let it run for 1,000 cycles. After >>>1,000 cycles, the tank voltage and sine wave overlap exactly. The >>>frequency difference is too small to measure. > >> Maybe so, but I often have to force the time step down to get a useful >> simulation. And that sometimes makes simulation times silly. There is >> a reason that the max time step can be set. When precision matters, I >> reduce it until the sim doesn't change. > >> Make a pure, 1 volt, 1 Hz sine wave V source. Run that for 5 seconds >> and zoom the top of the sine. It's chunky line segments. Change the >> time step to 1 us and it looks a lot better. > >The optimum time step depends on dv/dt. For sinusoidal waveforms I usually >start at period/1e4. For picosecond waveforms, you may have to go way down. My point, which was disputed, is that one often has to override LT's default (adaptive?) time step. You seem to agree. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Steve Wilson <no@spam.com> |
|---|---|
| Date | 2019-03-06 02:22 +0000 |
| Message-ID | <XnsAA09D967F22DCidtokenpost@69.16.179.22> |
| In reply to | #534413 |
John Larkin <jjlarkin@highlandtechnology.com> wrote: > On Wed, 06 Mar 2019 00:34:42 GMT, Steve Wilson <no@spam.com> wrote: > >>John Larkin <jjlarkin@highland_snip_technology.com> wrote: >> >>> On Tue, 05 Mar 2019 22:45:09 GMT, Steve Wilson <no@spam.com> wrote: >> >>>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>>> >>>>> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: >> >>>>>>Could some electronics guru here please clarify this a bit ? >>>>>>I am experimenting with SPICE transient analysis of oscillator, and >>>>>>I am unsure as to what to set as the ideal sampling time, given >>>>>>that most oscillators will generate a fundamental and a few >>>>>>harmonics. For example, suppose that I have a 500 MHz differential >>>>>>oscillator, and I set the sampling time as 1/(15.0*time period of >>>>>>fundamental), would that be sufficient to satisfy the Nyquist >>>>>>criterion, and also capture the fundamental and the first two >>>>>>harmonics ? The reason I ask is that I have noticed that with this >>>>>>scheme, the fundamental is always at 250 MHz, and the first >>>>>>harmonic is at 500 MHz. This is peculiar. Is there something wrong >>>>>>in my assumption ? Thanks in advance. >> >>>>> LT Spice goes for sim speed, so it tends to use coarse time steps. >>>>> If you shock a simple LC and let it ring, at default settings the >>>>> resonant frequency will be off by percentages. Similarly, oscillator >>>>> sims will be unrealistic. >> >>>>False. Your sim took the difference between the LC tank and a sine >>>>wave. >> >>>>You didn't know the default series resistance of an inductor is 1 >>>>milliohm, so the tank voltage decayed. Your measurement could not tell >>>>the difference between phase and amplitude (simple trig) so you >>>>claimed a frequency error. How you converted your measurement to >>>>frequency error is beyond me. >> >>>>I have attached a simple sim showing the frequency error is >>>>unmeasurable when you set the tank ESR to zero. Let it run for 1,000 >>>>cycles. After 1,000 cycles, the tank voltage and sine wave overlap >>>>exactly. The frequency difference is too small to measure. >> >>> Maybe so, but I often have to force the time step down to get a useful >>> simulation. And that sometimes makes simulation times silly. There is >>> a reason that the max time step can be set. When precision matters, I >>> reduce it until the sim doesn't change. >> >>> Make a pure, 1 volt, 1 Hz sine wave V source. Run that for 5 seconds >>> and zoom the top of the sine. It's chunky line segments. Change the >>> time step to 1 us and it looks a lot better. >> >>The optimum time step depends on dv/dt. For sinusoidal waveforms I >>usually start at period/1e4. For picosecond waveforms, you may have to >>go way down. > > My point, which was disputed, is that one often has to override LT's > default (adaptive?) time step. You seem to agree. That is not what I said. I said specificantly to set the time step to tau/1e4 for sinusoidal waveforms then crank down as needed. Fast risetimes may reqire smaller time steps. I think doing a transient anlysis without setting the maximum time step is a big mistake. It will simply waste your time. Without it, the resulting waveform can show straight line segments. You can set .options plotwinsize=0 but this requires more disk space. You are completely ignoring the superb accuracy of LTspce as I pointed out in my first post. It is far better than the several percent error you claim. After much trial and error, I found the discrepancy to be in the parts per billion. That is far better than any components you can find.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2019-03-05 22:47 -0800 |
| Message-ID | <anqu7e5bsfh7dp7is3orl2df04bj0r0cph@4ax.com> |
| In reply to | #534417 |
On Wed, 06 Mar 2019 02:22:18 GMT, Steve Wilson <no@spam.com> wrote: >John Larkin <jjlarkin@highlandtechnology.com> wrote: > >> On Wed, 06 Mar 2019 00:34:42 GMT, Steve Wilson <no@spam.com> wrote: >> >>>John Larkin <jjlarkin@highland_snip_technology.com> wrote: >>> >>>> On Tue, 05 Mar 2019 22:45:09 GMT, Steve Wilson <no@spam.com> wrote: >>> >>>>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>>>> >>>>>> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: >>> >>>>>>>Could some electronics guru here please clarify this a bit ? >>>>>>>I am experimenting with SPICE transient analysis of oscillator, and >>>>>>>I am unsure as to what to set as the ideal sampling time, given >>>>>>>that most oscillators will generate a fundamental and a few >>>>>>>harmonics. For example, suppose that I have a 500 MHz differential >>>>>>>oscillator, and I set the sampling time as 1/(15.0*time period of >>>>>>>fundamental), would that be sufficient to satisfy the Nyquist >>>>>>>criterion, and also capture the fundamental and the first two >>>>>>>harmonics ? The reason I ask is that I have noticed that with this >>>>>>>scheme, the fundamental is always at 250 MHz, and the first >>>>>>>harmonic is at 500 MHz. This is peculiar. Is there something wrong >>>>>>>in my assumption ? Thanks in advance. >>> >>>>>> LT Spice goes for sim speed, so it tends to use coarse time steps. >>>>>> If you shock a simple LC and let it ring, at default settings the >>>>>> resonant frequency will be off by percentages. Similarly, oscillator >>>>>> sims will be unrealistic. >>> >>>>>False. Your sim took the difference between the LC tank and a sine >>>>>wave. >>> >>>>>You didn't know the default series resistance of an inductor is 1 >>>>>milliohm, so the tank voltage decayed. Your measurement could not tell >>>>>the difference between phase and amplitude (simple trig) so you >>>>>claimed a frequency error. How you converted your measurement to >>>>>frequency error is beyond me. >>> >>>>>I have attached a simple sim showing the frequency error is >>>>>unmeasurable when you set the tank ESR to zero. Let it run for 1,000 >>>>>cycles. After 1,000 cycles, the tank voltage and sine wave overlap >>>>>exactly. The frequency difference is too small to measure. >>> >>>> Maybe so, but I often have to force the time step down to get a useful >>>> simulation. And that sometimes makes simulation times silly. There is >>>> a reason that the max time step can be set. When precision matters, I >>>> reduce it until the sim doesn't change. >>> >>>> Make a pure, 1 volt, 1 Hz sine wave V source. Run that for 5 seconds >>>> and zoom the top of the sine. It's chunky line segments. Change the >>>> time step to 1 us and it looks a lot better. >>> >>>The optimum time step depends on dv/dt. For sinusoidal waveforms I >>>usually start at period/1e4. For picosecond waveforms, you may have to >>>go way down. >> >> My point, which was disputed, is that one often has to override LT's >> default (adaptive?) time step. You seem to agree. > >That is not what I said. I said specificantly to set the time step to >tau/1e4 for sinusoidal waveforms then crank down as needed. Fast risetimes >may reqire smaller time steps. I think doing a transient anlysis without >setting the maximum time step is a big mistake. It will simply waste your >time. For most things, like opamp circuits and simple RC stuff, the default is good enough. For tweaking say an oscillator, it pays to explore the effect of setting the time step. > >Without it, the resulting waveform can show straight line segments. You can >set > >.options plotwinsize=0 > >but this requires more disk space. > >You are completely ignoring the superb accuracy of LTspce as I pointed out >in my first post. It is far better than the several percent error you >claim. After much trial and error, I found the discrepancy to be in the >parts per billion. That is far better than any components you can find. I tried a 1 Hz ringing LC with parasitic-free L and C. The difference in ringing frequency between the transient default (no time step specified) and specifying 1 or 10 us max time step was about 400 PPM, but some time steps were kind of weird; the change of ring period vs step size was not monotonic. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Steve Wilson <no@spam.com> |
|---|---|
| Date | 2019-03-06 09:35 +0000 |
| Message-ID | <XnsAA0A2EB3625A6idtokenpost@69.16.179.22> |
| In reply to | #534430 |
John Larkin <jjlarkin@highlandtechnology.com> wrote: > On Wed, 06 Mar 2019 02:22:18 GMT, Steve Wilson <no@spam.com> wrote: > >>John Larkin <jjlarkin@highlandtechnology.com> wrote: >> >>> On Wed, 06 Mar 2019 00:34:42 GMT, Steve Wilson <no@spam.com> wrote: >>> >>>>John Larkin <jjlarkin@highland_snip_technology.com> wrote: >>>> >>>>> On Tue, 05 Mar 2019 22:45:09 GMT, Steve Wilson <no@spam.com> wrote: >>>> >>>>>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>>>>> >>>>>>> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: >>>> >>>>>>>>Could some electronics guru here please clarify this a bit ? >>>>>>>>I am experimenting with SPICE transient analysis of oscillator, >>>>>>>>and I am unsure as to what to set as the ideal sampling time, >>>>>>>>given that most oscillators will generate a fundamental and a few >>>>>>>>harmonics. For example, suppose that I have a 500 MHz differential >>>>>>>>oscillator, and I set the sampling time as 1/(15.0*time period of >>>>>>>>fundamental), would that be sufficient to satisfy the Nyquist >>>>>>>>criterion, and also capture the fundamental and the first two >>>>>>>>harmonics ? The reason I ask is that I have noticed that with this >>>>>>>>scheme, the fundamental is always at 250 MHz, and the first >>>>>>>>harmonic is at 500 MHz. This is peculiar. Is there something wrong >>>>>>>>in my assumption ? Thanks in advance. >>>> >>>>>>> LT Spice goes for sim speed, so it tends to use coarse time steps. >>>>>>> If you shock a simple LC and let it ring, at default settings the >>>>>>> resonant frequency will be off by percentages. Similarly, >>>>>>> oscillator sims will be unrealistic. >>>> >>>>>>False. Your sim took the difference between the LC tank and a sine >>>>>>wave. >>>> >>>>>>You didn't know the default series resistance of an inductor is 1 >>>>>>milliohm, so the tank voltage decayed. Your measurement could not >>>>>>tell the difference between phase and amplitude (simple trig) so you >>>>>>claimed a frequency error. How you converted your measurement to >>>>>>frequency error is beyond me. >>>> >>>>>>I have attached a simple sim showing the frequency error is >>>>>>unmeasurable when you set the tank ESR to zero. Let it run for 1,000 >>>>>>cycles. After 1,000 cycles, the tank voltage and sine wave overlap >>>>>>exactly. The frequency difference is too small to measure. >>>> >>>>> Maybe so, but I often have to force the time step down to get a >>>>> useful simulation. And that sometimes makes simulation times silly. >>>>> There is a reason that the max time step can be set. When precision >>>>> matters, I reduce it until the sim doesn't change. >>>> >>>>> Make a pure, 1 volt, 1 Hz sine wave V source. Run that for 5 seconds >>>>> and zoom the top of the sine. It's chunky line segments. Change the >>>>> time step to 1 us and it looks a lot better. >>>> >>>>The optimum time step depends on dv/dt. For sinusoidal waveforms I >>>>usually start at period/1e4. For picosecond waveforms, you may have to >>>>go way down. >>> >>> My point, which was disputed, is that one often has to override LT's >>> default (adaptive?) time step. You seem to agree. >> >>That is not what I said. I said specificantly to set the time step to >>tau/1e4 for sinusoidal waveforms then crank down as needed. Fast >>risetimes may reqire smaller time steps. I think doing a transient >>anlysis without setting the maximum time step is a big mistake. It will >>simply waste your time. > > For most things, like opamp circuits and simple RC stuff, the default > is good enough. For tweaking say an oscillator, it pays to explore the > effect of setting the time step. > >> >>Without it, the resulting waveform can show straight line segments. You >>can set >> >>.options plotwinsize=0 >> >>but this requires more disk space. >> >>You are completely ignoring the superb accuracy of LTspce as I pointed >>out in my first post. It is far better than the several percent error >>you claim. After much trial and error, I found the discrepancy to be in >>the parts per billion. That is far better than any components you can >>find. > > I tried a 1 Hz ringing LC with parasitic-free L and C. The difference > in ringing frequency between the transient default (no time step > specified) and specifying 1 or 10 us max time step was about 400 PPM, > but some time steps were kind of weird; the change of ring period vs > step size was not monotonic. You are doing something wrong. Are you using the modified trap option? Are you using a pure sine wave as a comparison? I get 120 milliseconds difference in zero crossings after 1,000 cycles with no time step specified. That is 120 ppm. Always specify the maximum time step.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2019-03-06 07:27 -0800 |
| Message-ID | <d5pv7els26llvphm9h23bt9vla0nn0tjal@4ax.com> |
| In reply to | #534433 |
On Wed, 06 Mar 2019 09:35:27 GMT, Steve Wilson <no@spam.com> wrote: >John Larkin <jjlarkin@highlandtechnology.com> wrote: > >> On Wed, 06 Mar 2019 02:22:18 GMT, Steve Wilson <no@spam.com> wrote: >> >>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>> >>>> On Wed, 06 Mar 2019 00:34:42 GMT, Steve Wilson <no@spam.com> wrote: >>>> >>>>>John Larkin <jjlarkin@highland_snip_technology.com> wrote: >>>>> >>>>>> On Tue, 05 Mar 2019 22:45:09 GMT, Steve Wilson <no@spam.com> wrote: >>>>> >>>>>>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>>>>>> >>>>>>>> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote: >>>>> >>>>>>>>>Could some electronics guru here please clarify this a bit ? >>>>>>>>>I am experimenting with SPICE transient analysis of oscillator, >>>>>>>>>and I am unsure as to what to set as the ideal sampling time, >>>>>>>>>given that most oscillators will generate a fundamental and a few >>>>>>>>>harmonics. For example, suppose that I have a 500 MHz differential >>>>>>>>>oscillator, and I set the sampling time as 1/(15.0*time period of >>>>>>>>>fundamental), would that be sufficient to satisfy the Nyquist >>>>>>>>>criterion, and also capture the fundamental and the first two >>>>>>>>>harmonics ? The reason I ask is that I have noticed that with this >>>>>>>>>scheme, the fundamental is always at 250 MHz, and the first >>>>>>>>>harmonic is at 500 MHz. This is peculiar. Is there something wrong >>>>>>>>>in my assumption ? Thanks in advance. >>>>> >>>>>>>> LT Spice goes for sim speed, so it tends to use coarse time steps. >>>>>>>> If you shock a simple LC and let it ring, at default settings the >>>>>>>> resonant frequency will be off by percentages. Similarly, >>>>>>>> oscillator sims will be unrealistic. >>>>> >>>>>>>False. Your sim took the difference between the LC tank and a sine >>>>>>>wave. >>>>> >>>>>>>You didn't know the default series resistance of an inductor is 1 >>>>>>>milliohm, so the tank voltage decayed. Your measurement could not >>>>>>>tell the difference between phase and amplitude (simple trig) so you >>>>>>>claimed a frequency error. How you converted your measurement to >>>>>>>frequency error is beyond me. >>>>> >>>>>>>I have attached a simple sim showing the frequency error is >>>>>>>unmeasurable when you set the tank ESR to zero. Let it run for 1,000 >>>>>>>cycles. After 1,000 cycles, the tank voltage and sine wave overlap >>>>>>>exactly. The frequency difference is too small to measure. >>>>> >>>>>> Maybe so, but I often have to force the time step down to get a >>>>>> useful simulation. And that sometimes makes simulation times silly. >>>>>> There is a reason that the max time step can be set. When precision >>>>>> matters, I reduce it until the sim doesn't change. >>>>> >>>>>> Make a pure, 1 volt, 1 Hz sine wave V source. Run that for 5 seconds >>>>>> and zoom the top of the sine. It's chunky line segments. Change the >>>>>> time step to 1 us and it looks a lot better. >>>>> >>>>>The optimum time step depends on dv/dt. For sinusoidal waveforms I >>>>>usually start at period/1e4. For picosecond waveforms, you may have to >>>>>go way down. >>>> >>>> My point, which was disputed, is that one often has to override LT's >>>> default (adaptive?) time step. You seem to agree. >>> >>>That is not what I said. I said specificantly to set the time step to >>>tau/1e4 for sinusoidal waveforms then crank down as needed. Fast >>>risetimes may reqire smaller time steps. I think doing a transient >>>anlysis without setting the maximum time step is a big mistake. It will >>>simply waste your time. >> >> For most things, like opamp circuits and simple RC stuff, the default >> is good enough. For tweaking say an oscillator, it pays to explore the >> effect of setting the time step. >> >>> >>>Without it, the resulting waveform can show straight line segments. You >>>can set >>> >>>.options plotwinsize=0 >>> >>>but this requires more disk space. >>> >>>You are completely ignoring the superb accuracy of LTspce as I pointed >>>out in my first post. It is far better than the several percent error >>>you claim. After much trial and error, I found the discrepancy to be in >>>the parts per billion. That is far better than any components you can >>>find. >> >> I tried a 1 Hz ringing LC with parasitic-free L and C. The difference >> in ringing frequency between the transient default (no time step >> specified) and specifying 1 or 10 us max time step was about 400 PPM, >> but some time steps were kind of weird; the change of ring period vs >> step size was not monotonic. > >You are doing something wrong. Are you using the modified trap option? Are >you using a pure sine wave as a comparison? > >I get 120 milliseconds difference in zero crossings after 1,000 cycles with >no time step specified. That is 120 ppm. After 10 cycles, I see about 500 PPM in my LC. Not so different. It means that you might not want to design crystal oscillators in time domain. > >Always specify the maximum time step. The thing I remember about my previous much-maligned dual sine wave experiment is that setting a small dt fixed the frequency error. So it wasn't a simple ESR problem. I'll try to find that one. LT Spice is mathematically chaotic, especially when it uses its default time step algorithm. There are probably cases that are especialy bad, and maybe I get lucky finding them. I am usually lucky. I'm not doing anything wrong. I design electronics and most of it works first time, and we sell it. You just have to be careful when you drive things. And not believe everything just because a computer was involved. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Steve Wilson <no@spam.com> |
|---|---|
| Date | 2019-03-06 19:51 +0000 |
| Message-ID | <XnsAA0A972A26F0Fidtokenpost@69.16.179.22> |
| In reply to | #534452 |
John Larkin <jjlarkin@highlandtechnology.com> wrote: > After 10 cycles, I see about 500 PPM in my LC. Not so different. It > means that you might not want to design crystal oscillators in time > domain. You need time domain to adjust the crystal drive. Too little and the oscillator may not start. Too much and you may fracture the crystal. You cannot get this information any other way. Crystal oscillators have a long startup time due to the high Q. You cannot make meaningful measurements after hundreds of milliseconds of cycles. I show how to bypass the long startup in my oscillator.zip article which you ignored https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf >>Always specify the maximum time step. > The thing I remember about my previous much-maligned dual sine wave > experiment is that setting a small dt fixed the frequency error. So it > wasn't a simple ESR problem. I'll try to find that one. Your problem was ESR. You took the difference between the LC and the sine signals but you didn't know the default ESR for an inductor is 1 milliohm. So the LC signal decayed. Your measurement cannot tell the difference between phase and amplitude changes and you came to the wrong conclusion. > LT Spice is mathematically chaotic, especially when it uses its > default time step algorithm. There are probably cases that are > especialy bad, and maybe I get lucky finding them. I am usually lucky. LTspice repeats exactly given the same data. There is nothing chaotic about it. Always specify the maximum time step. > I'm not doing anything wrong. I design electronics and most of it > works first time, and we sell it. That has nothing to do with the topic. > You just have to be careful when you drive things. And not believe > everything just because a computer was involved. Nonsense. You use the computer for everything. When was the last time you picked up a slide rule. You just have to be careful about the data you enter. LTspice is as accurate as the models you give it.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2019-03-06 12:50 -0800 |
| Message-ID | <ujc08elda6lrsofjlfhg40su3flte9ud0g@4ax.com> |
| In reply to | #534478 |
On Wed, 06 Mar 2019 19:51:36 GMT, Steve Wilson <no@spam.com> wrote: >John Larkin <jjlarkin@highlandtechnology.com> wrote: > >> After 10 cycles, I see about 500 PPM in my LC. Not so different. It >> means that you might not want to design crystal oscillators in time >> domain. > >You need time domain to adjust the crystal drive. Too little and the >oscillator may not start. Too much and you may fracture the crystal. > >You cannot get this information any other way. > >Crystal oscillators have a long startup time due to the high Q. You cannot >make meaningful measurements after hundreds of milliseconds of cycles. I >show how to bypass the long startup in my oscillator.zip article which you >ignored > >https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf > >>>Always specify the maximum time step. > >> The thing I remember about my previous much-maligned dual sine wave >> experiment is that setting a small dt fixed the frequency error. So it >> wasn't a simple ESR problem. I'll try to find that one. > >Your problem was ESR. You took the difference between the LC and the sine >signals but you didn't know the default ESR for an inductor is 1 milliohm. >So the LC signal decayed. Your measurement cannot tell the difference >between phase and amplitude changes and you came to the wrong conclusion. > >> LT Spice is mathematically chaotic, especially when it uses its >> default time step algorithm. There are probably cases that are >> especialy bad, and maybe I get lucky finding them. I am usually lucky. > >LTspice repeats exactly given the same data. There is nothing chaotic about >it. > >Always specify the maximum time step. > >> I'm not doing anything wrong. I design electronics and most of it >> works first time, and we sell it. > >That has nothing to do with the topic. > >> You just have to be careful when you drive things. And not believe >> everything just because a computer was involved. > >Nonsense. You use the computer for everything. When was the last time you >picked up a slide rule. You just have to be careful about the data you >enter. > >LTspice is as accurate as the models you give it. Are you here to discuss electronics, or just to be obnoxious? -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | Steve Wilson <no@spam.com> |
|---|---|
| Date | 2019-03-06 22:56 +0000 |
| Message-ID | <XnsAA0AB68B337B6idtokenpost@69.16.179.22> |
| In reply to | #534488 |
John Larkin <jjlarkin@highland_snip_technology.com> wrote: > On Wed, 06 Mar 2019 19:51:36 GMT, Steve Wilson <no@spam.com> wrote: > >>John Larkin <jjlarkin@highlandtechnology.com> wrote: >> >>> After 10 cycles, I see about 500 PPM in my LC. Not so different. It >>> means that you might not want to design crystal oscillators in time >>> domain. >> >>You need time domain to adjust the crystal drive. Too little and the >>oscillator may not start. Too much and you may fracture the crystal. >> >>You cannot get this information any other way. >> >>Crystal oscillators have a long startup time due to the high Q. You >>cannot make meaningful measurements after hundreds of milliseconds of >>cycles. I show how to bypass the long startup in my oscillator.zip >>article which you ignored >> >>https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf >> >>>>Always specify the maximum time step. >> >>> The thing I remember about my previous much-maligned dual sine wave >>> experiment is that setting a small dt fixed the frequency error. So it >>> wasn't a simple ESR problem. I'll try to find that one. >> >>Your problem was ESR. You took the difference between the LC and the >>sine signals but you didn't know the default ESR for an inductor is 1 >>milliohm. So the LC signal decayed. Your measurement cannot tell the >>difference between phase and amplitude changes and you came to the wrong >>conclusion. >> >>> LT Spice is mathematically chaotic, especially when it uses its >>> default time step algorithm. There are probably cases that are >>> especialy bad, and maybe I get lucky finding them. I am usually lucky. >> >>LTspice repeats exactly given the same data. There is nothing chaotic >>about it. >> >>Always specify the maximum time step. >> >>> I'm not doing anything wrong. I design electronics and most of it >>> works first time, and we sell it. >> >>That has nothing to do with the topic. >> >>> You just have to be careful when you drive things. And not believe >>> everything just because a computer was involved. >> >>Nonsense. You use the computer for everything. When was the last time >>you picked up a slide rule. You just have to be careful about the data >>you enter. >> >>LTspice is as accurate as the models you give it. > > Are you here to discuss electronics, or just to be obnoxious? I discussed electronics and system design. I posted links to oscillator design that you ignored. I showed your ignorance of LTspice caused you to make false claims about its performance. You completely failed to acknowledge any of my posts and still insisted your original erroneous analysis about the accuracy of LTspice was correct. LTspice is vital in electronics design. If you can show that any of my replies is wrong, please post.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2019-03-06 20:25 -0800 |
| Message-ID | <k8718el6og6okbfcqh5msdtno1vd3bdtqq@4ax.com> |
| In reply to | #534517 |
On Wed, 06 Mar 2019 22:56:41 GMT, Steve Wilson <no@spam.com> wrote: >John Larkin <jjlarkin@highland_snip_technology.com> wrote: > >> On Wed, 06 Mar 2019 19:51:36 GMT, Steve Wilson <no@spam.com> wrote: >> >>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>> >>>> After 10 cycles, I see about 500 PPM in my LC. Not so different. It >>>> means that you might not want to design crystal oscillators in time >>>> domain. >>> >>>You need time domain to adjust the crystal drive. Too little and the >>>oscillator may not start. Too much and you may fracture the crystal. >>> >>>You cannot get this information any other way. >>> >>>Crystal oscillators have a long startup time due to the high Q. You >>>cannot make meaningful measurements after hundreds of milliseconds of >>>cycles. I show how to bypass the long startup in my oscillator.zip >>>article which you ignored >>> >>>https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf >>> >>>>>Always specify the maximum time step. >>> >>>> The thing I remember about my previous much-maligned dual sine wave >>>> experiment is that setting a small dt fixed the frequency error. So it >>>> wasn't a simple ESR problem. I'll try to find that one. >>> >>>Your problem was ESR. You took the difference between the LC and the >>>sine signals but you didn't know the default ESR for an inductor is 1 >>>milliohm. So the LC signal decayed. Your measurement cannot tell the >>>difference between phase and amplitude changes and you came to the wrong >>>conclusion. >>> >>>> LT Spice is mathematically chaotic, especially when it uses its >>>> default time step algorithm. There are probably cases that are >>>> especialy bad, and maybe I get lucky finding them. I am usually lucky. >>> >>>LTspice repeats exactly given the same data. There is nothing chaotic >>>about it. >>> >>>Always specify the maximum time step. >>> >>>> I'm not doing anything wrong. I design electronics and most of it >>>> works first time, and we sell it. >>> >>>That has nothing to do with the topic. >>> >>>> You just have to be careful when you drive things. And not believe >>>> everything just because a computer was involved. >>> >>>Nonsense. You use the computer for everything. When was the last time >>>you picked up a slide rule. You just have to be careful about the data >>>you enter. >>> >>>LTspice is as accurate as the models you give it. >> >> Are you here to discuss electronics, or just to be obnoxious? > >I discussed electronics and system design. I posted links to oscillator >design that you ignored. I showed your ignorance of LTspice caused you to >make false claims about its performance. You completely failed to >acknowledge any of my posts and still insisted your original erroneous >analysis about the accuracy of LTspice was correct. > >LTspice is vital in electronics design. If you can show that any of my >replies is wrong, please post. OK, obnoxious. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> |
|---|---|
| Date | 2019-03-07 18:56 +0000 |
| Message-ID | <SbGdne8yxObZ9BzBnZ2dnUU7-TPNnZ2d@giganews.com> |
| In reply to | #534517 |
"Steve Wilson" wrote in message news:XnsAA0AB68B337B6idtokenpost@69.16.179.22... John Larkin <jjlarkin@highland_snip_technology.com> wrote: > On Wed, 06 Mar 2019 19:51:36 GMT, Steve Wilson <no@spam.com> wrote: > >>John Larkin <jjlarkin@highlandtechnology.com> wrote: >> >>> After 10 cycles, I see about 500 PPM in my LC. Not so different. It >>> means that you might not want to design crystal oscillators in time >>> domain. >> >>You need time domain to adjust the crystal drive. Too little and the >>oscillator may not start. Too much and you may fracture the crystal. >> >>You cannot get this information any other way. >> >>Crystal oscillators have a long startup time due to the high Q. You >>cannot make meaningful measurements after hundreds of milliseconds of >>cycles. I show how to bypass the long startup in my oscillator.zip >>article which you ignored >> >>https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf >> >>>>Always specify the maximum time step. >> >>> The thing I remember about my previous much-maligned dual sine wave >>> experiment is that setting a small dt fixed the frequency error. So it >>> wasn't a simple ESR problem. I'll try to find that one. >> >>Your problem was ESR. You took the difference between the LC and the >>sine signals but you didn't know the default ESR for an inductor is 1 >>milliohm. So the LC signal decayed. Your measurement cannot tell the >>difference between phase and amplitude changes and you came to the wrong >>conclusion. >> >>> LT Spice is mathematically chaotic, especially when it uses its >>> default time step algorithm. There are probably cases that are >>> especialy bad, and maybe I get lucky finding them. I am usually lucky. >> >>LTspice repeats exactly given the same data. There is nothing chaotic >>about it. >> >>Always specify the maximum time step. >> >>> I'm not doing anything wrong. I design electronics and most of it >>> works first time, and we sell it. >> >>That has nothing to do with the topic. >> >>> You just have to be careful when you drive things. And not believe >>> everything just because a computer was involved. >> >>>Nonsense. You use the computer for everything. When was the last time >>>you picked up a slide rule. You just have to be careful about the data >>>you enter. >> >>>LTspice is as accurate as the models you give it. > >> Are you here to discuss electronics, or just to be obnoxious? >I discussed electronics and system design. I posted links to oscillator >design that you ignored. I showed your ignorance of LTspice caused you to >make false claims about its performance. You completely failed to >acknowledge any of my posts and still insisted your original erroneous >analysis about the accuracy of LTspice was correct. >LTspice is vital in electronics design. If you can show that any of my >replies is wrong, please post. Ahmmmmm.... I am assuming you mean Spice. LTSpice has some deficiencies. -- Kevin Aylward http://www.anasoft.co.uk - SuperSpice http://www.kevinaylward.co.uk/ee/index.html
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2019-03-07 12:05 -0800 |
| Message-ID | <i0u28edb4tpp9acq6blb6d8pfk976l61s3@4ax.com> |
| In reply to | #534574 |
On Thu, 7 Mar 2019 18:56:01 -0000, "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> wrote: >"Steve Wilson" wrote in message >news:XnsAA0AB68B337B6idtokenpost@69.16.179.22... > >John Larkin <jjlarkin@highland_snip_technology.com> wrote: > >> On Wed, 06 Mar 2019 19:51:36 GMT, Steve Wilson <no@spam.com> wrote: >> >>>John Larkin <jjlarkin@highlandtechnology.com> wrote: >>> >>>> After 10 cycles, I see about 500 PPM in my LC. Not so different. It >>>> means that you might not want to design crystal oscillators in time >>>> domain. >>> >>>You need time domain to adjust the crystal drive. Too little and the >>>oscillator may not start. Too much and you may fracture the crystal. >>> >>>You cannot get this information any other way. >>> >>>Crystal oscillators have a long startup time due to the high Q. You >>>cannot make meaningful measurements after hundreds of milliseconds of >>>cycles. I show how to bypass the long startup in my oscillator.zip >>>article which you ignored >>> >>>https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf >>> >>>>>Always specify the maximum time step. >>> >>>> The thing I remember about my previous much-maligned dual sine wave >>>> experiment is that setting a small dt fixed the frequency error. So it >>>> wasn't a simple ESR problem. I'll try to find that one. >>> >>>Your problem was ESR. You took the difference between the LC and the >>>sine signals but you didn't know the default ESR for an inductor is 1 >>>milliohm. So the LC signal decayed. Your measurement cannot tell the >>>difference between phase and amplitude changes and you came to the wrong >>>conclusion. >>> >>>> LT Spice is mathematically chaotic, especially when it uses its >>>> default time step algorithm. There are probably cases that are >>>> especialy bad, and maybe I get lucky finding them. I am usually lucky. >>> >>>LTspice repeats exactly given the same data. There is nothing chaotic >>>about it. >>> >>>Always specify the maximum time step. >>> >>>> I'm not doing anything wrong. I design electronics and most of it >>>> works first time, and we sell it. >>> >>>That has nothing to do with the topic. >>> >>>> You just have to be careful when you drive things. And not believe >>>> everything just because a computer was involved. >>> >>>>Nonsense. You use the computer for everything. When was the last time >>>>you picked up a slide rule. You just have to be careful about the data >>>>you enter. >>> >>>>LTspice is as accurate as the models you give it. >> >>> Are you here to discuss electronics, or just to be obnoxious? > >>I discussed electronics and system design. I posted links to oscillator >>design that you ignored. I showed your ignorance of LTspice caused you to >>make false claims about its performance. You completely failed to >>acknowledge any of my posts and still insisted your original erroneous >>analysis about the accuracy of LTspice was correct. > >>LTspice is vital in electronics design. If you can show that any of my >>replies is wrong, please post. > >Ahmmmmm.... I am assuming you mean Spice. LTSpice has some deficiencies. Sure. Most things like this have some quirks. I've mostly become aware of these things in LT Spice. The sims are usually nicely predictive of what the hardware ultimately does, even for picosecond stuff. Most of my sims never see production. They are prods to thinking, and ways to archive good and bad ideas. More parts makers should supply models and working examples of LT Spice for their parts. A few do. > > >-- Kevin Aylward >http://www.anasoft.co.uk - SuperSpice >http://www.kevinaylward.co.uk/ee/index.html -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> |
|---|---|
| Date | 2019-03-08 16:12 +0000 |
| Message-ID | <vsydnVPqX5gWCR_BnZ2dnUU7-TvNnZ2d@giganews.com> |
| In reply to | #534478 |
>"Steve Wilson" wrote in message >news:XnsAA0A972A26F0Fidtokenpost@69.16.179.22... >John Larkin <jjlarkin@highlandtechnology.com> wrote: >> After 10 cycles, I see about 500 PPM in my LC. Not so different. It >> means that you might not want to design crystal oscillators in time >> domain. >You need time domain to adjust the crystal drive. Too little and the >oscillator may not start. Too much and you may fracture the crystal. Although its true that too large a drive might kill the xtal, that is not usually the determinator of max drive current in a precision oscillator xtal. A key issue is ageing. Excessive overdrive makes the xtal frequency drift over time. A second issue is the creation of anomalous frequency variations over temperature that can't easily be compensated out. >Crystal oscillators have a long startup time due to the high Q. You cannot >make meaningful measurements after hundreds of milliseconds of cycles. I >show how to bypass the long startup in my oscillator.zip article which you >ignored https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf An, arguable, more convenient alternative to setting node initial conditions to speed startup is to simple set the initial inductor current of the xtal inducter e.g. to form a line: LXTAL 1 2 1m ic=1.5ma In SuperSpice, you just set it in the inductor setup dialog. In standard spice you also need to set UIC (use initial conditions). not sure how LTSPice handles this. To get an accurate value requires running a sweep of initial values to find the correct value, typically running a deQed circuit to speed up that evaluation. What looks like a steady state amplitude, isn't. It still takes the time associated with its c1/L to stabilise. >>Always specify the maximum time step. Yes. >> LT Spice is mathematically chaotic, especially when it uses its >> default time step algorithm. There are probably cases that are >> especialy bad, and maybe I get lucky finding them. I am usually lucky. >LTspice repeats exactly given the same data. There is nothing chaotic about >it. It is indeed an excellent example of a mathematically chaotic system. The fact that a simulation will repeat itself exactly, with the same data does not make the system non chaotic. Indeed, the predictability of the apparent randomness is, arguable, the key feature of chaotic systems. The classic example being the rediscovery of chaos theory when Edward Lorenz noted a difference in results for what he initially thought was an identical simulation. https://en.wikipedia.org/wiki/Chaos_theory >> You just have to be careful when you drive things. And not believe >> everything just because a computer was involved. >Nonsense. You use the computer for everything. When was the last time you >picked up a slide rule. You just have to be careful about the data you >enter. Oh dear... "Don't believe just because a computer was involved" includes "be careful about the data" . Data is what drives a computer >LTspice is as accurate as the models you give it. The models are never 100% accurate, and neither is the simulator, even if the models were 100% accurate. Spice, now get this, has a reltol, vntol, chgtol and an abstol, additionally it has a gmin. These create errors... Now.... In order to simulate high Q xtal oscillators (c1=0.3fF), especially embedded into larger circuits one might well need to put a clamp across the inductor. This is because operating voltages across the the inductor may be 100kV, and whilst searching for the solution, the iterator might start generating voltages of 1000s of MV. If not clamped, the large span of voltages can cause convergence failure. Typically numbers need to be restricted to about 12-13 digit spans. A two diode series clamp using a spice default gmin=1p across the inductor will totally collapse the phase response so that the system won't oscillate. Reducing gmin can cause convergence failure for other parts of the circuit. 1 Tohms is too low a resistance! The point here, is that the simulator itself has limitations independent of the accuracy of the models that can cause it to fail. Its not just the models that cause accuracy problems. -- Kevin Aylward http://www.anasoft.co.uk - SuperSpice http://www.kevinaylward.co.uk/ee/index.html
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2019-03-08 08:37 -0800 |
| Message-ID | <h6658epnuom5lj4b0hn1kifniv39do9c1a@4ax.com> |
| In reply to | #534644 |
On Fri, 8 Mar 2019 16:12:57 -0000, "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> wrote: >>"Steve Wilson" wrote in message >>news:XnsAA0A972A26F0Fidtokenpost@69.16.179.22... >>Yes. > >>> LT Spice is mathematically chaotic, especially when it uses its >>> default time step algorithm. There are probably cases that are >>> especialy bad, and maybe I get lucky finding them. I am usually lucky. > >>LTspice repeats exactly given the same data. There is nothing chaotic about >>it. > >It is indeed an excellent example of a mathematically chaotic system. The >fact that a simulation will repeat itself exactly, with the same data does >not make the system non chaotic. Indeed, the predictability of the apparent >randomness is, arguable, the key feature of chaotic systems. The classic >example being the rediscovery of chaos theory when Edward Lorenz noted a >difference in results for what he initially thought was an identical >simulation. > >https://en.wikipedia.org/wiki/Chaos_theory LT Spice will sometimes do weird things, and maybe not do them, with the tiniest change of anything. Sometimes an entire sim run will slow down by 100:1. Sometimes it will cruise along and then stall at some arbitrary point for seconds or minutes, then wake up and resume. The initial conditions solution can take forever. Does SuperSpice do that? Is that inherent with Spice? I used to run ECA under DOS. Nothing would stop it; not convergence problems, not divide by zero, nothing. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | sci.electronics.design
csiph-web