Measuring risetime in LTspice.

Thread Starter

RichardO

Joined May 4, 2013
2,270
I just measure it from the expanded plot (left-click and draw a rectangle around the rise portion of the signal).
Yes, this works but is a real pain if I am making changes to the circuit to optimize the risetime.

And... I would like to know how to do the .meas operation for future use. :D
 

eetech00

Joined Jun 8, 2013
4,705
Yes, this works but is a real pain if I am making changes to the circuit to optimize the risetime.

And... I would like to know how to do the .meas operation for future use. :D
Hi

That could get difficult because the waveform is “ringing”.

But as an example..
Suppose the output voltage is s pulse of 0-10 volts and you want 10% and 90% values.
You could do something like this:

Rise time:
.meas tr1 time TRIG V(out)=1 TD=0.2u RISE=1 TARG V(out)=9 TD=0.2u RISE=1

Fall time:
.meas tf1 time TRIG V(out)=9 TD=0.2u FALL=1 TARG V(out)=1 TD=0.2u FALL=1

TD specifies the measurement delay time.
In the example, It means “wait 0.2u seconds before measuring”

Hope that helps...

eT
 

Thread Starter

RichardO

Joined May 4, 2013
2,270
Hope that helps...

eT
Thanks, it helps a lot. That gives me a good place to start. Some more thoughts and questions though.

The ringing (and also overshoot) is a problem. I can't decide whether I should measure to the "flat" part of the waveform or to the peak of the waveform. That's an issue I am willing to ignore for now. (I'm opting for the peak for now).

My amplitude varies when I make changes. This makes the fixed voltages at the 10% and 90% values a problem. Can you think of a way to do the measurement without using the fixed voltages. Maybe measure the minimum and maximum voltages and calculate the voltages at the 10% and 90% points?


I will try your examples and see what other questions I have.
 

eetech00

Joined Jun 8, 2013
4,705
Maybe measure the minimum and maximum voltages and calculate the voltages at the 10% and 90% points?
That’s a better way for this type of waveform.

There are a many .measure switches and options to play with...try the help info and experiment.

eT
 
Top