Introduction - Facstaff Bucknell

advertisement
ELEC 225L
Circuit Theory I Laboratory
Fall 2007
Lab #1: Application of PSpice to a Transistor Circuit
Introduction
Nodal analysis is a powerful circuit analysis technique. Its primary advantage is that it provides
a systematic approach for finding the voltages and currents in a circuit. If the method is applied
properly, then a solution will be obtained with a predictable amount of effort. Nodal analysis
also lends itself well to implementation in software. Researchers at the University of California
in the late 1960s and early 1970s were among the first to do this, and the result of their efforts is
now known as SPICE – Simulation Program with Integrated Circuit Emphasis. SPICE has been
modified and improved over the decades, and a version for Windows-based PCs, called PSpice,
has been available for many years. In this lab exercise you will use PSpice to analyze a simple
circuit built around a bipolar junction transistor (BJT) and compare the results to those you
obtain via “pencil-and-paper” analysis and measurements from the actual circuit.
Theoretical Background
Before exploring the capabilities of PSpice, it will be helpful to have some information on BJTs.
The bipolar junction transistor (BJT), sometimes simply called the transistor, is one of the most
widely used electronic devices. BJTs are employed as amplifying devices, control devices, and
sensors, to name just a few of their uses. They also serve as the basic building block of many
kinds of integrated circuits, including the popular LM741 op-amp. BJTs come in two basic
varieties, known as npn and pnp. The name indicates the overall structure of the device. At the
most basic level a BJT is fabricated using three layers of silicon, each of which has had added to
it a tiny amount of some other chemical element (such as boron, phosphorus, or antimony),
which either frees up electrons in the crystal lattice or creates gaps in the lattice into which
electrons can become trapped. The former type of modified silicon is called n-type because of
the availability of negatively charged free electrons; the latter is called p-type because of the
positively charged “holes” in the lattice. Because of various performance differences between
the two types, npn BJTs are more widely used, and we will focus on npn BJTs in this lab
exercise.
The circuit symbol for the npn BJT is shown in Figure 1a. The characteristic that makes the BJT
such a useful device is that, under normal operating conditions, the current that flows into
terminal C (the collector terminal) is directly proportional to the current that flows into terminal
B (the base terminal); that is, IC = FIB, where the parameter F is a constant called the DC
current gain; it typically has a value in the range of 50-300. This property is what makes
possible the use of the BJT as an amplifier; a small base current can control a large collector
current. The terminal labeled E in Figure 1 is called the emitter terminal. The electrical
behavior of BJTs can be modeled in many cases by the simple equivalent circuit shown in
Figure 1b. The linear relationship between IC and IB is represented by a current-dependent
current source. Between the base and emitter terminals there is an almost-constant drop of
0.7 V, and it is represented in the model by an ideal voltage source.
1
B
C
IB
C
IC
B
VBE ≈ 0.7
V
IB
FIB
+
−
E
E
(a)
(b)
Figure 1. a) Circuit symbol for npn BJT, and b) a simple circuit model.
Although manufacturing methods have steadily improved over the last five decades or so, there
is still a surprising amount of performance variability among individual samples of specific types
of BJTs. Most importantly, the value of the parameter F can vary widely, even among units
from the same production run. When designing circuits with BJTs it is often necessary to
establish stable voltages at various points in the circuit that stay at their intended values
regardless of changes in F (and other parameters). One simple way to do this is to place a
resistor of an appropriate value in series with the emitter terminal of the BJT. The resistor
introduces electronic feedback that counteracts the voltage or current changes that result from a
drift in the value of F. A typical example is shown in Figure 2a, and the equivalent circuit
model is shown in Figure 2b. This design technique, which you will study in detail in ELEC 350
and 351, ensures that the node voltages VB, VC and VE stay relatively constant. The process of
designing a circuit to achieve specified DC voltage and current values is called biasing. It is one
of the key steps in almost all kinds of electronic circuit design. We will use PSpice to analyze
the biasing circuit and verify that the node voltages are relatively insensitive to the value of F.
VCC
IC
RC
RC
VC
R1
R1
IB
VC
IC
IB
VB
VE
R2
RE
VB
+
VBE
−
R2
(a)
FIB
VBE ≈
0.7 V
VCC
+
−
VE
+ −
RE
(b)
Figure 2. a) A BJT biasing circuit, and b) its equivalent circuit model. The small
triangles in diagram (a) represent connections to the reference (“ground”) node.
2
Assignment
Complete the following tasks with your lab group:

