Ltspice Ltspice Is a Free Circuit Simulator Based on Berkeley’S SPICE 3 Program Available for Download From

Total Page:16

File Type:pdf, Size:1020Kb

Ltspice Ltspice Is a Free Circuit Simulator Based on Berkeley’S SPICE 3 Program Available for Download From University of California, Berkeley Department of Electrical Engineering and Computer Sciences EE 105: Microelectronic Devices and Circuits LTSpice LTSpice is a free circuit simulator based on Berkeley’s SPICE 3 program available for download from http://www.linear.com. This document describes some of the features used in EE105. Additional information is available from the tool’s built-in help command and tutorials available on the web. Common-Emitter Amplifier Example Schematic diagram To enter the schematic select the resistor and ground symbol from the tools menu and the transistor and voltage sources by clicking and then choosing “npn” and “voltage” in the dialog that opens. Set all device parameters (e.g. resistor value) by right-clicking on the component and entering the desired value(s) in the dialog box that opens. Connect the devices with the wiring tool . Label nets with the tool and drag components to make she schematic look pretty with . The larger hand, , also moves components but detaches them from their nets (wires). To enter the .model and .dc statements, choose “EditSPICE Directive” from the menu and enter the text in the dialog box. The .model statement defines a custom npn transistor with name npn105 and Is=10fA, =100, and Early voltage VA=100V. Set the model parameter of Q1 to the name of the custom model (npn105), as shown in the example on the right. Verify that your schematic looks just like the one shown above and that you have entered all component values. Rser is the series resistance of source Vi and limits the current flowing into the base of Q1. An alternative would be to reduce the maximum value of the DC sweep to less than 5V. DC Analysis Clicking runs the simulation. Since you have entered the analysis statement (.dc) in schematic, LTSpice knows that you want to perform a DC analysis. Otherwise a dialog box opens letting you choose the analysis to run. Plot Vout by clicking on its net or label in the schematic. EE 105 – LTSpice Page 1 Plotting the Voltage Gain Use expressions to plot the voltage gain of the circuit. Right-click on “V(vout)” in the plot window and change the text in the dialog box to “V(vout)/Vi”. This plots the large-signal gain of the circuit shown on the right. Although we can compute and plot it, the large-signal gain of a common-emitter amplifier is not very meaningful. To plot the small-signal gain -av = -dVout/dVi, change the plot expression to “-d(V(vout))”. As expected, the circuit has gain over a narrow range of input voltages. Frequently it is more meaningful to plot av as a function of the output voltage Vout, rather than Vi. Click on the horizontal axis (e.g. on 2.6V) and enter “V(Vout)” for “Quantity Plotted”. The plot changes to the one shown at the right, now indicating that that values on the horizontal axis are for Vout, rather than the analysis sweep variable, Vi. As we can see, the circuit has gain over a wide range of Vout. At low Vout, the gain drops as Q1 enters saturation. For large Vout, the bias current IC drops (a result of the decreased voltage across R1), lowering the transconductance gm of Q1. Simulating over Temperature LTSpice has quite powerful features. Let’s simulate the gain variation as a function of temperature. Change the .dc analysis statement as shown on the right and add the new SPICE directive “.step temp 0 70 35” to instruct SPICE to perform simulations between 0C and 70C in steps of 35C (i.e. to simulate at 0C, 35C, and 70C). Rerun the simulation and configure the plot to show the small-signal gain as a function of Vi for the three different temperatures. Which trace corresponds to which temperature? EE 105 – LTSpice Page 2 Small-signal gain versus Vin for temperatures 0C, 35C, and 70C. Change the horizontal axis to Vout. Apparently the circuit gain only weakly depends on temperature. However, the bias point, i.e. the value of Vin for which the circuit has high gain, changes as a function of temperature. This is to be expected as VBE(on) decreases -2mV/C, shifting the -av plot to the left as the temperature increases. Small-signal gain versus Vout for temperatures 0C, 35C, and 70C. EE 105 – LTSpice Page 3 Transfer Function Analysis The SPICE transfer function analysis calculates the low frequency gain and input & output resistances of a circuit. We demonstrate the command for the CE amplifier with degeneration shown on the right. If the circuit is biased such that VO = VCC/2 = 2.5V, we get IC = 50A, and Rin ≈ 252k, Rout ≈ 50k, and av ≈ -20. To simulate the circuit, first run a DC sweep to determine the bias value of Vi for with VO = 2.5V. For circuits with high gain, you need to determine this value to many digits accuracy. Next run an operating point analysis (“DC op pnt” in LTSpice) and verify that the circuit is correctly biased. In this case check that IC = 50A and VO = 2.5V. This check is often an enormous time saver, as incorrect bias can lead to strange results that can take hours to debug. You have been warned! Finally run a DC transfer function analysis. You need to specify the source (Vi in this case) and output of the circuit, V(vout). Output from the operating point analysis. Always perform this simulation to check the bias point of the circuit. In this case, IC = 50A and VO = 2.5V, as desired. EE 105 – LTSpice Page 4 Output from the DC transfer function analysis. The simulated gain, -19.6, is close to the calculated value -20 which ignored the effect of ro and made other simplifications. Same for the input and output resistance of the circuit. AC Analysis The figure shows an example for an ac analysis. Determine the parameters in the .model statement 3.9o pF from the transistor specifications. Definitions: kCp ox , tox (o 8.854 ) and Cox m CCCgso gdo ol . Use an LTSpice nmos4 device for the transistor and specify the model name, length, and width in the parameter dialog. Note: Spice will report an error that W and L are smaller than recommended for level 1 models. This warning refers to the fact that the simple “square law models” used in class are inaccurate for transistors with channel length less than about 2m. In actual design you would have to use more accurate (and complicated) models. Next you need to specify an input. Use an LTSpice voltage component and determine and enter the bias voltage by running a DC analysis. Click on the “advanced” tab in the parameter section and enter AC Amplitude 1. Sample schematic for ac-analysis. EE 105 – LTSpice Page 5 The figure below shows the output (magnitude and phase) from the ac analysis. Always annotate SPICE output. SPICE ac-analysis output. EE 105 – LTSpice Page 6 .
Recommended publications
  • DC/DC CONTROLLER Selection Guide
    DC/DC CONTROLLER Selection Guide Visit analog.com 2 DC/DC Controller Contents ADI provides complete power solutions with a full lineup of power management products. This brochure shows an overview of our high performance DC/DC switching regulator controllers for applications including industrial, datacom, telecom, automotive, computing infrastructure, and consumer electronics. We make power design easier with our LTpowerCAD® and LTspice® simulation programs and our industry-leading field application engineering support. A broad selection of demonstration boards are available which includes layout and bill of material files, application notes and comprehensive technical documentation. LTpowerCAD . 3 LED Drivers . 15. LTpowerCAD Power Supply Design Tool Bidirectional . 16 LTspice . .4 . Benefits of Using LTspice SEPIC . 18 . LTspice Demo Circuits Inverter . 19 Single Output Buck . 5 Switching Surge Stoppers . 20 . VIN Up to 22 V, Down to 2.2 V. 5 VIN Up to 38 V . 6 Isolated Forward, Half-Bridge, Full-Bridge, and Push-Pull . .21 . VIN Up to 60 V . 7 VIN Up to 150 V. .8 Flyback . 22. Hybrid . 9 Multiple Topology . 23 Multiphase Single Output Buck . 10. DDR/QDR Memory Termination . 24. Multiple Output Buck . 11 . MOSFET Drivers . 25 Boost. .12 . Digital . Power System Management . 26. Buck-Boost . 13. LTpowerPlay . 27. Buck/Buck/Boost—Ideal for Automotive Start-Stop Systems. .14 . Visit analog.com 3 LTpowerCAD LTpowerCAD is an easy-to-use power supply design tool with a user-friendly and load transient performances. Once a circuit design is completed, graphical user interface and power design features. It supports many power it can be easily exported to the LTspice simulation platform.
    [Show full text]
  • Alexis Rodriguez Jr
    Alexis Rodriguez Jr. 701 SW 62nd Blvd - Apt 104 - Gainesville - FL - 32604 Cell: 305-370-8334 Email: [email protected] ​ Education: University of Florida Gainesville, FL Current M.S. Computer and Electrical Engineering University of Florida Gainesville, FL 2018 B.S. Electrical Engineering - Cum Laude Miami Dade College Miami, FL 2013 A.A. Engineering - Computer Projects: FPGA Networking Research Current Nallatech 385a Communication Research Current Glove Controlled Drone Design 2 Fall 2017 32-bit ARM Cortex (TI MSP432) used to interpret hand gestures via sensors for drone flight, transmit user intended controls to the drone via RF communication, and detect and display communication errors and react accordingly for safety 32-bit MIPS Emulated Processor Digital Design Spring 2017 Altera Cyclone-III FPGA used to emulate MIPS processor via VHDL Guitar Tuner Design 1 Spring 2017 Microchip PIC18F4620 microcontroller and discrete analog components used to determine correct input frequency via analog filtering and DSP techniques Employment: University of Florida - ARC Lab Gainesville, FL Current Research Assistant - FPGA ❖ Research systems integration of Nallatech 385a FPGA card and its components including the Intel Arria 10 FPGA, Intel’s Avalon bus, and PCIe communication via Linux ❖ Create partial reconfiguration region for Nallatech 385a for general use in research lab ❖ Research cloud and network implementations of FPGAs Intel San Jose, CA Summer 2019/2020 Programmable Solutions Group Intern ❖ Assisted with Agilex Linux driver development ❖ ITU G spec testing compliance and characterization for IEEE 1588 on Intel N3000 ❖ Developed automated tools for ITU network timestamp testing ❖ System validation of IEEE 1588 for Wireless 5G technology and communicated need and data across many teams ❖ Developed Arduino workshop for hobbyists Alexis Rodriguez Jr.
    [Show full text]
  • Experiences in Using Open Source Software for Teaching Electronic Engineering CAD
    Experiences in Using Open Source Software for Teaching Electronic Engineering CAD Dr Simon Busbridge1 & Dr Deshinder Singh Gill School of Computing, Engineering and Mathematics, University of Brighton, Brighton BN2 4GJ [email protected] Abstract Embedded systems and simulation distinguish modern professional electronic engineering from that learnt at school. First year undergraduates typically have little appreciation of engineering software capabilities and file handling beyond elementary word processing. This year we expedited blended teaching through the experiential based learning process via open source engineering software. Students engaged with the entire electronic engineering product creation process from inception, performance simulation, printed circuit board design, manufacture and assembly, to cabinet design and complete finished product. Currently students learn software skills using a mixture of electronic and mechanical engineering software packages. Although these have professional capability they are not available off-campus and are sometimes surprisingly poor in simulating real world devices. In this paper we report use of LTspice, FreePCB and OpenSCAD for the learning and teaching of analogue electronics simulation and manufacture. Comparison of the software options, the type of tasks undertaken, examples of student assignments and outputs, and learning achieved are presented. Examples of assignment based learning, integration between the open source packages and difficulties encountered are discussed. Evaluation of student attitudes and responses to this method of learning and teaching are also discussed, and the educational advantages of using this approach compared to the use of commercial packages is highlighted. Introduction Most educational establishments use software for simulating or designing engineering. Most commercial packages come with an academic licence which restricts access to on-site computers.
    [Show full text]
  • LT Spice – Getting Started Very Quickly – Part II Single Supply AC
    LT Spice – Getting Started Very Quickly – Part II Single Supply AC Coupled Inverting OpAmp Experimentation 1. Starting with the typical dc coupled inverting opamp circuit created earlier in Part I., we simply have to move the input voltage source to the left and insert a 1uF cap Between the voltage source a series input resistor. 2. Right click over the capacitor and type in a value of 1u for 1 micro-farad. Units relating to capacitors are p for pico, n for nano and u for micro. 3. Change the gain from -4 to -10 By increasing the feedBack resistor from 4000 ohms to 10K ohms. This gain will Be useful when we have to compute the 20*log of the voltage output later. 4. If you now run the dc sweep you will see there is no output because the input is being blocked (dc value) to the series input resistor. Instead of a dc sweep we now need to chance the simulation to AC Analysis. First use the Scissor icon and delete the .dc V3 1.25 2.05 0.1 LT Spice directive on the breadboard. Then go into Simulation > Edit Simulation Cmd and remove the spice directive at the Bottom of the DC Sweep taB. This removes the DC Sweep simulation which is no longer meaningful since we now have an AC coupled circuit. 5. Next select the AC Analysis tab. Select a linear sweep from 20 to 20K Hz By typing 20 in the Start Frequency: field & 20k in Stop Frequency: field. As in resistive input k = kilo and MEG = mega.
    [Show full text]
  • Printed Circuit Board Design
    Printed Circuit Board Design ECE 3400 [email protected] Agenda • What is a PCB? Should I use a PCB? • Design example • Component selection • Schematic design • Layout basics • Layout Considerations • Trace Width, Pours, Thermals • Grounding • Decoupling • High-Frequency considerations • 3D Modelling • Testing • Mistakes • Other • Eagle demo if time What is a PCB? • Interleaved layers of copper and insulator • Number of layers = number of copper layers Useful Terms TRACE Trace VIA Copper path (equivalent of wire) Via Hole in board with connection between layers Useful Terms Pad Exposed copper for component placement Package SMD Package Pads Casing for a component with metal leads coming out. Usually black plastic. Thru-Hole Surface Mount (SMT/SMD) Components that can be soldered onto pads, not through-holes PCB Tradeoffs Pros Cons • Permanence/Reliability • Permanence • Space-Savings • Lead-Time • Simple to Manufacture • Isolation • Immune to movement • High-Frequency Effects • Better grounding • Testability • Thermal Management PCB Manufacturing • Etching – Primarily used in industry, best tolerances • Milling – Drill/Cut undesired copper • Printing – Specialized conductive nano-inks • Direct Plating • Direct Cutting Design Process 1) Specifications 2) Topology & Component Selection 3) Schematic 4) Simulation 5) Layout 6) Print 1:1 on paper and check 7) Export Gerbers and Order 8) Solder 9) Testing/Verification 10) Use Design Example – IR Hat 1) Specifications What should it do? How well? In what conditions? Given: Make a PCB which emits
    [Show full text]
  • Water Aliasing
    Water Aliasing Design Review TA: Luke Wendt ECE 445 March 10, 2017 Project Contributors: Atreyee Roy Siddharth Sharma 1 Table of Contents 1. Introduction .................................................................................................................... 3 ​ 1.1 Objective ........................................................................................................ 3 1.2 Background .................................................................................................... 3 1.3 High Level Requirements .............................................................................. 3 2. Design ............................................................................................................................. 4 ​ 2.1 Block Diagram ................................................................................................ 4 2.2 Physical Design ............................................................................................... 6 2.3 Block Design ................................................................................................... 7 2.3.1 Lighting Unit ....................................................................................... 7 2.3.2 User Interface ...................................................................................... 13 2.3.3 Water Unit ........................................................................................... 14 2.3 Risk Analysis ..................................................................................................
    [Show full text]
  • Transient Circuits, RC, RL Step Responses, 2Nd Order Circuits
    Alpha Laboratories ECSE-2010 Fall 2018 LABORATORY 3: Transient circuits, RC, RL step responses, 2nd Order Circuits Note: If your partner is no longer in the class, please talk to the instructor. Material covered: RC circuits Integrators Differentiators 1st order RC, RL Circuits 2nd order RLC series, parallel circuits Thevenin circuits Part A: Transient Circuits RC Time constants: A time constant is the time it takes a circuit characteristic (Voltage for example) to change from one state to another state. In a simple RC circuit where the resistor and capacitor are in series, the RC time constant is defined as the time it takes the voltage across a capacitor to reach 63.2% of its final value when charging (or 36.8% of its initial value when discharging). It is assume a step function (Heavyside function) is applied as the source. The time constant is defined by the equation τ = RC where τ is the time constant in seconds R is the resistance in Ohms C is the capacitance in Farads The following figure illustrates the time constant for a square pulse when the capacitor is charging and discharging during the appropriate parts of the input signal. You will see a similar plot in the lab. Note the charge (63.2%) and discharge voltages (36.8%) after one time constant, respectively. Written by J. Braunstein Revised by S. Sawyer Fall 2018: 8/23/2018 Rensselaer Polytechnic Institute Troy, New York, USA 1 Alpha Laboratories ECSE-2010 Fall 2018 Written by J. Braunstein Revised by S. Sawyer Fall 2018: 8/23/2018 Rensselaer Polytechnic Institute Troy, New York, USA 2 Alpha Laboratories ECSE-2010 Fall 2018 Discovery Board: For most of the remaining class, you will want to compare input and output voltage time varying signals.
    [Show full text]
  • Computer Aided Design of Electronic Devices
    TOMSK POLYTECHNIC UNIVERSITY O.A. Kozhemyak, D.N. Ogorodnikov COMPUTER AIDED DESIGN OF ELECTRONIC DEVICES It is recommended for publishing as a study aid by the Editorial Board of Tomsk Polytechnic University Tomsk Polytechnic University Publishing House 2014 1 UDC 621.38(075.8) BBC 31.2 K58 Kozhemyak O.A. K58 Computer aided design of electronic devices: study aid / O.A. Kozhemyak, D.N. Ogorodnikov; Tomsk Polytechnic University. – Tomsk: TPU Publishing House, 2014. – 130 p. This textbook focuses on the basic notions, history, types, technology and applications of computer-aided design. Methods of electronic devices simulation, automated design of power electronic devices and components, constructive- technological design are considered and discussed. Some features of the popular electronics CADs are also shown. There are a lot of practical examples using CADs of electronics. The textbook is designed at the Department of Industrial and Medical Electronics of TPU. It is intended for students majoring in the specialty „Electronics and Nanoelectronics‟. UDC 621.38(075.8) BBC 31.2 Reviewer Cand.Sc, Head of Laboratory, Tomsk State University of Control Systems and Radioelectronics Aleksandr V. Osipov © STE HPT TPU, 2014 © Kozhemyak O.A., Ogorodnikov D.N., 2014 © Design. Tomsk Polytechnic University Publishing House, 2014 2 Introduction. CAD around Us ........................................................................... 5 What is CAD? ................................................................................................ 5 Overview
    [Show full text]
  • EE698W Department of Electrical Engineering, IIT Kanpur Tutorial on Ltspice
    EE698W Department of Electrical Engineering, IIT Kanpur Tutorial on LTspice 1. Adding library file to LTspice editor: a) Open LTspice and click on .op (right top corner) and type .lib and then click OK. b) Next right click on .lib two times and then browse for the model file saved in your machine (PC) Fig: 1. Opening Command Prompt in LTSpice Fig 2. Adding Library File or Model file to Editor 2. Changing Transistor Model Name: a) Select any transistor from component list (lets say nmos4) b) Ctrl + Right click on transistor c) Then change NMOS to model name of transistor which was added earlier. d) Open model file and see name of transistor. Here its CMOSN. Change NMOS to CMOSN as shown in Fig 3. EE698W Tutorial on LTspice e) Cross mark (X) will give you an option to visible that parameter along with the instance in the editor Fig 3. Changing Model name of Transitor 3. DC Operating Point Analysis: a) To perform DC operating point analysis, go to Edit and click on Spice Analysis. Select “dc op pnt” and type .op (or Simply click on .op (right top corner) and type .op) b) Next go to Simulate and click on Run c) To see the DC operating points, go to View and click on SPICE Error Log (Shortcut: Ctrl + L) Fig 4. DC operating point of Transistor and different capacitor definitions EE698W Tutorial on LTspice This capacitor definitions can get from Operation and Modelling of MOS Transistor by Tsividis, 3e - Page No: 416. 4. Performing Parametric Analysis: a) First define a variable on which you would like to do parametric analysis.
    [Show full text]
  • Switchercad III/Ltspice Getting Started Guide
    SwitcherCAD III/LTspice Getting Started Guide Copyright © 2008 Linear Technology. All rights reserved. 2 Benefits of Using SwitcherCAD III/LTspice Outperforms pay-for options Stable SPICE circuit simulation with Unlimited number of nodes Schematic/symbol editor LTspice is also a great schematic capture Waveform viewer Library of passive devices Fast simulation of switching mode power supplies (SMPS) Steady state detection Over 1100 macromodels of Turn on transient Linear Technology products Step response 500+ SMPS Efficiency / power computations Advanced analysis and simulation options Not covered in this presentation © 2008 Linear Technology 3 How Do You Get SwitcherCAD III/LTspice Go to http://www.linear.com/software Left click on download SwitcherCAD III/LTspice Register for a new MyLinear account to receive updates if you have not done so already © 2008 Linear Technology Getting Started Copyright © 2008 Linear Technology. All rights reserved. 5 Getting Started using SwitcherCAD III/LTspice Use one of the 100s of demo circuits available on linear.com Reviewed by Linear Technology’s Factory Applications Group Use a pre-drafted test fixture (JIG) Provides a good starting point Use the schematic editor to create your own design LTspice contains macromodels for most LTC power devices © 2008 Linear Technology 6 Demo Circuits on linear.com Go to http://www.linear.com Enter root part number in the search box (e.g. 3411) Select Simulate Tab Follow the instructions provided If you do not find a demo circuit of interest,
    [Show full text]
  • Designing Circuit Boards with EAGLE
    Praise for Designing Circuit Boards with EAGLE “Matt Scarpino has succeeded where scores of others have failed—he’s managed to make the formidable EAGLE software understandable and, more importantly, useable. His presentation is not only approachable and logical, but it’s complete. When you’ve finished his book, you’ll be able to do something meaningful with EAGLE. This book belongs on every engineer’s bookshelf or tablet.” —Bryan Bergeron, Editor, Nuts & Volts Magazine “Matt Scarpino’s Designing Circuit Boards with EAGLE is a great resource for electronics enthusiasts who are ready to get serious and produce their own circuit boards. Matt’s sensible instructions take readers through the steps to design simple and not-so-simple circuit boards, and you can really tell that he’s been using EAGLE for 10 years and loves it. I’m recommending this book to all my maker friends.” —John Baichtal, Author of Arduino for Beginners: Essential Skills Every Maker Needs “With the rising popularity of open source hardware projects, the EAGLE circuit board software has become a vital tool for both hobbyists and professional engineers alike. Designing Circuit Boards with EAGLE provides all the information you’ll need to get up to speed with the EAGLE software, and to start creating your own circuit board designs. Matt Scarpino has provided a great tool for the hobbyist starting out in the circuit board design world, demonstrating all of the features you’ll need to know to create your own circuit board projects. However, the experienced engineer will also benefit from the book, as it also serves as a complete reference guide to all the EAGLE software configuration settings and features.
    [Show full text]
  • Using LTSPICE to Analyze Circuits
    Using LTSPICE to Analyze Circuits Overview: LTSPICE is circuit simulation software that automatically constructs circuit equations using circuit element models (built in or downloadable). In its modern form the software uses a graphical user interface to enter the circuit (the jargon is a schematic capture tool) which it then translates into equations. The software then simulates the behavior of the circuit by integrating the equations forward in time. Finally it provides an interface for measuring currents, voltage, amplitudes, etc. Other SPICEs exist and have differing strengths. Using the lab computers Loging in Each electronics lab computer has a local account that you should use Login: zm****/electronics Password: student You will need to replace the *s in zm**** using the rest of the number on the PROPERTY OF SUNY CORTLAND sticker on the computer tower. Running LTSpice The LTSpice program is in the bar at the bottom of the screen. Circuit schematic entry You will enter your circuit’s schematic using menus to choose circuit elements from. Some common elements (wire, ground, resistor, capacitor, inductor, etc.) are on the bar at the top, a portion of which appears in Fig. 1. Others such as Transistors (npn, pnp, MOSFETs), Op Amps, voltage sources, current Figure 1 LTSpice menu bar, the sources, etc. are available under the symbol (an AND gate). symbols are wire, ground, label, resistor, capacitor, inductor, and Symbols that have not yet been placed can be rotated and/or diode respecively. transposed using buttons. Once you place the circuit elements assign their values (e.g., resistance, capacitance, rating, precision) by right clicking on the element.
    [Show full text]