Things you should know about LTSpice

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.

iko

Ex-Moderator
Joined 2008
Use the forum search function and lookup the terms laplace ltspice and you will find a few posts. The gist of it is to insert a voltage dependent voltage source (E) whose value is set to a string of the form

laplace ((1+3183u*s)*(1+75u*s))/((1+318.3u*s)*(1+3.183u*s))

You'll have to check the formula above because I wrote it from memory and I don't trust my memory. :)

In ltspice, to set the value of any component you press the CTRL key and in the same time press the right mouse button on top of the component. That will open a dialogue, and you need to change the "value" field.
 
Last edited:

iko

Ex-Moderator
Joined 2008
Here, download this file and run in in ltspice. You should get a plot as shown.
 

Attachments

  • inv_riaa.png
    inv_riaa.png
    9.2 KB · Views: 467
  • inv_riaa_plot.png
    inv_riaa_plot.png
    20 KB · Views: 443
tnx, i'm still a bit "fuzzy" about the use of laplace sources, that helps a lot for me too.

ra7 when you get ready to test your phono preamp with physical test equipment, the circuit i provided above goes in front of the phono preamp (between the sig gen and the phono preamp) and approximates (+/- 0.1db) the pre-emphasis curve of the laplace inverse riaa sig source.
 
Right click on the input voltage source and enter "AC 1" into the box labeled "AC Amplitude".

Then go so Simulate->Simulation cmd->AC Analysis

I usually choose "decade" with 10 points per decade.

- keantoken

That will give you the closed loop response. For the open loop response (for determining stability) see LoopGain.asc and LoopGain2.asc in the ...LTSpiceIV/examples/Educational directory.

both have references, find them on the web and read them for understanding.
 
Does anyone have a spice model for a TL431 programable precision reference??? Or know where to find it??

Here's the one from the LTspice user's group, by analogspiceman. It takes into account stability, variation of impedance with frequency, etc.

Edit: This is for LTspice only, as it uses the semi-ideal diode model that's unique to LTspice.
 

Attachments

  • tl431a.zip
    732 bytes · Views: 132
Last edited:
Hola and Thanks Y'all

I guess I'll see if I can figure out how to use it now that I Have it. I am trying to relpace a zener with a TL431. LT has a ltspice model for a lt1431 which is the 8 legged version of the simpler 3 pinned one. The TI site has a modeling excel program that lets you put in working voltage and target voltage to find component values thats pretty nifty...

Thanks again friends, Elwood
 
It's pretty young yet, But direction is approaching finity... What needs to be done is for someone to announce a "wiki project" of some sort, where we attack a certain topic, such as NFB and stability. But that takes some commitment on the writers' part.

- keantoken
 
i have a paper i was writing about damping factor, output impedance and feedback. all of the simulations and experiments so far are LTSpice models, i'm currently working on "part 2" which uses real physical equipment to verify the models, but i think everybody here could benefit from what i have so far. i'll post it later and get some feedback if anybody is interested. i can then post it on the wiki
 
how about i post it here first for review, so everyone can take a look at it and give me some feedback (pun intended:D ). there are some explanations in there about how to use and modify the parameters for the "generic" LTSpice op amp (GBW, Aol, which in itself can be very instructional.

i have it as a pdf, but at 1.3Mb, was far beyond the upload limit, so i uploaded the .doc in a zip file

one immediate side benefit of writing this paper, is i can tell if a solid state amp is at least working somewhat normally, without applying signal, just by tapping on the speaker cone while i power it up and listening for the change in speaker damping. obviously this trick only works if the output impedance of the amp is significantly lower than that of the speaker, so it doesn't work with most tube amps or most class D amps (class D amps with ample feedback mechanisms are few and far between).
 

Attachments

  • damping-factor.zip
    812.5 KB · Views: 110
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.