Follow along on your lab station computer as the instructor guides you through a brief
introduction to PSpice. The tutorial handed out to you should be of considerable help as
you work on this part of the lab exercise.

Use PSpice to find the node voltages VB, VC, and VE and the collector current IC for the
circuit shown in Figure 2b with R1 = 91 k, R2 = 27 k, RC = 5.1 k, RE = 2 k, VCC =
12 V, and F = 150. Record the values of the node voltages and IC for this case; you will
need to include them in a data table later.

Print out the circuit diagram with the node voltages, branch currents, and power
dissipated/delivered for each part labeled. Make sure that the diagram is readable
(especially the component values) and that all quantities are clearly matched with their
appropriate nodes, branches, and/or components. Give the printed diagram an
appropriate title, and use the text toolbar button to add your group members’ names to the
diagram. Also be sure to indicate the value of F somewhere on the diagram.

Re-run the circuit simulation with F changed from 150 to 250, and verify that the node
voltages do not change significantly. Print out the PSpice circuit diagram with the new
value of F clearly indicated.

Apply nodal analysis by hand (the “pencil-and-paper” approach) to the BJT circuit model
using the values given in the second bullet above. Produce a clear and concise version of
your solution, since it will serve as your written report for this lab. (Imagine that your
supervisor has asked you to explain how you analyzed the circuit.) Find the values of
node voltages VB, VC, and VE and the collector current IC, and verify that they closely
match the values obtained using PSpice. You may solve the system of equations using
your calculator, Matlab, or Mathcad. Show how you set up the matrix equation, and, if
you use Matlab or Mathcad, print out a copy of your worksheet. Only one report per
group is required.

Construct the BJT biasing circuit using the component and voltage values given in the
first bullet. Use a 2N3904 for the BJT. Measure and record the node voltages VB, VC,
and VE. You should also be able to determine IC indirectly from the available node
voltages. Record this value of IC as well.

Replace the 2N3904 with a 2N2222 BJT, and verify that the node voltages have not
changed significantly. Record the new measured values of VB, VC, VE, and IC that you
obtain. Once you have verified that the node voltages agree relatively closely with the
values you predicted using nodal analysis, demonstrate the circuit to the instructor or TA.

Organize your calculated and measured voltage and current data into a table. You should
include the values of VB, VC, VE, and IC obtained using PSpice for both F = 150 and F =
250; the values obtained using “pencil-and-paper” nodal analysis for F = 150; the
3
measured values for the 2N3904; and the measured values for the 2N2222. You may
produce the table by hand or using software. Remember to label the columns properly
and include units. Add a column that shows the percentage difference between the
PSpice results obtained using F = 150 and those obtained using F = 250 (use 150 as the
“target” or “reference” value). Make sure that the data table is labeled and organized so
that an engineer only vaguely familiar with the lab exercise could figure out what all of
the data means. (You might want to add a descriptive caption to the table. Captions
should be placed above tables.) Only one data table per lab group is required.
Grading
Each group’s written work (nodal analysis solution, circuit diagram, and data table) is due in
class the next day (Wednesday). Each group member will receive the same grade; however, any
member who leaves significantly earlier than his/her lab partners will receive a 20% grade
penalty for this week’s lab exercise. The grading will be distributed as follows:
15%
15%
25%
20%
25%
Nodal analysis “hand” solution – Technical content
Nodal analysis “hand” solution – Organization, neatness, spelling, and grammar
PSpice circuit diagrams, with voltages, currents, and power levels clearly labeled
Data table, with columns properly labeled and organized
Demonstration of working BJT biasing circuit with proper node voltages
4
Download