Maker Pro
Maker Pro

LT Spice model for "a delay line."

  • Thread starter .:: Evanescence ::.
  • Start date
E

.:: Evanescence ::.

Jan 1, 1970
0
Hi.

Do anybody here have a LT Spice model for the "Delay Line" like the "DELAY"
component that exists in PSpice?

Thanks.
 
J

Jim Thompson

Jan 1, 1970
0
Hi.

Do anybody here have a LT Spice model for the "Delay Line" like the "DELAY"
component that exists in PSpice?

Thanks.

The "Delay" element in PSpice is a **digital** device. I don't know
if LTSpice has digital devices, but you could use a transmission line.

...Jim Thompson
 
E

.:: Evanescence ::.

Jan 1, 1970
0
The "Delay" element in PSpice is a **digital** device. I don't know
if LTSpice has digital devices, but you could use a transmission line.

I forgot this. LTSpice has basic digital devices (AND/OR/XOR/NOT gates only)
but a transmission line seems the only way to do.

Do you have info on how to make a delay line with a transmission line? I am
new user of LTspice (cool program. sad that I didn't known it before).
 
J

Jim Thompson

Jan 1, 1970
0
I forgot this. LTSpice has basic digital devices (AND/OR/XOR/NOT gates only)
but a transmission line seems the only way to do.

Do you have info on how to make a delay line with a transmission line? I am
new user of LTspice (cool program. sad that I didn't known it before).

Maybe Mikey will jump in here. In *PSpice* you set Zo, length OR
delay. I would imagine that LTSpice is similar. Note, you must load
the transmission line with a resistor of value Zo. otherwise you will
get reflections, just as in real life.

...Jim Thompson
 
E

.:: Evanescence ::.

Jan 1, 1970
0
Um duende verde chamado Jim Thompson <[email protected]> disse em

Maybe Mikey will jump in here. In *PSpice* you set Zo, length OR
delay. I would imagine that LTSpice is similar. Note, you must load
the transmission line with a resistor of value Zo. otherwise you will
get reflections, just as in real life.

This done the magic!

Many thanks!

--
 
M

Mike Engelhardt

Jan 1, 1970
0
Evanescence,
This done the magic!

Many thanks!

Another option is to use a behavioral delay. Below
is an .asc file the illustrates.

--Mike

Version 4
SHEET 1 880 680
WIRE 48 400 48 352
WIRE 48 272 48 224
WIRE 240 224 240 272
WIRE 240 352 240 400
FLAG 240 400 0
FLAG 48 400 0
FLAG 48 224 X
SYMBOL bv 240 256 R0
SYMATTR InstName B1
SYMATTR Value V=delay(V(x),.3m)
SYMBOL voltage 48 256 R0
SYMATTR InstName V1
SYMATTR Value sine(0 1 1K)
TEXT 352 440 Left 0 !.tran 5m
 
E

.:: Evanescence ::.

Jan 1, 1970
0
Another option is to use a behavioral delay. Below
is an .asc file the illustrates.
--Mike

Version 4
SHEET 1 880 680


This is other way to do it. Thanks for both (Jim and you) that reply to me.
 
G

George

Jan 1, 1970
0
Just curious. Does this "delay" method run faster, slower or the same as
delay line?

George
 
M

Mike Engelhardt

Jan 1, 1970
0
George,

They use slightly different timestep control algorithms, so
it should be possible to contrive simulations that will
demonstrate each as faster. Neither is ever used in the
SMPS macro models because these IC's don't contain high
fidelity analog delay lines. Analog delays in LTspice's
SMPS macro models are usually RC time constants. They
better mimic the delay of something like a comparator
because they will switch state faster given more over-
voltage and switch slower if the input slowly approaches
the threshold. Real comparators act somewhere between
integrators and discrimators. Anyway, RC time constants
in this case are not only more accurate, but simulate much
faster than any delay device. When looking for a delay,
one should ask if they really mean a delay that preserves
the whole analog waveform. A critter like that is much
less common then some gate that gives some delay.

--Mike
 
G

George

Jan 1, 1970
0
Mike,

Thanks for explanation. I've used a delay line to provide accurate phase shifts in a
bridge simulation but it always simulates slowly. Now I'll try the bv model and see if
there is a difference. For this case a simple RC delay wouldn't work well, as you
note, since it doesn't preserve the waveform.

George

Mike Engelhardt wrote:

George,

They use slightly different timestep control algorithms, so
it should be possible to contrive simulations that will
demonstrate each as faster. Neither is ever used in the
SMPS macro models because these IC's don't contain high
fidelity analog delay lines. Analog delays in LTspice's
SMPS macro models are usually RC time constants. They
better mimic the delay of something like a comparator
because they will switch state faster given more over-
voltage and switch slower if the input slowly approaches
the threshold. Real comparators act somewhere between
integrators and discrimators. Anyway, RC time constants
in this case are not only more accurate, but simulate much
faster than any delay device. When looking for a delay,
one should ask if they really mean a delay that preserves
the whole analog waveform. A critter like that is much
less common then some gate that gives some delay.

--Mike

snip
 
Top