Lab 3: Very Brief Introduction to Micro-Cap SPICE

Similar documents
MultiSim and Analog Discovery 2 Manual

An Introductory Guide to Circuit Simulation using NI Multisim 12

Introduction to NI Multisim & Ultiboard Software version 14.1

EE 210 Lab Exercise #3 Introduction to PSPICE

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

Introduction to LT Spice IV with Examples

Homework Assignment 07

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit

ECE 310L : LAB 9. Fall 2012 (Hay)

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

Homework Assignment 09

Lab #2 First Order RC Circuits Week of 27 January 2015

Class #7: Experiment L & C Circuits: Filters and Energy Revisited

Introduction to SPICE. Simulator of Electronic devices

ECE 201 LAB 6 INTRODUCTION TO SPICE/PSPICE

Lab 6: MOSFET AMPLIFIER

Excel Tool: Plots of Data Sets

Homework Assignment 07

Introduction to PSpice

Simulating Circuits James Lamberti 5/4/2014

Excel Lab 2: Plots of Data Sets

Using LTspice a Short Intro with Examples

Welcome to your second Electronics Laboratory Session. In this session you will learn about how to use resistors, capacitors and inductors to make

ENEE207 Electric Circuits Lab Manual

Getting Started with Qucs

Class #8: Experiment Diodes Part I

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz

Lab 1B LabVIEW Filter Signal

LTSpice Basic Tutorial

55:041 Electronic Circuits

EECS 312: Digital Integrated Circuits Lab Project 1 Introduction to Schematic Capture and Analog Circuit Simulation

Lab 6 Prelab Grading Sheet

Using LTSPICE to Analyze Circuits

Chapter 12: Electronic Circuit Simulation and Layout Software

ECE ECE285. Electric Circuit Analysis I. Spring Nathalia Peixoto. Rev.2.0: Rev Electric Circuits I

Common-Source Amplifiers

Experiment 2 Introduction to PSpice

LT Spice Getting Started Very Quickly. First Get the Latest Software!

A Brief Handout for Introduction to

Homework Assignment 02

Notes on Experiment #1

1. Hand Calculations (in a manner suitable for submission) For the circuit in Fig. 1 with f = 7.2 khz and a source vin () t 1.

Laboratory Experiment #1 Introduction to Spectral Analysis

Integrators, differentiators, and simple filters

Using HVOUT Simulator Utility to Estimate MOSFET Ramp Times

Lab 3: RC Circuits. Construct circuit 2 in EveryCircuit. Set values for the capacitor and resistor to match those in figure 2 and set the frequency to

LAB 8: Activity P52: LRC Circuit

ELEC3106 Electronics. Lab 4: EMI simulations with SPICE. Objective. Material. Simulations

Lab 7 PSpice: Time Domain Analysis

ECE 6416 Low-Noise Electronics Orientation Experiment

EE 221 L CIRCUIT II. Learn to use LTspice to run circuit simulations for voltage, current, etc.

EECE Circuits and Signals: Biomedical Applications. Lab 3. Basic Instruments, Components and Circuits. Introduction to Spice and AC circuits

ArbStudio Triggers. Using Both Input & Output Trigger With ArbStudio APPLICATION BRIEF LAB912

The object of this experiment is to become familiar with the instruments used in the low noise laboratory.

Experiment 8: An AC Circuit

Since transmission lines can be modeled using PSpice, you can do your analysis by downloading the student version of this excellent program.

Experiment P45: LRC Circuit (Power Amplifier, Voltage Sensor)

PHYSICS 330 LAB Operational Amplifier Frequency Response

R 1 R 2. (3) Suppose you have two ac signals, which we ll call signals A and B, which have peak-to-peak amplitudes of 30 mv and 600 mv, respectively.

Time-Varying Signals

EXPERIMENT 9 Problem Solving: First-order Transient Circuits

P a g e 1 ST985. TDR Cable Analyzer Instruction Manual. Analog Arts Inc.

SIMULATION WITH THE CUK TOPOLOGY ECE562: Power Electronics I COLORADO STATE UNIVERSITY. Modified in Fall 2011

Frequency and Time Domain Representation of Sinusoidal Signals

Experiment P49: Transistor Lab 2 Current Gain: The NPN Emitter-Follower Amplifier (Power Amplifier, Voltage Sensor)

Activity P52: LRC Circuit (Voltage Sensor)

