Download EEEE 381 Lab 4 Differential Amp - RIT - People

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Bode plot wikipedia , lookup

History of electric power transmission wikipedia , lookup

Electrical ballast wikipedia , lookup

Power inverter wikipedia , lookup

Signal-flow graph wikipedia , lookup

Three-phase electric power wikipedia , lookup

Islanding wikipedia , lookup

Ground loop (electricity) wikipedia , lookup

Public address system wikipedia , lookup

Variable-frequency drive wikipedia , lookup

Negative feedback wikipedia , lookup

Audio power wikipedia , lookup

Rectifier wikipedia , lookup

Stray voltage wikipedia , lookup

Voltage optimisation wikipedia , lookup

Scattering parameters wikipedia , lookup

Transistor wikipedia , lookup

Alternating current wikipedia , lookup

Tube sound wikipedia , lookup

Distribution management system wikipedia , lookup

Power electronics wikipedia , lookup

Resistive opto-isolator wikipedia , lookup

Mains electricity wikipedia , lookup

Current source wikipedia , lookup

Schmitt trigger wikipedia , lookup

Switched-mode power supply wikipedia , lookup

Wien bridge oscillator wikipedia , lookup

Two-port network wikipedia , lookup

Buck converter wikipedia , lookup

Amplifier wikipedia , lookup

Current mirror wikipedia , lookup

Opto-isolator wikipedia , lookup

Transcript
EEEE 381 – Electronics I
Lab #4: MOSFET Differential Pair with Active Load
Overview
The differential amplifier is a fundamental building block in electronic design. The objective of
this lab is to examine the voltage transfer characteristic and performance of a MOSFET differential
amplifier with an active load — i.e., with a PMOS current mirror attached between the drain
terminals of the amplifying MOSFETs and the positive power supply.
Theory
Introduction:
The actively-loaded differential amplifier is a two-input/single-output circuit, as shown in Figure
1. In this circuit, the output is shown at the drain of M2 as vo. The two inputs of the differential
amplifier are at the gates of M1 and M2. When these inputs are grounded, the bias current available
from the current source, Io, splits evenly between the two transistors, assuming that the transistors
are identical. The corresponding gate to source voltage of M1 and M2 is the Q-point voltage
(VGSQ) that results in drain current of Io/2.
+5 V
CD4007
M3
M4
VDD
5V
(DC)
vo
IREF
vg1
VSS
5V
(DC)
M1
M2
vg2
Io
M5
M6
CD4007
–5V
Figure 1. Differential amplifier with active load
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 1 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
DC Voltage Transfer Characteristics of a Differential Amplifier:
If the gates of both M1 and M2 are at zero volts with respect to ground the Q-point voltages and
currents can be found. If the current source value is Io then that current splits evenly in M1 and
M2 giving their Q-point current of Io/2. Assuming all the transistors are in saturation. Then the
voltage gate-to-source needed to give these currents can be calculated for all these transistors. The
DC voltage transfer curve can be found by leaving one input at zero volts and sweeping the other
input from the negative supply to the positive supply voltage. The left input (M1) is the noninverting input, the right input (M2) is the inverting input for Vo on the right (Vd of M2). The
slope of the linear region near Vin = zero is the gain of the amplifier.
D(V(Voutput)) = Gain
50
Max Gain
= 41 V/V
25
SEL>>
0
D(V(Voutput))
5.0V
0V
-5.0V
-500mV
0V
500mV
V(Voutput)
V_V3
VTC for Sweep of Non-Inverting Input
Figure 2. SPICE schematic for differential amplifier using CD4007 MOSFETs. Simulation shows
Q-point voltages and currents. DC voltage sweep shows non-inverting gain maximum of 41 V/V
near Vin = Zero.
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 2 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
Differential-Mode Operation:
Figure 3 shows the differential amplifier with inputs applied in differential mode. Assuming
matched transistors, the following equations describe the gain of the amplifier.
+5 V
CD4007
M3
M4
VDD
5V
(DC)
vo
IREF
M1
vg1
vdiff
1 kz
VSS
5V
(DC)
M2
vg2
~
CD4007
M5
VCOM
(DC)
Io
M6
–5V
Figure 3. Differential amplifier in differential mode.
With v g1  
v diff
2
and v g 2  
 v
