SPICE 4: Diodes. Chris Winstead. ECE Spring, Chris Winstead SPICE 4: Diodes ECE Spring, / 28

Similar documents
ECE 3410 Homework 4 (C) (B) (A) (F) (E) (D) (H) (I) Solution. Utah State University 1 D1 D2. D1 v OUT. v IN D1 D2 D1 (G)

PSpice Simulation. The target of computer-aided analysis is to determine the circuit currents and voltages everywhere in the circuit.

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

ECE 2274 Diode Basics and a Rectifier Completed Prior to Coming to Lab

Diodes (non-linear devices)

EE 233 Circuit Theory Lab 2: Amplifiers

Lab 6: Exploring the Servomotor Controller Circuit

Revised: Summer 2010

Experiment No. 2 Half Wave Rectifier using RC-Triggering

ECE4902 C Lab 7

EE 2274 DIODE OR GATE & CLIPPING CIRCUIT

EE4902 C Lab 7

Experiment #6: Biasing an NPN BJT Introduction to CE, CC, and CB Amplifiers

NGSPICE- Usage and Examples

Electronic Circuits I Laboratory 03 Rectifiers

Federal Urdu University of Arts, Science & Technology Islamabad Pakistan SECOND SEMESTER ELECTRONICS - I

Week 9: Series RC Circuit. Experiment 14

The default account setup for the class should allow you to run HSPICE without any further configuration. To verify this, type:

Lab 6 Prelab Grading Sheet

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

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

Circuit Simulation Using SPICE ECE222

Microelectronic Circuits, Kyung Hee Univ. Spring, Chapter 3. Diodes

14:332:223 Principles of Electrical Engineering I Instructions for using PSPICE Tools Sharanya Chandrasekar February 1, 2006

EE 330 Laboratory 8 Discrete Semiconductor Amplifiers

Lab Experiments. Boost converter (Experiment 2) Control circuit (Experiment 1) Power diode. + V g. C Power MOSFET. Load.

EXPERIMENT 3 Half-Wave and Full-Wave Rectification

Precision Rectifier Circuits

Electronic Circuits Laboratory EE462G Lab #4. DC Power Supply Circuits Using Diodes

SIMULATIONS WITH THE BUCK-BOOST TOPOLOGY EE562: POWER ELECTRONICS I COLORADO STATE UNIVERSITY. Modified February 2006

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

Semiconductor theory predicts that the current through a diode is given by

Experiment No. 1 Half Wave Rectifier using R-Triggering

DIODE CLIPPERS AND CLAMPERS

EE 330 Laboratory 8 Discrete Semiconductor Amplifiers

TTL LOGIC and RING OSCILLATOR TTL

UNIVERSITY OF PENNSYLVANIA EE 206

Homework Assignment 06

Prelab 10: Differential Amplifiers

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS TESTING OF DIODE CLIPPING CIRCUITS

ECE Lab #4 OpAmp Circuits with Negative Feedback and Positive Feedback

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

Lab 7 PSpice: Time Domain Analysis

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

Lab 2: Linear and Nonlinear Circuit Elements and Networks

Experiment #7: Designing and Measuring a Common-Emitter Amplifier

The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE 20 - LAB

Electronics 1 Lab (CME 2410)

EE 105 MICROELECTRONIC DEVICES & CIRCUITS FALL 2018 C. Nguyen. Laboratory 2: Characterization of the 741 Op Amp Preliminary Exercises

Electric Circuit Fall 2017 Lab3 LABORATORY 3. Diode. Guide

Homework Assignment Consider the circuit shown. Assume ideal op-amp behavior. Which statement below is true?

ENGR-4300 Fall 2006 Project 3 Project 3 Build a 555-Timer

Op-Amp Simulation Part II

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

ML4818 Phase Modulation/Soft Switching Controller

Lecture 4 ECEN 4517/5517

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

ENG 100 Lab #2 Passive First-Order Filter Circuits

STUDY OF RC AND RL CIRCUITS Venue: Microelectronics Laboratory in E2 L2

SPICE FOR POWER ELECTRONICS AND ELECTRIC POWER

