Tutorial Ltspice

20
7/21/2019 Tutorial Ltspice http://slidepdf.com/reader/full/tutorial-ltspice 1/20 LT SPICE Tutorial

description

an introductional tutorial on how to use LT spice and make different kinds of simulations

Transcript of Tutorial Ltspice

Page 1: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 1/20

LT SPICE Tutorial

Page 2: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 2/20

Getting Started

• Download LTSPICE IV fromhttp://www.linear.com/deigntool/oftware/

• Download the !."#um li$rar% &le 'log!"#.l() *cop% it to C:+Program ,ile+LTC+LTpiceIV+li$+cmp

• -pen the .l li$rar% &le in LTSPICE * change the

li$rar% path in all the .li$ de&nition to   C:+Program ,ile+LTC+LTpiceIV+li$+cmp+log!"#.l

Page 3: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 3/20

LTSPICE: Schematic

• Go to ,ile01ew Schematic

• Include the li$rar% &le $% uing a SPICE directi2e 3

.li$ 'C:+Program,ile+LTC+LTpiceIV+li$+cmp+log!"#.l( TT

• Go to Edit0Component and inert the followingcomponent in the chematic

nmo4 3 15-Spmo4 3 P5-S

2oltage 3 Voltage ource

6

Page 4: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 4/20

LTSPICE: Schematic

• 7ight clic8 on 15-S * P5-S and edit the model name from15-S/P5-S to nch and pch) repecti2el%

• Enter rele2ant parameter for tranitor9)L and 5; ignore<D) <S) etc for now= and 2oltage ource

• Go to Edit0Draw ire and connect all the component

• Go to Edit0Place G1D and place the ground in the circuit

Go to Edit0La$el 1et and la$el all the net name %ou mightwant to plot later 9ma8e life eaier=

•  To name a 2oltage ource) right clic8 on it name and edit

• Go to Simulate0Control Panel01etlit option) and unchec8

Default model and default li$rarie 4

Page 5: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 5/20

LTSPICE: DC anal%i

• Go to Edit0SPICE <nal%i0DC weep) and enterthe following 3

1ame of "t

 Source to Sweep: Vgn T%pe of Sweep: Linear

Start Value: !

Stop Value: ".#

Increment: !.!

>

Page 6: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 6/20

?

Page 7: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 7/20

Pre 7un

@

Page 8: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 8/20

LTSPICE: Simulation 7eult

• Succeful imulation open a .raw &le in anotherwindow

<ll the plot are a2ed in thi .raw &le

•  To plot) 7ight clic8 on the plot area * electVii$le Trace

#

Page 9: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 9/20

A

Page 10: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 10/20

LTSPICE: DC Simulation 7eult

•  To plot gain) 7ight clic8 on the plot area * elect<dd Trace

Be d9= to calculate the deri2ati2e of the rele2antcur2e w.r.t the wept 2aria$le

• ,or complete lit of mathematical operation) go

to elp0elp Topic0a2eform <rithmetic

"!

Page 11: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 11/20

""

Page 12: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 12/20

LTSPICE: DC op pnt anal%i

• Calculate DC operating point of the circuit

• Go to Edit0SPICE <nal%i0DC op pnt

• Succeful imulation open a lit of all node 2oltageand current in the circuit

•  To annotate node 2oltage on the chematic) rightclic8 on the chematic and elect View0Place .op

Data La$el and elect the deired net

•  To 2iew the detailed operating point of the tranitor)go to View0SPICE Error Log

"

Page 13: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 13/20

LTSPICE: <C anal%i

• 7ight clic8 on Vin) Select <d2anced and ma8e <Camplitude"

Go to Edit0SPICE <nal%i0<C anal%i) andenter the following 3

 T%pe of Sweep: Decade

1um$er of point per decade: !Start ,reuenc%: "8

Stop ,reuenc%: "!!G

"6

Page 14: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 14/20

LTSPICE: Tranient anal%i

• 7ight clic8 on Vin) Select <d2anced) Select Sineunder ,unction * enter the following parameter3

DC -Fet !) <mplitude ".>m) ,re "!!5eg

• Go to Edit0SPICE <nal%i0Tranient anal%i)and enter the following 3

Stop Time: #!n

"4

Page 15: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 15/20

LTSPICE: Parametric anal%i

• Bed to run imulation for diFerent 2alue of a deign2aria$le

• 7ight clic8 on Vin) Select <d2anced) Select Sine under,unction * enter the following parameter 3

DC -Fet !) <mplitude VinH) ,re "!!5eg

• <dd the parameter de&nition $% uing the SPICE directi2e 3.param Vin ".>m

Sweep Vin $% uing the SPICE directi2e 3.tep param Vin lit ".>m >m >!m "!!m

• ,or diFerent 8ind of parameter weep) go to elp Topic0.STEP

ref: http://we$.cec.pd.edu/Jpraad/LTSpiceK!SweepK!Tutorial.pdf  ">

Page 16: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 16/20

LTSPICE: ,,T anal%i

• Go to Edit0SPICE <nal%i0Tranient anal%i) and enter thefollowing 3Stop Time: #!n5aimum time tep: @.#">p

<dd SPICE directi2e .option matep@.#">p

• Go to Simulate0Control Panel0SPICE) and enter the followingtolerance 2alue 3<$tol: "e!">) 7eltol: !.!!!") Voltol: "e!!A

• Go to Simulate0 Control Panel0Compreion 3 Bnchec8 allt%pe of compreion

7ef: aic <nalog C5-S Deign: <n intuiti2e approach) $% Mlaa ult

"?

Page 17: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 17/20

LTSPICE: ,,T anal%i

• 7un the imulation and in the plot window) go to View0,,T

• Select the rele2ant wa2eform) and enter the following

etting1um$er of data point ample in time: "!4

 Time range to include0Specif% a time range

Start time: !

End time: #!n

inomial Smoothing done $efore ,,T and windowing1um$er of point: "

indowing

indowing function: 9none=

"@

Page 18: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 18/20

LTSPICE: ,,T anal%i

•  The ,,T i plotted with a logarithmic ai

• ,or a $etter plot) clic8 on the ai) unchec8

logarithmic and enter the following ai limit 3Left: ".>5N

 Tic8: ".>5N

7ight: 6.GN

•  Tr% to plot the ,,T of Vin &rt to ma8e ure theetup i correct

"#

Page 19: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 19/20

5ic.

• Shortcut

Draw wire ,6

Component ,

5o2e ,@

La$el 1et ,4

SPICE Directi2e

Place G1D g

Cop% ,? or CtrlOC7otate ,@0elect o$ect0CtrlO7

Qoom to &t Space

Bndo ,A

"A

Page 20: Tutorial Ltspice

7/21/2019 Tutorial Ltspice

http://slidepdf.com/reader/full/tutorial-ltspice 20/20

5ic.

•  To pate plot in word document) Tool0Cop%$itmap to clip$oard

,urther 7eading

• ,,T etup : aic <nalog C5-S Deign: <n intuiti2e approach) $%

Mlaa ult

•LTSPICE :

• rief http://www.ece.uidaho.edu/ee/clae/ECE""/pdf/LTSpiceRaicRTutorial.pdf 

• Detailed http://ltpice.linear.com/oftware/cad6.pdf 

• http://denethor.wlu.ca/ltpice/!