Lab 8 Manual
Lab 8 Manual
Objectives:
• Computer system
• A working installation of LTspice
• Access to OriginPro, MATLAB, Mathematica or an IDE
THEORETICAL BACKGROUND
Metal Oxide Semiconductor Field Effect Transistor (MOSFET) is by far the most widely used
transistor in both digital and analog circuits, and it is the mainstay of modern electronics. One of
the most common uses of the MOSFET in analog circuits is the design of differential amplifiers.
These amplifiers due to their high input impedance, are usually deployed as input stages in op-
amps, video amplifiers, high-speed comparators, and many other analog electronic circuits.
The MOSFET is a three terminal device (not counting the bulk). These are the source, drain and
gate terminals. Depending on which of the three terminals the input is applied to and the output
take from, MOSFET amplifiers can be categorized as common-source (CS), common-drain (CD)
or common-gate (CG). A differential amplifier setup is basically a pair of matched (common-
source) single stage amplifier; half of the circuit is a mirror image of the other half. The match is
to minimize the imbalances from one side of the differential amplifier to the other. The differential
amplifier offers considerable advantages over the single-stage amplifier in terms of noise
suppression, higher output voltage swing, higher voltage gain, linear performance and simpler
biasing. The schematic of a simple differential amplifier is represented in Fig. 1. M1 and M2
represent the two matched transistors while Vin+ and Vin- are the two input voltages supplied to
the gates of the transistors. Usually to investigate the differential voltage gain (Ad) of the amplifier,
Vin+ and Vin- are equal in magnitude and phase, but for common-mode voltage gain (Ac), a
common input voltage (magnitude and phase) is supplied to both input terminals.
1
Fig. 1. Schematic of a differential amplifier
Hint: two resistors of resistance 2RS placed in parallel with each other is equivalent to RS.
DC Analysis:
AC analysis (small-signal)
Transconductance (gm) is given as 2𝐾𝐾𝐾𝐾(𝑉𝑉𝐺𝐺𝐺𝐺 − 𝑉𝑉𝑇𝑇 )
𝑔𝑔𝑚𝑚 = 2 × 50 × 10−6 (2.186 − 1)
𝑔𝑔𝑚𝑚 = 0.1186 𝑚𝑚𝑚𝑚/𝑉𝑉
Note that gm1 = gm2 = gm
The differential voltage gain (Ad) is expressed as |𝑔𝑔𝑚𝑚 𝑅𝑅𝐷𝐷 |
𝐴𝐴𝑑𝑑 = 118.6 × 10−6 × 25 × 103
𝐴𝐴𝑑𝑑 = 2.965
SAMPLE SIMULATION
The circuit in Fig. 3. represents the implementation of the analyses discussed above. The results of
the dc operation simulation match the calculated values as shown in Fig. 4.
For confirmation of the gain, SPICE directives shown in Fig. 6 could be written. Thereafter run the
transient response, click on the view tab, followed by “SPICE Error Log” to reveal the gain.
QUESTION 1B
i. Set up the MOSFET differential amplifier of Fig. 3. in LTspice. (Note: use the parameters
given in 1A).
For your MOSFET type, go to components folder and pick ‘nmos4’ for this
simulation.
Input the necessary SPICE directives to ensure proper modelling of the transistors.
Click on .op to reveal the SPICE command tab. Thereafter type in “.model nmos
nmos (Vto=2 KP =100e-6) and hit Enter, before dropping it on your workspace.
(Note: Kp = 2*kn).
Input source, V1 = V2 = 20 mVp-p (Note: Vpeak -to -peak = 2 * Vpeak). Hence, enter the
peak value in your simulator. Ensure to include a 180o phase difference in V2.
Frequency of AC voltage source = 20 kHz.
ii. Click on “Simulate” tab, then “Edit Simulation Command”. Choose “DC op pnt” to run the
DC analysis of your circuit. Close the first tab revealed after running the analysis.
iii. Click on “View” and thereafter “SPICE Error Log” on the dropdown to reveal the DC
parameters (ID, VGS, gm) of the MOSFETs as shown in Fig. 4. (Please provide this screenshot
in your report). The results should match your calculated parameters if you computed them
correctly.
iv. Close the tab in the previous step. Go back to “Edit Simulation Command”, select Transient
simulation option and input ‘2m’ as your stop time. Run your simulation.
v. To accurately measure the input and output voltages of a differential amplifier, right-click on
the plot window and click on “Add Traces”. For differential input voltage Vd, select V(in+)
– V(in-) and hit enter to show the input voltage waveform.
vi. Right-click again on the plot window and select “Add Plot Pane”. On the new plot pane,
repeat step (v), but this time select V(out+) – V(out-) to reveal the output voltage waveform.
vii. Measure the peak – to – peak voltages of the input and output and use the information to
update Table 2.
viii. Repeat procedure for the following peak – to – peak values of V1 and V2 (30 mV, 40 mV,
50 mV and 60 mV). Extract readings for the first measurement and plot the transient
response.
ix. To confirm the calculated DC gain of the amplifier, include the following SPICE directives
to your setup. Run the transient simulation again.
x. Go to SPICE Error Log as in (iii) to reveal Gain. This should be approximately the same as
your calculated gain.
Table 2