Lab Project EE348L. Spring 2005

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE. Department of Electrical and Computer Engineering

Lab 7: DELTA AND SIGMA-DELTA A/D CONVERTERS

ENG2210 Electronic Circuits. Chapter 3 Diodes

Experiment #1: Solid State Diodes Testing & Characterization. Type Value Symbol Name Multisim Part Description Resistor 1MΩ R 2 Basic/Resistor ---

Power supply circuits

UC Berkeley, EECS Department

I1 19u 5V R11 1MEG IDC Q7 Q2N3904 Q2N3904. Figure 3.1 A scaled down 741 op amp used in this lab

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

EE 210: CIRCUITS AND DEVICES

INC 253 Digital and electronics laboratory I

Lecture 8 ECEN 4517/5517

ECEN 325 Lab 5: Operational Amplifiers Part III

Sirindhorn International Institute of Technology Thammasat University at Rangsit


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

EECE 488: Short HSPICE. Tutorial. Last updated by: Mohammad Beikahmadi January Original presentation by: Jack Shiah

Digital Applications of the Operational Amplifier

Assume availability of the following components to DESIGN and DRAW the circuits of the op. amp. applications listed below:

Operational Amplifiers: Part II

PS7516. Description. Features. Applications. Pin Assignments. Functional Pin Description

SELF-OSCILLATING FULL-BRIDGE DRIVER IC

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Chapter #3: Diodes. from Microelectronic Circuits Text by Sedra and Smith Oxford Publishing

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

Current Mode PWM Controller

Lab #7: Transient Response of a 1 st Order RC Circuit

EECE 488: Short HSPICE Tutorial. Last updated by: Mohammad Beikahmadi January 2013

Experiment #8: Designing and Measuring a Common-Collector Amplifier

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

PHYS 536 The Golden Rules of Op Amps. Characteristics of an Ideal Op Amp

Experiment 5.A. Basic Wireless Control. ECEN 2270 Electronics Design Laboratory 1

SC A LED DRIVER with INTERNAL SWITCH. Features. Description. Applications. Package Information

Sheet 2 Diodes. ECE335: Electronic Engineering Fall Ain Shams University Faculty of Engineering. Problem (1) Draw the

Facility of Engineering. Biomedical Engineering Department. Medical Electronic Lab BME (317) Post-lab Forms

Homework Assignment 01

LABORATORY 7 v2 BOOST CONVERTER

Function Generator Op-amp Summing Circuits Pulse Width Modulation LM311 Comparator

EXPERIMENT 5 : THE DIODE

Transcription:

SPICE 4: Diodes Chris Winstead ECE 3410. Spring, 2015. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 1 / 28

Preparing for the Exercises In this session, we will simulate several diode configurations corresponding to your lab assignment, and we ll look at a few additional examples of diode operation. Create a new directory for this session: 3410/ spice/ lab1/ lab2/ lab3/ lab4/ Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 2 / 28

Obtain the Example Files In this lab, you will download a collection of files containing the exercises: exercise1.sp, exercise2.sp, and exercise3.sp. Download these files and place them in these locations: 3410/ spice/ [files from previous labs] lab4/ exercise0.sp exercise1a.sp exercise3.sp exercise4.sp boost converter.sp superdiode.sp Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 3 / 28

Study and Simulate Exercise 0 Navigate to your lab4 directory and open the exercise0.sp file. This simple exercise performs an operating point simulation to verify the diode s forward voltage drop at 1 ma, and also performs a DC sweep analysis to reveal the diode s I-V transfer characteristic. D1 V1 + 1kΩ It should confirm that the forward drop is about 600 mv. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 4 / 28

Diodes in SPICE One thing you should notice in exercise0.sp is the diode declaration: D[ name ] [ anode ] [ cathode ] [ modelname ] This declaration is similar to resistors or capacitors, but the diode is directional. The first declared node is the anode (+) and the second one is the cathode (-). When the diode is forward biased, there should be a positive voltage at the anode relative to the cathode. anode + cathode Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 5 / 28

