Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Transient and Frequency Analysis in Circuitmaker: A Laboratory Guide - Prof. Carl J. Spezi, Lab Reports of Microelectronic Circuits

A step-by-step guide for performing transient analysis and frequency response analysis using circuitmaker, a pspice-based simulation software. The tutorial covers the setup and parameters for both types of analysis, as well as the interpretation of results.

Typology: Lab Reports

2009/2010

Uploaded on 02/24/2010

koofers-user-umr
koofers-user-umr 🇺🇸

3.5

(2)

10 documents

1 / 7

Toggle sidebar

Related documents


Partial preview of the text

Download Transient and Frequency Analysis in Circuitmaker: A Laboratory Guide - Prof. Carl J. Spezi and more Lab Reports Microelectronic Circuits in PDF only on Docsity! ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis All circuit simulation packages that use the Pspice engine allow users to do complex analysis that were once impossible to perform by hand. Two of these types of analysis are transient analysis and frequency response analysis. Transient analysis is the theoretical calculation of the circuit response as a function of time. The results are displayed much like oscilloscopes traces on plots that graph voltages and currents on the y-axis and time on the x-axis. Voltages and currents can then be compared and magnitude/phase measurements made from the individual traces on the graphs. Circuitmaker also includes a multimeter function that display the dc average and ac rms voltage and current magnitudes. The frequency response analysis gives the exact results that are approximated in the Bode plots. This analysis lets users check the frequency response between the input and output points of active (with IC and transistors) and passive circuits. User can specify the range of frequencies, and the input/output voltages for use in graphing the results. Transient Analysis Before any type of analysis can be performed using a Pspice-based simulation package, the types of analysis must be enabled. To enable a analysis, choose from the menu, Simulation, then Analyses Setup. This will display the dialog box below. Figure 1. Analysis setup showing the transient, AC and multimeter functions enabled Clicking on the Enabled checkbox activates the selected analysis for use. Clicking on the type of analysis button will bring up another dialog box that is specific for each selection and gives more details and parameters for the selected study. Fall 2004 pstut.doc Figure 2 shows the details for the transient analysis. When Circuitmaker solves the transient Figure 2 . Details for Transient Analysis Setup. analysis of a circuit, it generates the dynamic equations of the circuit. These equations are differential equations-that is they use derivatives to represent the response of the inductors and capacitors in the circuit. For simple circuits, functions can be found that describe the time response of the circuit. For most practical circuit simulations, the Circuitmaker program solves the dynamic equations by numerical approximation over a user specified time interval. All calculations start at time zero. The following analysis parameters are important to the operation of the program. Stop Time – Controls how long the simulation will last. Units are time. Step Time – Controls the size of time increment taken between calculations. When differential equations are solved numerically, calculations are performed iteriatively at discreet time intervals. This parameter sets the maximum distance between the calculations. The units are also time. Max. Step - Controls the maximum time that the simulation takes between. This is used to speed the calculations when their are no rapid changes in the circuit response. A good rule of thumb is to make this 10 times the step time value. Correct values for these parameters will make the display of the results easier to understand. For simple ac sources, the frequency of the source is used to determine the proper settings. Stop Time - Set this so 10 complete cycles are computed. Determine the time by finding the period of the sine source frequency and multiplying it by the number of cycles. The period of the sine wave is found from T=1/f seconds. The number of cycles can be changed by the user, but remember, a large number of cycles gives a large value of final time which produces simulations that take lots of computer time and will not show Fall 2004 pstut.doc 2 For the work in the lab, select a sweep type of Decade. The number of points per decade should be 5-10 for the work being done. Larger numbers of points will only slow down the simulation. The starting and ending frequencies are give in the lab handouts. If these are not know before hand, a range of interest can be found from the expected response of the simulated circuit. (Example: bandpass filter with approximate fc's of 100 and 2500 Hz, use low f=10 Hz and high f of 10 kHz.) A good rule of thumb is to set the high and low frequencies at least one decade above and below the circuit cut-off frequencies. A signal generator must be connected into the circuit to perform an ac analysis. Clicking on the wave button shown in Figure 4 displays the dialog box shown below. The voltage Figure 6. Ac Analysis Parameters of the Signal Generator. and phase shift used in the ac frequency analysis is set in the Magnitude and Phase value boxes. The magnitude of the voltage can be either rms or peak values. Displaying Results Circuitmaker automatically displays computed results and generates plots after the simulations complete. If the multimeter, transient, and ac analysis simulations are enabled, all three of the results will be displayed. Clicking on each display activates it for editing and scaling. The probe tool must be used to select the nodal voltage to be viewed. This function is found by clicking on Simulation and then selecting the Scope Probe function. The simulation must be running for this function to be active. The figure below shows the results of an ac frequency analysis. The plot can be modified by clicking on the editing functions shown in the upper left. Scaling, display of gridlines, and color modification are just a few of the functions available for editing the results of the simulations. Fall 2004 pstut.doc 5 Figure 7. AC Analysis Display Showing Editing Functions in Upper Left. Figure 8 shows the results of a transient simulation. There are two horizontal and vertical cursors that allow the user to measure the magnitude, phase and frequency of the displayed results. Figure 8. Transient Response Showing the Measurement Cursors, A, B, C, D. The waveform graphs produced by the analysis can be copied and pasted into a word- processing program by using the copy commands found under the Edit menu. Select Copy to Clipboard followed by Waveform to save a graph. The contents of the clipboard can then be pasted into Word or any other word-processing program. Fall 2004 pstut.doc 6 When the multimeter function is enabled, the display shown in Figure 9 appears. The multimeter can display dc, dc average, or ac rms values of voltage or current. The type of display is set from the Analysis Setup menu selection. Figure 9. Multimeter display for Ac Rms measurement. Using Probe to Display Circuit Values After running a simulation, the waveforms can be viewed at any point(s) in the circuit using CircuitMaker’s context-sensitive Probe Tool. To plot data (waveforms) in an analysis window, first choose the appropriate analysis window by clicking somewhere in it so that it is “active”, then: 1.) Click any valid point in the circuit with the tip of the Probe Tool. • Click on a wire to measure voltage • Click on a device pin to measure current • Click on a device body to measure power The indicating letter on the probe flag will change from V to I to P if the probe tip is properly positioned. If CircuitMaker indicates that current or power data is not available, then go to Simulation, Analyses Setup, Analog Options then select the Node Voltage, Supply Current, Device Current and Power radio button in the lower right-hand corner of the dialog box. 2.) Hold down the Shift key and click to plot or “stack” multiple waveforms simultaneously in the analysis window. Note that clicking on another point in the circuit without holding the Shift key will replace the previous waveform with a new one. 3.) Hold down the Ctrl key and click to set a new voltage reference for the active analysis window (the default reference is ground). The figure below shows the results of changing the reference to read across the resistor, R2. Fall 2004 pstut.doc 7
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved