ECE 3050 Design Project: Circuit Elements & SPICE Simulation of an Op-Amp - Prof. William , Study Guides, Projects, Research of Electrical and Electronics Engineering

A design project for an operational amplifier circuit in which students are required to calculate circuit elements, write the netlist or spice deck using an ascii text editor, and perform a spice simulation. The project involves using specific spice model statements for jfet and bjts, labeling node numbers, specifying dc bias values, and calculating various circuit parameters such as gain, bandwidth product, and slew rate. Students must also perform various spice analyses to verify the circuit's performance.

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 08/05/2009

koofers-user-1zx-1
koofers-user-1zx-1 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE3050 Summer 2005
Design Project
The figure shows the circuit diagram of an operational amplifier. The object of this assignment is to
calculate the circuit elements and perform a SPICE simulation. You must write the netlist or SPICE
deck for the assignment. You are not permitted to use a schematic editor to generate the netlist.
To do this, you use an ascii text editor. Such an editor is part of both PSpice, Notepad, or Wordpad
.Thefirst line of the netlist must be a title line. You can title it ECE 3050 DESIGN PROJECT.
A suggested name for the ascii netlist file is opamp.cir. Comment lines must be preceded by an
asterisk. Continuation lines must be preceded by a plus sign followed by a space. Write the netlist
using all capital letters.
For the JFET and BJTs in the circuit, you are to use the following SPICE MODEL statements:
J1.MODEL MNJF1 NJF BETA=5E-4 VTO=-3 LAMBDA=0.0125
Q1,Q2,Q5Q7.MODEL MNPN1 NPN IS=1.26E-14 BF=149 VA=150
Q3,Q4,Q8.MODEL MPNP1 PNP IS=1.26E-14 BF=149 VA=150
where BF for the BJT is its β. The other parameters should be self explanatory. In your calculations
for the resistors, you can neglect the Early eect, i.e. set VA=and λ=0. In addition, with the
exception of Q5and Q6, neglect all BJT base currents, i.e. set IB=0.
First, label the node numbers for each node in the circuit. The ground node must be labeled 0.
Voltage sources are of the form VX N1 N2 AC ACVAL DC DCVAL,whereVX isthesourcename,N1
is the positive node, N2 is the negative node, ACVAL is the ac phasor value, and DCVA is the dc
value. Current sources are of the form IX N1 N2 AC ACVAL DC DCVAL. The arrow in the current
source symbol points from the N1 node to the N2 node. Resistors and capacitors are specified as
RX N1 N2 VALUE and CX N1 N2 VALUE. BJTs are specified as QX NC NB NE QMDL,whereQX is the
BJT name, NC,NB,andNE, respectively, are the collector, base, and emitter nodes, and QMDL is the
model name. JFETs are specified as JX ND NG NS JMDL,whereJX is the JFET name, ND,NG,and
NS, respectively, are the drain, gate, and source nodes, and JMDL is the model name.
The first step in any design is to specify the dc bias values. These are specified to be V+=18V,
V=18 V,VO=0V,ID1=1.5mA,IC3=0.5mA,IC4=1.5mA,IC6=2mA,andIE7=IE8=
2mA. The small-signal ac gain with feedback can be approximated by the equation
vo
vi
=1+RF2
RF1
This is the familiar gain formula for the non-inverting op-amp amplifier. The gain is specified to
have a value of 10 (20 dB). The value of RF2is to be 10 k.ThevalueofCFis to be calculated
so that 1/(2πRF1CF)=10Hz.ThevalueofRLis specified to be RL=1k.Thevalueof
both R1Aand R1Bare specified to be equal to RF2.ThevalueofC1is to be calculated so that
1/(2πR1BC1)=10Hz.ThevaluesofRE7and RE8are to be 10 .
The circuit is to be designed for the gain-bandwidth product fx=1MHzand the slew rate SR =
10 Vs. The approximate design equations which set these parameters are
fx=1
4π(re+RE)Cc
SR =ID1
2Cc
where re=2VT/ID1. You can use these equations to solve for the values of REand Cc. The default
value of VTin SPICE is 25.86 mV. This value should be used in the calculations.
1
pf3

Partial preview of the text

Download ECE 3050 Design Project: Circuit Elements & SPICE Simulation of an Op-Amp - Prof. William and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

ECE3050 Summer 2005 Design Project

The figure shows the circuit diagram of an operational amplifier. The object of this assignment is to calculate the circuit elements and perform a SPICE simulation. You must write the netlist or SPICE deck for the assignment. You are not permitted to use a schematic editor to generate the netlist. To do this, you use an ascii text editor. Such an editor is part of both PSpice, Notepad, or Wordpad

. The first line of the netlist must be a title line. You can title it ECE 3050 DESIGN PROJECT. A suggested name for the ascii netlist file is opamp.cir. Comment lines must be preceded by an asterisk. Continuation lines must be preceded by a plus sign followed by a space. Write the netlist using all capital letters.

For the JFET and BJTs in the circuit, you are to use the following SPICE MODEL statements:

J 1 .MODEL MNJF1 NJF BETA=5E-4 VTO=-3 LAMBDA=0. Q 1 , Q 2 , Q 5 − Q 7 .MODEL MNPN1 NPN IS=1.26E-14 BF=149 VA= Q 3 , Q 4 , Q 8 .MODEL MPNP1 PNP IS=1.26E-14 BF=149 VA=

