To import a third-party intrinsic spice model
- Download the spice model file from the manufacturer’s website. Make sure to note the file location on the hard-drive.(save it in a .txt file)
- Add the following spice directive to the LTspice simulation file
// Edit pull-down menu ---> SPICE Directive):
.include [path(optional)] spicemodel_filename.abc
// if the model is in a .txt file
.include [path(optional)] spicemodel_filename.txt
Important: The file name in the .include statement must match the spice model file name identically! The file name syntax can be anything, just make sure that all of the characters match.
Note: An absolute path name can be omitted in the .include directive only if the file is located in:
- \lib\sub
- The directory that contains the simulation file
To change the default settings(time variable) of the X-axis:
- Click on a node/component to plot its voltage/current in the waveform viewer.
- Move the cursor to the horizontal axis of the waveform viewer (the cursor will turn into a ruler) and left-click.
- In the Horizontal Axis dialog, enter an expression for the “Quantity Plotted.
- Click OK.
.meas vmax max v(vout) // find maximum value within the tran time
.meas vmin min v(vout) // find minimum value within the tran time
.meas vmax find abs(v(vout)) at t1 // if the period of the waveform is known
.meas vmin find abs(v(vout)) at t2