As an example of the parameter sweeping capabilities of LTSPICE, consider the following elementary high-pass filter circuit:

Similar documents
H(s) = 2(s+10)(s+100) (s+1)(s+1000)

ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer

ECE3050 Assignment 7

Sinusoidal Response of RLC Circuits

Time Varying Circuit Analysis

Single Phase Parallel AC Circuits

ELEC 2501 AB. Come to the PASS workshop with your mock exam complete. During the workshop you can work with other students to review your work.

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Discussion 5A

Circuits Practice Websheet 18.1

Start with the transfer function for a second-order high-pass. s 2. ω o. Q P s + ω2 o. = G o V i

EE105 Fall 2014 Microelectronic Devices and Circuits

Lab 5 AC Concepts and Measurements II: Capacitors and RC Time-Constant

Feedback design for the Buck Converter

RC Circuit Lab - Discovery PSI Physics Capacitors and Resistors

CHAPTER.6 :TRANSISTOR FREQUENCY RESPONSE

The Approximating Impedance

[1] (b) Fig. 1.1 shows a circuit consisting of a resistor and a capacitor of capacitance 4.5 μf. Fig. 1.1

Capacitor ESR Measurement with Bode 100 and B-WIC

( s) N( s) ( ) The transfer function will take the form. = s = 2. giving ωo = sqrt(1/lc) = 1E7 [rad/s] ω 01 := R 1. α 1 2 L 1.

1. Design a 3rd order Butterworth low-pass filters having a dc gain of unity and a cutoff frequency, fc, of khz.

Today. 1/25/11 Physics 262 Lecture 2 Filters. Active Components and Filters. Homework. Lab 2 this week

Prefix Prefix Scaling Example EXP Name

Dynamic Models for Passive Components

Steady State Frequency Response Using Bode Plots

Experiment 9 Equivalent Circuits

Lab 4 RC Circuits. Name. Partner s Name. I. Introduction/Theory

To receive full credit, you must show all your work (including steps taken, calculations, and formulas used).

Core Technology Group Application Note 3 AN-3

ECE Circuit Theory. Final Examination. December 5, 2008

Kirchhoff's Laws and Circuit Analysis (EC 2)

The RC Circuit INTRODUCTION. Part 1: Capacitor Discharging Through a Resistor. Part 2: The Series RC Circuit and the Oscilloscope

Experiment 8: Capacitance and the Oscilloscope

ENGN3227 Analogue Electronics. Problem Sets V1.0. Dr. Salman Durrani

Homework Assignment 08

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 16

Electronics Capacitors

Generalized four-point characterization method for resistive and capacitive contacts

Physics 2135 Exam 2 October 20, 2015

EE1305/EE1105 Intro to Electrical and Computer Engineering Lecture Week 6

The RC Time Constant

Experiment Guide for RC Circuits

Chapter 6 Frequency response of circuits. Stability

PhysicsAndMathsTutor.com 1

Capacitors GOAL. EQUIPMENT. CapacitorDecay.cmbl 1. Building a Capacitor

ESE319 Introduction to Microelectronics Common Emitter BJT Amplifier

2005 AP PHYSICS C: ELECTRICITY AND MAGNETISM FREE-RESPONSE QUESTIONS

Figure 1. (a) An alternating current power supply provides a current that keeps switching direction.

On the axes of Fig. 4.1, carefully sketch a graph to show how the potential difference V across the capacitor varies with time t. Label this graph L.

Alternating Current Circuits. Home Work Solutions

IMPORTANT Read these directions carefully:

Homework Assignment 11

Exam 3--PHYS 102--S14

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. ECE 110 Fall Test II. Michael R. Gustafson II

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

Chapter 3 : Linear Differential Eqn. Chapter 3 : Linear Differential Eqn.

Boise State University Department of Electrical and Computer Engineering ECE 212L Circuit Analysis and Design Lab

Bfh Ti Control F Ws 2008/2009 Lab Matlab-1

Lecture 4: R-L-C Circuits and Resonant Circuits

Microelectronic Circuit Design 4th Edition Errata - Updated 4/4/14

1. A1, B3 2. A1, B2 3. A3, B2 4. A2, B2 5. A3, B3 6. A1, B1 7. A2, B1 8. A2, B3 9. A3, B1

Physics 405/505 Digital Electronics Techniques. University of Arizona Spring 2006 Prof. Erich W. Varnes

Response of Second-Order Systems

