Any frequency sweep feature in LTSpice?

  • Thread starter Thread starter yungman
  • Start date Start date
  • Tags Tags
    Frequency Ltspice
Click For Summary

Discussion Overview

The discussion revolves around setting up a frequency sweep in LTSpice and plotting the frequency response. Participants explore the capabilities of LTSpice regarding AC analysis and share tips on configuring the software for this purpose.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant inquires about the method to set up a frequency sweep in LTSpice and plot the frequency response.
  • Another participant confirms that LTSpice supports AC analysis and provides guidance on accessing it through the simulation menu.
  • A suggestion is made to ensure that the signal generator properties include a voltage for small signal analysis, specifically mentioning the need for "AC amplitude" to be set.
  • It is noted that the frequency sweep range must be entered in a specific format, as LTSpice does not recognize MHz correctly without using scientific notation (e.g., 5.5E6 for 5.5 MHz).
  • A participant explains that the use of "meg" as a suffix for frequency is a historical aspect of Spice, indicating that both "m" and "M" are treated the same in terms of unit interpretation.
  • Some participants express opinions on the usability of LTSpice compared to other Spice versions, mentioning ease of learning and specific features like simulating LT switching regulators.
  • Concerns are raised about the pan and zoom functionality in LTSpice, with comparisons made to other software like OrCad.
  • Additional resources for obtaining more models for LTSpice are shared, including links to external archives.

Areas of Agreement / Disagreement

Participants generally agree on the capabilities of LTSpice for AC analysis and the need for specific settings to perform frequency sweeps. However, there are varying opinions regarding the usability of LTSpice compared to other software, and no consensus is reached on the best practices for navigating its interface.

Contextual Notes

Participants mention limitations regarding the interpretation of frequency units and the availability of certain op-amp models in LTSpice. These points highlight potential challenges users may face when configuring simulations.

yungman
Messages
5,741
Reaction score
291
Hi
I want to find out is there any way to set up frequency sweep in LTSpice and plot the frequency response on a graph? I have look and I cannot find it.

Thanks

Alan
 
Engineering news on Phys.org
yungman,
I use LTSpice from time to time, it has all of the usual spice capabilities including AC analysis.

Click Simulate/Run/AC analysis.

I have attached a screenshot of what mine looks like.
 

Attachments

  • ltspice.png
    ltspice.png
    6.7 KB · Views: 3,222
Your signal generator properties must have a voltage entered for small signal analysis.
Right click on it and look for "AC amplitude" on the right.
It has to be a sinewave, too.

You get to AC analysis (on my copy anyway) by using the "simulate" pulldown then "edit simulation cmd" then "AC analysis".

Click the right scale to turn off phase plotting if it is confusing.
 
Thanks both of you.

So bottom line is I need to get to "Edit simulation Cmd" and switch to AC analysis instead of Transient analysis.

Also go to the voltage source and set the amplitude on the AC analysis.

Thanks

Alan
 
Most common practice is to set AC amplitude to 1, this way the response you get at any probed point in the circuit will be your transfer function.
 
When you set the frequency sweep range, LTSpice does not accept MHz as a unit. (Well it does, but it regards it as milli-hertz.)

So, you need to use E6, (as in 5.5E6 (no space) for 5.5 MHz).
 
vk6kro said:
When you set the frequency sweep range, LTSpice does not accept MHz as a unit. (Well it does, but it regards it as milli-hertz.)

So, you need to use E6, (as in 5.5E6 (no space) for 5.5 MHz).

Thanks.
 
This is not LTSpice specific.
Spice uses "meg" as suffix for 10^6, dating back to when Spice was a batch mode fortran program in the 70s.
Spice is case insensitive so the "m" suffix and the "M" suffix are treated the same (and the Hz is ignored, Spice does not expect units), and both are interpreted as 10^-3 (milli).

So if you want 10MHz enter 10meg
if you want 10M ohms enter 10meg
etc.
 
Thanks. I'll try that.

How do you find LTSpice compares with other Spice versions?
 
  • #10
It is a very decent spice implementation, and pretty easy to learn if you are familiar with traditional spice. Its main appeal is its capability of simulating LT switching regulators.
 
  • #11
My biggest complain is the pan and zoom. It is hard to control the pan and zoom to get to the right place. I get to spoiled by OrCad schematic and layout that you hit "I" for zoom in and "O" for zoom out. You want to zoom in at one spot, just put the cursor on the spot and hit "I".

Also the models lack to common op-amp like TLO61, OP07, TLO81, LM324 etc.

But it gets the job done. This is the only PSpice I ever learn, so I can't compare with the others.
 
  • #12
Here you can find all the additional models
http://tech.groups.yahoo.com/group/LTspice/

http://valvolodin.narod.ru/soft/extra.rar
http://forest22.homeip.net/Electronics/index.html

Unpack the archive "extra.rar", using the archive RAR
Copy "extra1.rar" which is installed in the directories are LTspiceIV. Typically, this directory is "C: \ Program Files \ LTC"
Unzip "extra1.rar" which is installed in the directories are LTspiceIV
Finish
 
Last edited by a moderator:

Similar threads

Replies
18
Views
3K
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K