Diode Models When a diode is declared, the last entry is the modelname, which references a detailed model specific to the type of diode you want to simulate. In this lab, we are using the common 1N914 diode. The model for this diode is declared in lab parts.md in these lines:.model D1N914 D ( IS=6.2229E -9 N=1.9224 RS=.33636 IKF=42.843E -3 CJO=764.38E -15 M=.1001 + VJ =9.9900 ISR =11.526E -9 NR =4.9950 BV =100.14 IBV =.25951 TT =2.8854E -9) (The + at the start of a line indicates continuation of the previous line.) Clearly a lot of parameters are needed to model a diode s behavior. The parameters familiar to us are Is and N, which are part of the standard exponential diode equation. The remaining parameters relate to the detailed physics affecting diode operation. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 6 / 28

Study and Simulate Exercise 1A Next, open exercise1a.sp and study its contents. This exercise simulates one of the diode logic circuits from Pre-Lab exercise 1. D 1 n1 V 1 D 2 V 2 n2 nout v out R In the console, you should see measurements for all the cases requested in exercise 1. It also reports the diode s forward drop in this circuit, which is near 0.6 V. Create a log.txt file and record these measurement results. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 7 / 28

Exercise 1B Now modify the contents of exercise1a.sp to implement the second circuit shown in Exercise 1 of the pre-lab. Save the modified file as exercise1b.sp, and run the simulation. Save the results in your log.txt file. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 8 / 28

Exercise 2 Next, create a new file called exercise2.sp and create a model of the circuit shown in Exercise 2 of the pre-lab. Perform a transient simulation for the scenario described in that exercise. Plot the output waveform and save it as a hardcopy plot called halfwave.ps. Use a meas command to measure the peak value of the output waveform. Save the result in your log.txt file. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 9 / 28

Exercise 3 The code for exercise3.sp is provided, and corresponds to the peak rectifier circuit shown in Exercise 3 of the prelab. In this simulation, the control script uses alter commands to simulate the three frequencies specified in the exercise. In each simulation, two meas commands are used to measure the peak output voltage and the peak-to-peak ripple amplitude. These measurements are reported to the console. Notice that the meas command uses FROM and TO modifiers like this: meas TRAN vpp PP v( nout ) FROM =3m TO =5m Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 10 / 28

Exercise 3 (cont...) This tells SPICE to look only in the time window from 3 ms to 5 ms. The purpose of this is to capture the steady-state behavior and ignore the initial transient response. Record the measurement results in your log.txt file. Optionally save the plots for use in your lab report. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 11 / 28

Whether to use AC or TRAN? In the case of the peak rectifier, our goal is to measure the output ripple amplitude. Why not use AC simulation for this? AC simulation will not work because the circuit s behavior is entirely dependent on the diode s non-linear large-signal behavior. AC simulation is a linearized simulation method that is suitable for simulating small-signal behavior only when a circuit is biased to give an approximately linear response. If we try running an AC simulation, it will compute the initial DC bias condition and find the the diode is OFF, and it will hold that condition the simulation will not account for alternating ON/OFF states or the progressive charging of C. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 12 / 28

Exercise 4 The file for exercise 4 is provided for you. This file models the voltage-limiting circuit shown in the pre-lab. Open the file and study the commands used for this simulation, then run it with NGSpice. The simulation should display a plot that looks like this: Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 13 / 28

Exercise 4 (cont...) The console output should also reveal measurements for the max and min ouputs, which should correspond to two forward-bias voltage drops. Record these measurements in your log.txt file and optionally save the plotted waveform for use in your lab report. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 14 / 28

Exercise 5 For exercise 5, create a new SPICE file called exercise5.sp and model the clamped-capacitor circuit shown in pre-lab exercise 5. Use a tran command to perform the simulation and use a meas command to measure the output s minimum value and the peak-to-peak amplitude. Record the measurement results in your log.txt file and save a hardcopy of the waveform in a file named clampedcap.ps. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 15 / 28

Exercise 5 (cont...) Your result should look like this: Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 16 / 28