Lab #4 Capacitors and Inductors. Capacitor Transient and Steady State Response

Series & Parallel Resistors 3/17/2015 1

farads or 10 µf. The letter indicates the part tolerance (how close should the actual value be to the marking).

Experiment P43: RC Circuit (Power Amplifier, Voltage Sensor)

ELEC3106 Electronics: lecture 7 summary. SPICE simulations. Torsten Lehmann

ECE2210 Final given: Spring 08

R-L-C Circuits and Resonant Circuits

ENGR-4300 Spring 2009 Test 2. Name: SOLUTION. Section: 1(MR 8:00) 2(TF 2:00) 3(MR 6:00) (circle one) Question I (20 points): Question II (20 points):

Capacitors. How long did the LED remain lit when the capacitors were connected in series?

University of Illinois at Chicago Spring ECE 412 Introduction to Filter Synthesis Homework #4 Solutions

One-Port Networks. One-Port. Network

Capacitor investigations

AP Physics C. Electric Circuits III.C

Consider a simple RC circuit. We might like to know how much power is being supplied by the source. We probably need to find the current.

BIOEN 302, Section 3: AC electronics

PHYS 2135 Exam II March 20, 2018

Laboratory 3 Measuring Capacitor Discharge with the MicroBLIP

Transient response of RC and RL circuits ENGR 40M lecture notes July 26, 2017 Chuan-Zheng Lee, Stanford University

EE C245 / ME C218 INTRODUCTION TO MEMS DESIGN FALL 2011 C. Nguyen PROBLEM SET #7. Table 1: Gyroscope Modeling Parameters

(d) describe the action of a 555 monostable timer and then use the equation T = 1.1 RC, where T is the pulse duration

Knowledge Integration Module 1 Fall 2016

EE221 Circuits II. Chapter 14 Frequency Response

ECE2210 Final given: Fall 13

Prepare for this experiment!

EE221 Circuits II. Chapter 14 Frequency Response

Final Exam. 55:041 Electronic Circuits. The University of Iowa. Fall 2013.

College Physics II Lab 8: RC Circuits

Physics 2135 Exam 2 October 18, 2016

Overview of Bode Plots Transfer function review Piece-wise linear approximations First-order terms Second-order terms (complex poles & zeros)

PURPOSE: See suggested breadboard configuration on following page!

Figure Circuit for Question 1. Figure Circuit for Question 2

AN6783S. IC for long interval timer. ICs for Timer. Overview. Features. Applications. Block Diagram

TAP 126-4: Charging capacitors

E40M. Op Amps. M. Horowitz, J. Plummer, R. Howe 1

AC Circuits Homework Set

Chapter 6. Answers to examination-style questions. Answers Marks Examiner s tips

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

Transcription:

LTSpice Parameter Sweep Tutorial ECE 202 Signals and Systems I Andrew Herdrich Department of Electrical and Computer Engineering Portland State University January 7, 2007 Version 2 AC sweep analyses in LTSpice can be used to analyze the frequency response of a circuit with fixed parameter values. If several parameter values need to be examined, the designer can either manually enter the values and simulate the circuit several times to view the response, or use the SPICE dot directive.step. The.STEP directive allows up to three parameters to be swept across an arbitrary range of values in a single simulation run. Note, however, that each new parameter sweep can drastically increase the simulation time for the circuit if parameter sweep ranges are not carefully chosen. As an example of the parameter sweeping capabilities of LTSPICE, consider the following elementary high-pass filter circuit: Figure 1. A simple HP filter used to test LTSPICE parameter sweeps. Note that in Figure 1 above that the voltage source value has been changed to AC 1 in preparation for an AC sweep to create a Bode plot, and the value of C1 has been changed to {C}, which allows the substitution of external values. Students familiar with various SPICE simulators may note that this procedure is quite similar to that used to add parameters to PSPICE simulations. Adding the SPICE directive.ac dec 10 1 100k to the circuit and the parameter definition.param C=1uF allows an AC sweep to be performed, as shown below. The AC directive performs a logarithmic sweep from 1Hz to 100kHz, with 10 points per decade, and the PARAM directive inserts a temporary value for the capacitor of 1µF.