Physics 334 Notes for Lab 2 Capacitors

Laboratory 4. Bandwidth, Filters, and Diodes

LABORATORY 4. Palomar College ENGR210 Spring 2017 ASSIGNED: 3/21/17

The Oscilloscope. Vision is the art of seeing things invisible. J. Swift ( ) OBJECTIVE To learn to operate a digital oscilloscope.

Introduction to Simulink Assignment Companion Document

EXPERIMENT NUMBER 10 TRANSIENT ANALYSIS USING PSPICE

ECE 2274 Pre-Lab for Experiment # 4 Diode Basics and a Rectifier Completed Prior to Coming to Lab

1.5k. (a) Resistive Circuit (b) Capacitive Circuit

AN294. Si825X FREQUENCY COMPENSATION SIMULATOR FOR D IGITAL BUCK CONVERTERS

Lab 5: MOSFET I-V Characteristics

Homework Assignment 01

PSM Soft. Features and Functions January PC Software Guide. Getting connected and Communication

TTL LOGIC and RING OSCILLATOR TTL

Class #9: Experiment Diodes Part II: LEDs

Lab 3: Circuit Simulation with PSPICE

EE 2274 MOSFET BASICS

ECE 4670 Spring 2014 Lab 1 Linear System Characteristics

Lab 13 AC Circuit Measurements

Pre-Lab. Introduction

LAB1 WEBENCH SIMULATION EE562: POWER ELECTRONICS COLORADO STATE UNIVERSITY

Use of the LTI Viewer and MUX Block in Simulink

UC Berkeley, EECS Department

Voltage Current and Resistance II

Activity P56: Transistor Lab 2 Current Gain: The NPN Emitter-Follower Amplifier (Power Output, Voltage Sensor)

8A. ANALYSIS OF COMPLEX SOUNDS. Amplitude, loudness, and decibels

Class #16: Experiment Matlab and Data Analysis

(b) 25% (b) increases

ECE4902 Lab 5 Simulation. Simulation. Export data for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation

Lab 2: Common Emitter Design: Part 2

Final Exam. 1. An engineer measures the (step response) rise time of an amplifier as t r = 0.1 μs. Estimate the 3 db bandwidth of the amplifier.

LABORATORY 3: Transient circuits, RC, RL step responses, 2 nd Order Circuits

The version 2.0 of Solve Elec allow you to study circuits in direct current.

Drawing Bode Plots (The Last Bode Plot You Will Ever Make) Charles Nippert

LABORATORY 2: Bridge circuits, Superposition, Thevenin Circuits, and Amplifier Circuits

Transcription:

Lab 3: Very Brief Introduction to Micro-Cap SPICE Starting Micro-Cap SPICE Micro-Cap SPICE is available on CoE machines under the Spectrum Software menu: Programs Spectrum Software Micro-Cap 10 Evaluation (see the figure below). Figure 1. Starting Micro-Cap SPICE on CoE computers. First Circuit Thevenin Equivalent Circuit Follow the instructor s instructions and build the following circuit in Micro-Cap SPICE. Replicate the circuit as closely as possible, including the rounded box, labels, etc. Save the circuit as Thevenin.cir. Figure 2. A simple circuit captured in Micro-Cap SPICE. Version 1.2 1 Author: A. Kruger

Dynamic DC Analysis Next, perform a dc analysis to determine the current through the load using this menu sequence: Analysis Dynamic DC. Select OK on the popup menu. Micro-Cap SPICE calculates the dc values and displays node voltages in small ellipse boxes as shown in the figure below. Figure 3. Results after performing a Dynamic DC Analysis. To determine the current through the resistors, click on the Currents icon in the toolbar, which is the diode with an arrow above it. Figure 4. Menu items for displaying current, power, node voltages, etc. After selecting Currents from the toolbar, SPICE updates the display with the dc currents through the circuit elements. Note that SPICE may place text over circuit elements. If this happens, simply move the text boxes using the mouse. Figure 5. Results after performing a Dynamic DC Analysis and displaying currents and node voltages Version 1.2 2 Author: A. Kruger