where BF for the BJT is its β. The other parameters should be self explanatory. In your calculations for the resistors, you can neglect the Early effect, i.e. set VA = ∞ and λ = 0. In addition, with the exception of Q 5 and Q 6 , neglect all BJT base currents, i.e. set IB = 0.

First, label the node numbers for each node in the circuit. The ground node must be labeled 0. Voltage sources are of the form VX N1 N2 AC ACVAL DC DCVAL, where VX is the source name, N is the positive node, N2 is the negative node, ACVAL is the ac phasor value, and DCVA is the dc value. Current sources are of the form IX N1 N2 AC ACVAL DC DCVAL. The arrow in the current source symbol points from the N1 node to the N2 node. Resistors and capacitors are specified as RX N1 N2 VALUE and CX N1 N2 VALUE. BJTs are specified as QX NC NB NE QMDL, where QX is the BJT name, NC, NB, and NE, respectively, are the collector, base, and emitter nodes, and QMDL is the model name. JFETs are specified as JX ND NG NS JMDL, where JX is the JFET name, ND, NG, and NS, respectively, are the drain, gate, and source nodes, and JMDL is the model name.

The first step in any design is to specify the dc bias values. These are specified to be V +^ = 18 V, V −^ = −18 V, VO = 0 V, ID 1 = 1.5 mA, IC 3 = 0.5 mA, IC 4 = 1.5 mA, IC 6 = 2 mA, and IE 7 = IE 8 = 2 mA. The small-signal ac gain with feedback can be approximated by the equation

vo vi

RF 2

RF 1

This is the familiar gain formula for the non-inverting op-amp amplifier. The gain is specified to have a value of 10 (20 dB). The value of RF 2 is to be 10 kΩ. The value of CF is to be calculated so that 1 / (2πRF 1 CF ) = 10 Hz. The value of RL is specified to be RL = 1 kΩ. The value of both R 1 A and R 1 B are specified to be equal to RF 2. The value of C 1 is to be calculated so that 1 / (2πR 1 B C 1 ) = 10 Hz. The values of RE 7 and RE 8 are to be 10 Ω.

The circuit is to be designed for the gain-bandwidth product fx = 1 MHz and the slew rate SR = 10 V/ μs. The approximate design equations which set these parameters are

fx =

4 π (re + RE ) Cc

SR =

ID 1

2 Cc

where re = 2VT /ID 1. You can use these equations to solve for the values of RE and Cc. The default value of VT in SPICE is 25 .86 mV. This value should be used in the calculations.

The voltage across RE 6 is specified to be 0. 5 VBE 6 , where VBE 6 is the base-emitter voltage. You can use the transistor collector current equation to calculate VBE 6. To calculate RC 1 , use the transistor collector current equation to calculate VEB 3 and VEB 4. Then neglect the base currents in Q 3 and Q 4 to calculate RC 1 = (VEB 3 + VEB 4 ) /IC 1. The current through R 5 is specified to be 20 IB 6. The voltage across RE 6 is specified to be equal to VBE 6. If the base currents in Q 7 and Q 8 are neglected, the current through the VBE multiplier is equal to IC 6. The VBE multiplier is to be designed so that IE 5 = 0. 9 IC 6 and the current through R 3 is 0. 1 IC 6.

SPICE Analyses:

  1. Perform a dot-OP analysis. Examine the dot-OUT file. Verify that all dc bias currents and voltages are equal to or close to the desired values. Do not proceed until the bias values are correct. They do not have to be exact, but you should be able to come within 5% to 10% of the specified values. You will find the bias currents in Q 7 and Q 8 are extremely sensitive to the voltage across the VBE multiplier. You may have to experimentally “tweak” the value of either R 2 or R 3 to obtain the desired current.
  2. Perform a dot-AC analysis using AC 1 for Vi. Plot the amplifier gain versus frequency using log scales for both the vertical and horizontal axes. Do not use linear scales! Verify that the mid-frequency gain is approximately 10 , the gain at 10 Hz is approximately 5 , and the high-frequency gain passes through unity at approximately f = fx. Do not proceed with the following steps until you meet these specifications.
  3. Determine the upper frequency at which the gain is 10 /
  1. Verify that this frequency mul- tiplied by the mid-frequency gain of 10 is equal to fx.

  2. Plot the open-loop gain as a function of frequency by plotting Vo/ (Vb 1 − Vb 2 ).

  3. Perform a dot-TRAN analysis using a voltage step at the input of value 1 V. Plot the output voltage as a function of time and evaluate the maximum slope. This should be equal to the positive slew rate. With 1 V input, the output should rise to 10 V.

  4. Perform a dot-TRAN analysis using a voltage step at the input of value −1 V. Plot the output voltage as a function of time and evaluate the maximum slope. This should be equal to the negative slew rate. With −1 V input, the output should fall to −10 V.

  5. Perform a dot-TRAN analysis using a sine wave at the input with a frequency of 1 kHz. Increase the amplitude of the sine wave until the op amp is driven just to the clipping level. Is the clipping symmetrical? Obtain a plot of the output voltage.

  6. Set Vi = 0, replace RL with a 1 A ac current source. Perform a dot-AC analysis and plot Vo as a function of frequency using log-log scales. This plot is a plot of the small-signal output impedance of the op amp.

In your write-up, include calculations, a copy of the circuit diagram with all SPICE nodes numbered, and a copy of the netlist. Include a copy of the dot-OUT file showing all dc bias currents and voltages. Include all frequency response plots and all transient response plots. Title all plots and label pertinent values on the plots, e.g. mid-band gain, lower cutoff frequency, upper cutoff frequency, gain-bandwidth product, slew rates, etc.