LTSPICE Parameter Sweep Tutorial 2 of 8 Figure 2. The HP filter set up for an AC sweep to generate a Bode plot. Performing a simulation on the circuit above (Simulate Menu->Run or Alt-S-R) yields the Bode plot shown below. Note that the cutoff frequency appears to be around 160Hz, and the frequency axis is shown on a logarithmic scale. Figure 3. A Bode plot for a simple RC HP filter. Phase is shown as a dotted line. The above simulation works well for a single component value, but what if 5 capacitor values need to be tested? One solution would be to change the PARAM directive that we set up earlier five times and run the simulation repeatedly to create five separate Bode plots. A more elegant solution is to use the SPICE dot directive STEP to automatically insert the parameter values for us. For example, to test capacitors from 1µF to 10µF in 2µF steps, the directive.step param C 1uF 10uF 2uF could be used. This steps the parameter C through the requisite value range in a linear fashion. The directive can be added to the circuit diagram as follows:

LTSPICE Parameter Sweep Tutorial 3 of 8 Figure 3. The RC HP filter set up for a parameter sweep with values from 1µF to 10µF in 2µF steps. Simulating the circuit with the STEP directive produces the following Bode plot: Figure 4. The Bode plot created by sweeping capacitor values. Phase is indicated with a dashed line. It is apparent from the above plot that as the capacitor value is increased, the cutoff frequency decreases, from around 160Hz to around 16Hz. This is a useful result. Other parameter sweep types can also be created, such as sweeping a component through a range logarithmically over a decade or octave. For instance, the capacitor can be swept logarithmically through the range of 100nF to 1µF with 8 points per decade using the directive.step dec param C 100nF 1uF 8, as shown below:

LTSPICE Parameter Sweep Tutorial 4 of 8 Figure 5. Using the SPICE STEP directive to sweep the capacitor through the range of 100nF to 1µF logarithmically with 8 steps per decade. The result of the logarithmic parameter sweep is shown below: Figure 6. The result of logarithmically sweeping the capacitor through 9 values. As is shown in the plot above, the corner frequency ranged from around 160Hz to around 1.6kHz. A simple list can also be used to sweep parameter values. For instance, the directive.step param C list 0.47uF 1uF 2.2uF 10uF can be used to test the capacitor values 0.47µF, 1µF, 2.2µF, and 10µF, which we just so happen to have on hand. This is practically useful, since it lets us view the range of possible corner frequency settings. The SPICE directive can be implemented as follows:

LTSPICE Parameter Sweep Tutorial 5 of 8 Figure 7. A simulation set up to test the capacitor values 0.47µF, 1µF, 2.2µF, and 10µF in the filter circuit above.

LTSPICE Parameter Sweep Tutorial 6 of 8 The results of the simulation are shown below: Figure 8. The corner frequencies created through the use of the capacitor values 0.47µF, 1µF, 2.2µF, and 10µF. The above example shows how to sweep though a list of capacitor values to determine where possible corner frequencies lie. It is also possible to simultaneously test both resistor and capacitor values, which can be useful when designing a circuit, as is shown in the example below. Example: Suppose that you have been asked to design a first-order RC HP filter, and have the following resistor and capacitor values available: 0.47µF, 1µF, 2.2µF, and 10µF, 10Ω, 1kΩ, and 1MΩ. Create a Bode plot showing all possible corner frequencies that can be implemented. Solution: Use two simultaneous sweeps to determine the approximate corner frequencies. The first SPICE directive will be a list,.step param C list 0.47uF 1uF 2.2uF 10uF, and the second will be another list,.step param R list 10 1k 1meg. The two simultaneous sweeps can be conducted since the STEP command operates recursively (up to three levels deep), and the simulation will still execute quickly, since the number of parameters to test is small. The test circuit diagram is shown below.

LTSPICE Parameter Sweep Tutorial 7 of 8 Figure 9. The directive sequence used to sweep two parameters simultaneously, in this case, R and C, through a range of values. The resulting Bode plot showing the possible corner frequencies is shown below: Figure 10. The result of sweeping both resistor and capacitor values simultaneously. Note that there are 12 possible transfer curves, which makes sense, based on the fact that we tested four capacitor values and three resistor values. Phase plots are indicated with dashed lines. As is evident from the examples above, parameter sweeps can make short work of visualizing the effect of changing component values on circuit performance, and can aid in the design of circuits when detailed numerical analyses are not necessary.

LTSPICE Parameter Sweep Tutorial 8 of 8 Figure 11. A more advanced parameter sweep showing the output of three summed bandpass filters. References: [1] Switcher Cad III User s Guide, http://ltspice.linear.com/software/scad3.pdf