Supplemental Exercises In addition to the pre-lab circuits, some supplemental models are included in this tutorial. These include a full-wave bridge rectifier, a super-diode precision half-wave rectifier, and a DC-to-DC boost converter. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 17 / 28

Bridge Rectifier Open bridge rectifier.sp and examine its contents. This file models the standard full-wave rectifier: 2 D 1 D 2 load + v IN 0 3 D 3 D 4 + v OUT 1 Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 18 / 28

Bridge Rectifier Exercise Modify bridge rectifier.sp by adding a meas statement to measure the peak output. Report the result in your log.txt file. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 19 / 28

Super-Diode Open superdiode.sp and examine its contents. This file models a precision rectifier circuit: + v nin in nx nout RL Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 20 / 28

Super-Diode Exercise Run NGSpice on superdiode.sp. It will generate three plots, one showing v IN and v OUT together, another showing v OUT by itself (so you can clearly see it), and another showing v IN and v x. Note that v x drops all the way to V SS when the diode is off. The wide swings in v x create a problem for this circuit at high frequencies, where the op amp s slew rate will prevent it from restoring the value of v x. To test this, modify superdiode.sp to simulate a waveform at 10 khz. Run the simulation and explain what happens. (Note, you will have to change the tran simulation parameters to a step-size of 1 µs and an end-time of 500 µs). Save hardcopies of the three plots as sd1.ps, sd2.ps and sd3.ps (in no particular order). Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 21 / 28

Boost Converter The final supplemental file is boost converter.sp. Open this file and examine its contents. It models the DC-to-DC boost converter circuit: V IN nin L nx nout V OUT i L nphi C Vswitch Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 22 / 28

Switches in SPICE The boost converter circuit uses an ideal switch controlled by a clock signal φ. In SPICE, a switch is an element that toggles between an ON-resistance R on and an OFF-resistance R off when its control signal crosses a specified threshold voltage. These parameters are set in a model declaration: * switch model :.model switch sw(ron=25, Roff =100000, Vt=0.001, Vh=0.0001 ) According to this model, the switch turns ON when the control signal crosses the threshold Vt, and turns OFF when the control signal cross the hysteresis voltage Vh. For stability reasons, Vt should usually be larger than Vh. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 23 / 28

Declaring a Switch Instance The switch component is declared using the following syntax: S[ name ] [n+] [n -] [ control +] [ control -] [ modelname ] In the boost converter example: S1 nx 0 nphi 0 switch This places a switch between nx and ground. The switch will close whenever V(nphi)>Vt. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 24 / 28

The Pulse Signal The switching clock is set using a pulse source: V[ name ] [n+] [n -] PULSE (V1 V2 TD TR TF PW T) In this declaration, the pulse will switch from voltage V1 to V2 after delay TD, with rise/fall times TR/TF. It will stay at V2 for time PW and then fall. The pulse is repeated with period T. In the boost converter example, the pulse statement is Vswitch nphi 0 PULSE (0 1 0 1n 1n D*T T ) This declares a clock signal that switches between 0V and 1V, with zero delay, and with rise/fall time of 1 ns. The pulse width is set by the duty cycle parameter D and the period parameter T, which are declared at the top of the file. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 25 / 28

Theoretical Prediction According to the theory described in the notes provided on Canvas, the steady-state output voltage should be V OUT = V IN 1 1 D. For our circuit, V IN = 4 V and D = 0.75, so we expect to see V OUT = 16 V. Run the simulation and see what happens (it may take a long time to complete, due to all the switching events). In practice, the circuit doesn t quite achieve the expected output. Can you explain why? Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 26 / 28

Boost Converter Exercise Now try operating the boost converter as a simple voltage doubler by setting D = 0.5. Increase the tran end-time to 10 ms and repeat the simulation. How close does it get to the expected output value? Save a hardcopy of your V OUT plot as boost.ps. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 27 / 28

What to Turn In Once you are finished with these exercises, prepare a zip archive with the following files: log.txt exercise1b.sp exercise2.sp exercise5.sp All requested hardcopy plots. Submit this zip archive on Canvas to complete your assignment. Chris Winstead SPICE 4: Diodes ECE 3410. Spring, 2015. 28 / 28