Download Frequency Response Analysis of Low Pass Filters: Lab 1 - Prof. Richard Kozick and more Lab Reports Microelectronic Circuits in PDF only on Docsity! ELEC 226, Lab 1 Jan. 15, 2009 Prof. Rich Kozick Laboratory 1 Frequency Response Analysis, Simulation, and Measurements Introduction: The objective of this lab is to review measuring the frequency response (magnitude and phase) of a low pass filter. We will relate your measured results to analysis using phasors and impedance as well as simulation with PSpice. Background: We will consider the following low pass filter circuit. + Vout - + Vin - Ω= kR 1 FC μ1.0= Figure 1 Instructions: 1. Analytically determine the frequency response of the circuit for both the amplitude gain and the phase difference between the input and output signals at sinusoidal steady state. Express the amplitude gain formula in decibels (dB) = 20 * log10 (amplitude gain). 2. “Build” the circuit in Figure 1 in Pspice and simulate with an “AC Sweep”. For the AC sweep, select a start frequency of 100 Hz, an end frequency of 100 kHz and an AC sweep type of “decade”. In Probe, plot vout/vin (try doing it in dB). This will plot the magnitude of vout/vin. 3. Copy the magnitude data to Excel by highlighting (clicking) the name of the variable at the bottom of the plot and then copying the data using the “copy” button or “Copy” from the Edit menu. When the data are selected the name of the variable will be highlighted in red. Open Excel. Select “Paste Special” from the Edit menu. Select “Paste” and “as text” and then “ok”. Later in the lab, you will plot the data along with the experimental data to be measured during this lab. 4. In Probe, delete all traces. Plot the phase angle between vin and vout. Select “Add” from the Trace menu. On the right side of your menu will be options for different functions: ATAN (calculates the inverse tangent in radians), IMG (takes the imaginary part of the variable selected), and R (takes the real part of the variable selected). To plot the phase difference between vin and vout, select ATAN(IMG(vout)/R(vout))*360/2/pi where vout is the voltage across the capacitor in your circuit. (This assumes that you left the phase angle of vin as zero degrees when you “built” the circuit.) Copy this phase angle data to Excel. You can also create dB and Phase markers in your schematic under the pspice / markers / advanced menu. 5. Experimentally measure the the magnitude of vout/vin and the phase difference between vin and vout from 100 Hz to 100 kHz using the oscilloscope. Set the function generator to sine and select an amplitude of 1 Vpp. Record your experimental data in Excel. Be sure to measure both vin and vout (why does vin change with frequency?). 6. In Excel, plot the Pspice data of magnitude of vout/vin as a function of frequency using a logarithmic axis for the x axis and a scatter plot. Add the experimental data of magnitude of vout/vin as a function of frequency to the plot as another series. Also add data based on evaluating your analytical expression from item 1 (you can compute this data for a few frequencies using your calculator, or you can use formulas in Excel). Is there an advantage to plotting the amplitude gain in dB? 7. In Excel, plot the Pspice data of the phase angle between vin and vout as a function of frequency using a logarithmic axis for the x axis and a scatter plot. Add the experimental data of the phase angle between vin and vout as a function of frequency as another series, and the analytical data. 8. How do the experimental, Pspice, and analytical data compare? 9. Can you identify the “cutoff frequency” in your plot, and compare it to the analytical value of the cutoff frequency for the values of R and C? 1