Why Dynamic DC? Why is the analysis is called Dynamic dc analysis? It turns out that Micro-Cap SPICE dynamically recalculates and updates values (analogous to a spreadsheet) as they are changed. For example, while in the Dynamic dc mode, click on the 100K resistor (see (a) below) and change the value to 10K (see (b) below). Notice how the current through the resistor is updated. (a) (b) Figure 6. One can click on component values (highlighted in green) and change the values. Micro-Cap SPICE will then recalculate the circuit s dc values. Post-Lab Report for First Circuit You Post-lab report should include the following elements Section title First Circuit Results Capture of the schematic for the circuit showing simulated currents and voltages Hand calculations of a Thevenin equivalent circuit for the part shown inside the brokenline box Micro-Cap SPICE simulation of the Thevenin equivalent circuit showing the load current A paragraph discussing the results Note: add text that shows your name and the date to all SPICE schematics. Version 1.2 3 Author: A. Kruger

Second Circuit Transient Analysis to Measure Rise Time and Bandwidth Build the following circuit in SPICE. Be sure to label the output node Vo as shown. Save the circuit as LPF.cir. Figure 7. A Simple lowpass filter (LPF) We will first measure the circuit s step response and determine the rise time. From the rise time we will estimate the bandwidth using BW 0.35 t r. Just as one would do with a real circuit, we use a square wave generator to simulate a step function. As long as the period of the square wave is much longer than the rise time of the circuit, one can zoom in on the transient and obtain the step response. Figure 8. Configuring the voltage source as a square wave. All the values are the default except for the pulse widths (PW) and period (PER). Version 1.2 4 Author: A. Kruger

Click on the signal generator symbol in the schematic. On the popup menu, select Square. There are many options for changing parameters of the square wave: period, maximum- and minimum voltages, rise- and fall times of the signal generator, etc. Change the period (PER) to 20m (for 20 ms) and the pulse width (PW) to 10 ms and leave the other values alone. You can click plot to see what the resulting square wave looks like. Next we will perform transient analysis using the menu sequence Analysis Transient. As a first try, perform the analysis for 100 ms by making sure 100m is in the Time Range Field. Be sure to select AutoAlways for X Range and Y Range. This will allow you to see the complete waveform. Also, make sure there is only one plot, namely V(VO) versus T. The notation V(VO) means the voltage at node VO. Figure 9. Transient Analysis popup menu. Once all the fields are filled in, click on Run. SPICE will then perform the transient analysis and plot the results, which should resemble something similar to Figure 10. Note that while the default graph settings are adequate for on-screen viewing, they are insufficient for copying to a Word document lines are too thin and the text too small. Figure 10. Output from Transient Analysis poor for using in reports. One can easily fix this by clicking on the plot and then making appropriate adjustments on the popup menu and its various tabs. Below is the same plot, but dressed up a bit by making the Version 1.2 5 Author: A. Kruger

fonts bigger and lines thicker. Also, note that one can annotate the plot with text boxes, arrows, and so on. Figure 11. Improved version of Transient Analysis output. As indicated in the figure, the lines are jagged. This is because SPICE uses its default time step during the simulation. For a smoother plot, we should adjust the time step. The figure below shows the settings for our next transient analysis. The Time Range is now 10m which will effectively zoom in to the first 10 ms, and we set the maximum time step to be 100 ns to get a smooth plot. Figure 12. Modifying Transient Analysis Limits to zoom into the first 10 ms and also to produce a smoother plot. Version 1.2 6 Author: A. Kruger

Figure 13. Zoomed-in and smoothed output from Transient Analysis. The rise time is defined as the time for the waveform to go from 10% to 90%. The amplitude of the signal generator is 5 V, so for this waveform the rise time is the time to go from 0.5 V to 4.5 V. Making such measurements is easy using Micro-Cap SPICE using the Horizontal Tag Mode tool. Figure 14. Zoomed-in and smoothed output from Transient Analysis with the 10 90% rise time indicated. The Horizontal Tag Mode tool was used for the annotation. Version 1.2 7 Author: A. Kruger

Second Circuit AC Analysis Bandwidth One can also use SPICE s ac analysis capabilities to sweep the frequency over a range of frequencies and plot the output. We will use the same RC circuit from before and determine the bandwidth using an analysis this was and then compare the results. Run the ac analysis: Analysis AC. Edit the popup menu so that it matches the figure below. Remember to set ranges to AutoAlways. Note how one specifies frequency ranges in SPICE: the higher boundary first. For example, to plot the frequency response of a range 10 Hz to 10 khz, we use 10K,10 in SPICE. Figure 15. AC analysis options. The resulting plot is shown below. The font sizes were enlarged, the plot- and grid lines were thickened, and we used the cursor to move along the data points until we reached the -3dB point. This is shown in the yellow box as 157.549,-2.966. The interpretation is that the output voltage is -3 db down from the low frequency value of 0 db at a frequency of 157.549 Hz. Thus, we will take the 3-dB bandwidth to be 158 Hz. Figure 16. Output from the AC Analysis. The cursor tool was used to find the 3-dB frequency. Version 1.2 8 Author: A. Kruger

Referring to the graph and the rise time graph above, complete the following table. t r BW (Hz) 1 Hand calculation Transient analysis AC analysis 1 Complete and include in Post-Lab Report. Post-Lab Report for Second Circuit Table 1. Bandwidth results. You Post-lab report should include the following elements Section title Second Circuit Results Capture of the schematic for the LPF. Enlarge fonts, make lines thicker etc. so you have a professional-looking schematic Capture of the transient analysis (step response) output Hand calculations of the theoretical bandwidth for the circuit A completed version of Table 1 above A paragraph discussing the results Note: add text that shows your name and the date to all SPICE schematics. Third Circuit Stabilizing MOSFET Q-Point Build the circuit shown in Micro-Cap SPICE. For the MOSFET, use the 2N6660 NMOS part. Be sure to connect the substrate terminal to the source. Save the circuit as MOSFET.cir. Figure 17. MOSFET circuit for exploring how variations in the FET s V TN affects the Q-point. Version 1.2 9 Author: A. Kruger

First, set R 2 = 180K and R S = 0, and perform a Dynamic DC Analysis, and measure V DQ and I DQ and fill in the values in the table. Next explore how V DQ and I DQ change if we were to replace this MOSFET with another 2N6660, but the second transistor has V TN = 1.5 V rather than the nominal V TN = 1.69 V that is built into Micro-Cap SPICE. Double-click on the MOSFET and on the popup menu, and change the VTO parameter (in the lower right corner) to 1.5 V. Micro-Cap SPICE recalculates the dc values. Record the values in the table. Clearly, changing V TN affects the Q-point. Next we will explore how V DQ and I DQ and change for the same change in V TN if the circuit has a source stabilization resistor. Set VTO parameter back to its original value (1.69 V), then set R 2 = 270K and R S = 220 Ω, and perform a Dynamic DC Analysis and record the V DQ and I DQ. Next, change VTO to 1.5 V, thus simulating replacing the transistor. Note the resulting V DQ and I DQ values. 1 Hand Calculation, R S = 0, R 2 = 180K SPICE Default = 1.69 V TN (V) V DQ (V) I DQ (ma) SPICE, R S = 0, R 2 = 180K SPICE Default = 1.69 SPICE, R S = 0, R 2 = 180K 1.5 V 1 Hand Calculation, R S = 220 Ω, R 2 = 270K SPICE Default = 1.69 SPICE, R S = 220, R 2 = 270K SPICE Default = 1.69 SPICE, R S = 220, R 2 = 270K 1.5 V 1 Complete and include in Post-Lab Report. Use V TN = 1.69 V and K n = 41.88 ma V 2. Table 2. Source resistor stabilization results. Version 1.2 10 Author: A. Kruger

Post-Lab Report for Third Circuit You Post-lab report should include the following elements Section title Third Circuit Results Capture of the schematic for the circuit showing simulated currents and voltages for R S = 220 Ω, VTO = 1.69 V, R 2 = 270K. Complete the following two sentences (show your calculations) o A % change in V TN resulted in a % change in I DQ and a % change in V DQ when there is no source stabilization resistor (i.e., R S = 0). o A % change in V TN resulted in a % change in I DQ and a % change in V DQ when there is a source stabilization resistor (i.e., R S = 220 Ω). Completed Table 2 Hand calculations for the indicated values in Table 2 A paragraph discussing the results Note: add text that shows your name and the date to all SPICE schematics. Next Steps The preceding barely scratches the surface of Micro-Cap SPICE. There are whole books on SPICE and one could teach a complete course on using SPICE. Micro-Cap SPICE has extensive built-in help and really nice demonstrations available through Help Demos. There are also many sample circuits available through Help Sample Circuits. Students are encouraged to take a look some of the demos as they are very well-crafted and quite extensive. Version 1.2 11 Author: A. Kruger