, the differential-mode gain  o
v
2
 diff
is given by Equation (1):
vdiff
 v 
Ad   o   g m ro 2 || ro 4 || R L  .
v 
 diff 
The transconductance gm is given by

 of a differential amplifier


(1)


I 
W 
W 
g m   n Cox  VGSQ  Vt   k n   VGSQ  Vt  2k n I D  2k n  o 
(2)
L
L
2
where ID is the DC current in M1 or M2, and where a load resistance RL may be attached to the
output node (not shown in figure). If RL is not present, we would let RL → ∞ in Equation (1).
Note that a common-mode DC supply (VCOM) might need to be provided in addition to the
differential signal to bias the amplifier in the correct operating region (all transistors in saturation).
This ensures that we get undistorted, or linear, amplification. Since the lower power supply is at
 5 V, a value of VCOM = 0 V may be sufficient, but this should be checked as part of the pre-lab
preparation.
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 3 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
Common-Mode Operation:
Figure 4 shows the differential amplifier with inputs applied in. With vg1 = vg2 = vcm, the
v 
common-mode gain  o  is given by
 v cm 
v 
ro 4
1
1
(3)
ACM   o   

2Ro 1  g m3 ro3
2 g m3 Ro
 vcm 
where Ro is the output resistance of the current source. For a simple current source,
1
.
(4)
Ro  ro 6 
I o
Common-Mode Rejection Ratio:
A
CMRR (dB)  20 * log d .
Acm
(5)
+5 V
CD4007
M3
M4
VDD
5V
(DC)
vo
IREF
M1
vg1
VSS
5V
(DC)
CD4007
M5
M2
Io
M6
–5V
vg2
~
vcm
1 kz
VCOM
(DC)
Figure 4. Differential amplifier in common mode
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 4 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
Pre-Lab
For hand calculations use the most basic equations and parameters that match the SPICE model
for the CD4007. The results should be similar to the results obtained from SPICE and the build.
For example: NMOS SPICE model shows: VT=1.4, KP=UOxCox’=60uA/V2, and NMOS
Parameters shown as: L=10u, W=170u, NRD=0.059, NRS=0.059. For PMOS SPICE model
shows: VT=1.65, KP=UOxCox’ = 23uA/V2, and PMOS parameters as: L=10u, W=360u,
NRD=0.027 NRS=0.027. Assume =0.01 and 0.02 for NMOS and PMOS.
(1) Assuming a 4 mA drain current through M6, calculate the theoretical Q-point values by
grounding both inputs of the amplifier in Figure 1 and finding VGSQ1 and VGSQ2.
(2) A DC common-mode voltage (VCOM) will be required to allow bias current to flow in the
complete differential amplifier circuit. Calculate the minimum value of VCOM that can be
applied and still ensure proper operation (i.e., all transistors in saturation) of the differential
pair. Note: The threshold voltages of M1 and M2 will be significantly altered by body effect.
(3) Using the Q-point values calculated in part (1) and assuming matched transistors, calculate the
theoretical differential-mode gain, common-mode gain, and common-mode rejection ratio
(CMRR) at vo.
(4) Use SPICE to obtain simulation values for the Q-point voltages. See the Appendix A SPICE
Instructions below.
(5) Simulate the circuit in Figure 3 to find the single sided differential-mode gain. Note that the
Vsin voltage source in SPICE uses amplitude not peak-to-peak.
(6) Simulate the circuit in Figure 4 to find the single sided common-mode gain.
(7) Calculate the common-mode rejection ratio (CMRR in dB) of the amplifier.
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 5 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
Lab Exercise
Objectives:
(1) Obtain the voltage transfer characteristics of a MOSFET differential pair.
(2) Measure the differential-mode and common-mode gains, and determine the CMRR.
Hardware Procedure:
** The NMOS substrate (pin 7) must be connected to the most negative voltage supply (–5 V
here). The PMOS substrate (pin 14) must be connected to the most positive voltage supply (+5
V here). VDD and VSS need to be connected to provide a path for the Electrostatic discharge
ESD circuitry. So do that before connecting anything to the gates of the MOSFETs and remove
the gate connections before disconnecting the power supply. Refer to the pin-out diagram in
the data sheet given as Figure 4. (or large size pin-out on last page)
** Make sure the signal generator is in High Z mode.
(1) Using the simple current source designed in Lab #3, build the differential amplifier circuit
shown in Figure 1. Two CD4007 packages will be needed — use one for the differential pair
and current mirror (M1 – M4) and a second one for the simple current source M5 and M6.
(2) Ground both inputs of the amplifier. Measure the bias current through the current source and
verify that it is approximately 4 mA by temporarily detaching the M6 drain from the
differential amplifier and connecting it (the M6 drain) to +5 V through a 1 k resistor
(measure the voltage across the 1 k resistor). Then remove the 1 k resistor and reattach
the current source to the differential stage. Measure the DC voltages for VGSQ1 and VGSQ2, the
Q-point values.
(3) Set up the amplifier in differential mode as shown in Figure 3. Make sure that the NMOS
substrates (pin 7) are connected to –5 V and that the PMOS substrates (pin 14) are
connected to +5 V. Determine the differential-mode gain by measuring Vo p-to-p over Vdiff
p-to-p. You may need a voltage divider resistor network to obtain small enough input voltages
so that the output voltage is not clipped depending on the signal generator minimum output
amplitude. Screen capture input and output signals for your lab write up.
Caution: You must get the common-mode DC supply VCOM up to a point where the
differential transistors are operating properly — i.e., in saturation. It is not sufficient to merely
get a response at the output node. (You will get a response for VCOM in excess of ~1.5 V above
the lower supply because current will be flowing, but this doesn’t mean that all transistors are
operating in saturation. You will also see some amplification of the differential input signal.)
You must get VCOM at least up the point where your current source is operating properly —
i.e., at the designed 4 mA level — and all transistors are in saturation. All your results will
be invalid if this is not done properly.
(Continues on next page)
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 6 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
(4) Set up the amplifier in common mode as shown in Figure 4. Determine the common-mode
gain by measuring Vo p-to-p over Vin p-to-p. This gain should be small so use larger input
p-to-p voltage. Screen capture input and output signals for your lab write up.
(5) Calculate the CMRR of the amplifier.
N.B.: The differential amplifier of Figures 1–4 will be used in subsequent labs (Labs #5–#6),
so you may wish to keep it assembled once you have it working properly.
Summary and Discussion

Compare theoretical, simulation, and hardware values of differential-mode and commonmode gains, and explain any discrepancies.

Explain why the differential input signal amplitude should be limited. What would you
expect to happen to the output signal for larger input signals?

Attach SPICE simulations:
(a) confirming current source design;
(b) showing the Voltage Transfer Characteristic (VTC);
(c) showing the differential gain of the amplifier (include curves for several different
input signal amplitudes);
(d) showing the common-mode gain of the amplifier (include curves for several different
input signal amplitudes).
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 7 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
Appendix A — SPICE Instructions
Please refer to the following for assistance in modifying the MbreakN MOSFET so that it
represents the NMOS FETs in the CD4007 chip.
We want to place the MbreakN Schematic symbol on our schematic then edit and display the
properties to represent the CD4007 transistors. We also want to change the name of the spice
Model from MbreakN to RIT4007N7.
Right Click on the transistor and select
“Edit Properties”, Pivot, Display, Apply
Finally, we want to let SPICE know where to find the text
file that has the SPICE MODEL in it. That is done by editing
the SPICE simulation profile. Under the Configuration
Files Tab, select Include, and then Browse to the Location of
the file where the SPICE model is. (Note: you should have
already placed the text file that has the RIT4007N7 SPICE
model in it on your computer in some location)
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 8 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
*SPICE MODELS FOR RIT DEVICES AND LABS - DR. LYNN FULLER 1-11-2017
*LOCATION DR.FULLER'S COMPUTER
*and also at: http://people.rit.edu/lffeee
*
*----------------------------------------------------------------------*Used in Electronics II for CD4007 inverter chip
*Note: Properties L=10u W=170u Ad=8500p As=8500p Pd=440u Ps=440u NRD=0.059 NRS=0.059
.MODEL RIT4007N7 NMOS (LEVEL=7
+VERSION=3.1 CAPMOD=2 MOBMOD=1
+TOX=4E-8 XJ=2.9E-7 NCH=4E15 NSUB=5.33E15 XT=8.66E-8
+VTH0=1.4 U0= 1300 WINT=2.0E-7 LINT=1E-7
+NGATE=5E20 RSH=300 JS=3.23E-8 JSW=3.23E-8 CJ=6.8E-8 MJ=0.5 PB=0.95
+CJSW=1.26E-10 MJSW=0.5 PBSW=0.95 PCLM=5
+CGSO=3.4E-10 CGDO=3.4E-10 CGBO=5.75E-10)
*
*Used in Electronics II for CD4007 inverter chip
*Note: Properties L=10u W=360u Ad=18000p As=18000p Pd=820u Ps=820u NRS=0.027 NRD=0.027
.MODEL RIT4007P7 PMOS (LEVEL=7
+VERSION=3.1 CAPMOD=2 MOBMOD=1
+TOX=5E-8 XJ=2.26E-7 NCH=1E15 NSUB=8E14 XT=8.66E-8
+VTH0=-1.65 U0= 400 WINT=1.0E-6 LINT=1E-6
+NGATE=5E20 RSH=1347 JS=3.51E-8 JSW=3.51E-8 CJ=5.28E-8 MJ=0.5 PB=0.94
+CJSW=1.19E-10 MJSW=0.5 PBSW=0.94 PCLM=5
+CGSO=4.5E-10 CGDO=4.5E-10 CGBO=5.75E-10)
*-----------------------------------------------------------------------
These are two of the several SPICE models in the text file “RIT_SPICE_Models.txt” provided on
the lab webpage. You should download the entire text file and place it on your computer. You can
include all the models by telling SPICE the location of the downloaded file as shown on the page
above (page 8). SPICE will actually only use the models called for by the devices in your
schematic.
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 9 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
14
2
13
1
6
11
10
3
8
5
7
4
12
9
Enlarged CD4007 Pin Out
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 10 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248
Check-Off Sheet
A. Pre-Lab
 Calculation of theoretical Q-point, VCOM, differential-mode gain, common-mode gain,
and common-mode rejection ratio (CMRR) values for the differential amplifier.
 SPICE simulation of the Q-point.
 SPICE simulation of vdiff to find the differential-mode gain at vo.
 SPICE simulation of vcm to find the common-mode gain at vo.
B. Experimental
 Differential amplifier of Figure 1 built and proper DC operation verified.
 Differential amplifier set up as in Figure 3; experimental differential-mode gain obtained
for three different input values of vdiff.
 Differential amplifier set up as in Figure 4; experimental common-mode gain obtained
for three different input values of vcm.
 Experimental value of CMRR-dB calculated.
TA Signature: ____________________________ Date: ___________________________
Electronics I – EEEE 381 — Lab #4: MOSFET Differential Pair, Active Load — Rev 2017
Page 11 of 11
Rochester Institute of Technology
Teaching Assistants — Office: 09-3248