AC Lab Manual
AC Lab Manual
LAB MANUAL
INSTRUCTION TO THE STUDENTS
Pre-lab Preparation
Objective:
To study the drain and transfer characteristics and effect of body bias in transistor using LTspice.
Theory:
An nMOS transistor is a 4 terminal device containing source, drain, gate and a substrate. Two n
layers are diffused into a P substrate. And the space between is overlapped by poly silicon. The
source is connected to ground and so is the substrate. We increase the gate voltage until Vth after
which a channel is formed below the gate. The channel becomes stronger as we increase V gs
from here and is determined by the overdrive voltage given by V ov=Vgs-Vth. At a constant Vds, the
transconductance characteristics is shown below.
SPICE (Simulation Program with Integrated Circuit Emphasis) is a general-purpose, open source
analog electronic circuit simulator. It is a program used in integrated circuit and board-level
design to check the integrity of circuit designs and to predict circuit behavior.
LTspice is a high-performance SPICE simulator, schematic capture and waveform viewer with
enhancements and models for easing the simulation of switching regulators. The enhancements
to SPICE have made simulating switching regulators extremely fast compared to normal SPICE
simulators, allowing the user to view waveforms for most switching regulators in just a few
minutes. Included in this download are LTspice, Macro Models for majority of Linear
Technology's switching regulators, over 200 op amp models, as well as resistors, transistors and
MOSFET models.
LTspice can run simulations on either schematic files or coded netlist files. Both methods are
quite similar, and only simulations with schematic files are introduced in detail here.
Example 1.1 Draw the Id versus Vgs characteristic curve of nmos transistor using LTSpice
Step 1: Install LTspice and open the software (Click No if requested update).
Current version: LTspice XVII.
Shortcut keys and buttons; zoom in/out or rotate components if needed. Also available to view in
“Control Panel”.
Step 5: Add wires (click and release) to connect all components to create the complete
circuit/schematic.
a. In the Edit Simulation Command window, select DC Sweep and fill in the details.
Simulation command will be generated automatically.
Id(M1)
660µA
600µA
540µA
480µA
420µA
360µA
300µA
240µA
180µA
120µA
60µA
0µA
0.0V 0.1V 0.2V 0.3V 0.4V 0.5V 0.6V 0.7V 0.8V 0.9V 1.0V
Fig. 1.10 Simulation result
c. Color of trace panel can be adjusted in “Tools”, “Color Preference”, “Waveform” tab,
“background” in pulldown menu.
a. In the Edit Simulation Command window, select Transient Analysis and fill in the
details. Simulation command will be generated automatically.
b. Left click to activate (bring front) the schematic panel. Place the cursor on the node/wire
(voltage) or the element (current), and left click to probe and display the measured values
c. Right click on the trace panel, select “Add Traces”, and left click on the signals you want
to see. Click “OK” to display.
Fig. 1.12 Trace panel.
Example 1.2 Plot the characteristic curve for Id – Vds, keeping Vgs constant, to observe the
different characteristic regions of nMOS transistor.
Solution:
Id(M1)
660µA
600µA
540µA
480µA
420µA
360µA
300µA
240µA
180µA
120µA
60µA
0µA
-60µA
0.0V 0.1V 0.2V 0.3V 0.4V 0.5V 0.6V 0.7V 0.8V 0.9V 1.0V
Fig. 1.14 Simulation output
Example 1.3 Plot the Id – Vgs characteristic of nMOS transistor, on varying the value of
Vds.
Solution:
Solution:
Once we plot Id v/s Vgs graph, we can calculate transconductance gain [gm] of the nMOS from
that graph since gm is the differentiation of Id with respect to Vgs.
Any Mathematical operation can be done on the graph by right clicking on the trace
mentioned at the top of the graph.
Since we need to differentiate Id graph, click on Id(M1) and in then enter d(Id(M1)) in its place.
This essentially gives you the differentiated graph from which we can note down the
transconductance value in saturation region for the given nMOS.
Simulation Results:
Fig 1.22 Plot of gm against Vgs
Op-amp characteristics:
Solution:
a. Draw the circuit diagram of an inverting opamp as shown in the figure below. Save the
schematic as op_amp.asc.
b. Go to Heirarchy Create a new symbol. Draw the symbol as shown in figure below.
Name it as op_amp.asy.
Fig 1.24 Symbol of inverting opamp
c. Open a new schematic window and select the symbol created, by changing the top
directory.
d. Draw the circuit diagram using the symbol of the inverting opamp.
Exercise problems:
1) Draw the following characteristics for pMOS device using LTSpice and observe the
waveforms. [Hint: The voltages will be negative for a pMOS]
a. Id vs Vgs curve, by keeping Vds constant
b. Id vs Vds curve, by keeping Vgs constant
c. Id vs Vgs curve, by varying the values of Vds
d. Id vs Vds curve, by varying the values of Vgs
e. Id vs Vds curve to observe the body effect
2) Create a circuit symbol for a non-inverting op-amp using LTSpice and plot its transient
characteristics.
Experiment No. 2:
MOSFET Amplifiers
Objective:
To design Common Source, Common Drain and Common Gate MOSFET amplifiers and
analyze the performance using LTspice.
Theory:
Solution:
Circuit diagram:
Fig 2.1 Circuit diagram of CS amplifier
Design:
Output:
Solution:
Circuit diagram:
Example 2.3 In the following circuit, determine the voltage gain mathematically and verify
it using LTspice. Given specifications Vth = 0.5 V, μn C ox=100 μA /V 2, W/L = 244, λ=0.
Solution:
Circuit diagram:
Exercise problems:
1) Determine the gain of the circuit diagram in Fig 2.1, if C 1is removed.
2) Determine the gain of the circuit diagram in Fig 2.1, if C 1=100 µF and λ=0.1V-1.
Experiment No. 3:
MOSFET Current Mirror
Objective:
To design basic current mirror (with resistive load, nmos load and pmos load) and analyze the
performance using LTspice.
Theory:
Current mirror is an analog circuit that senses the reference current and generates the
copy or number of copies of the reference current, with the same characteristics. The replicated
current is as stable as the reference current source. The replicated current could be the same as
the reference current, or it could be either multiple or fraction of the reference current.
Current Mirrors are particularly useful in the integrated circuits, for biasing the
amplifiers. The advantage of biasing the amplifiers with the current source is that it provides a
high voltage gain and good biasing stability.
Example 3.1 In the following circuit, determine I D2/ID1 when (i) λ=0 and (ii) λ=0.05 V −1 ,
and verify it using LTspice.
Given specifications, μn C ox=100 μA /V 2,( )
W
=
5
L 1 0.18
, V T =0.5
W
( )
=
10
L 2 0.18
Solution:
Circuit diagram:
Exercise problems:
2
1) Repeat the circuit in Fig 3.1 when (i) λ=0 and (ii) λ=0.01 V −1, and μn C ox=100 μA /V ,
( WL ) = 0.18
1
10
, V =0.5 ( ) =
T
W
L 2
50
0.18
.
Experiment No. 4:
MOSFET Differential Amplifier
Objective:
To design a MOSFET differential amplifier with resistive load and analyze the performance
using LTspice.
Theory:
Differential amplifiers provide a high input impedance for the input terminals. A properly
designed differential amplifier with its current-mirror biasing stages is made from matched-pair
devices to minimize imbalances from one side of the differential amplifier to the other. Two
active devices are connected to a positive voltage supply via passive series elements. The
transistors must be a matched pair (i.e., two matched MOSFETs). The "pull up" loads are
similarly matched to each other. The lower terminals of the active devices are connected
together, and a dc current source pulls current down toward the negative voltage bus to effect the
bias. The controlling input ports of the devices are connected to input signals
Differential amplifiers apply gain not to one input signal but to the difference between
two input signals. This means that a differential amplifier naturally eliminates noise or
interference that is present in both input signals.
Example 4.1 In the following circuit, determine the voltage gain mathematically and verify
it using LTspice. Given specifications, Vth = 0.5 V, μn C ox=100 μA /V 2, W/L = 869, λ=0.
Solution:
Circuit diagram:
Exercise problems:
1) Repeat the circuit in Fig 4.1 with Vth = 0.5 V, μn C ox=100 μA /V 2, W/L = 869, and
−1
λ=0.01 V .
Experiment No. 5:
MOSFET Feedback Amplifier
Objective:
To design MOSFET feedback amplifier and analyze the performance using LTspice.
Theory:
The concept of feeding the output signal back to its input circuit is known as feedback
and hence the name feedback amplifier. It is dependent between the output and input with
effective control. Figure 6.1 shows voltage series feedback amplifier, where feedback circuit is
connected in shunt with the output in such a way that it decreases the output impedance and
increases the input impedance. In this circuit, it is placed in a shunt with the output but in series
with respect to the input signal.
Feedback amplifiers are divided into two types: positive feedback and negative feedback.
In the positive feedback amplifier, the input voltage or the current is in phase with the input
signal. Both the input signal and feedback introduce a phase shift of 180° and makes a 360°
resultant phase shift to be in phase with the input signal. It increases the gain of the amplifier but
also increases distortion and instability. Normally, positive feedback is not used for amplifiers.
For example, positive feedback is used to provide hysteresis for oscillators and comparators.
When any increase in the output signal results into the input in such a way as to cause the
decrease in the output signal, the amplifier is said to have negative feedback. The advantages of
providing negative feedback are that the transfer gain of the amplifier with feedback can be
stabilized against variations in the hybrid parameters of the transistor or the parameters of the
other active devices used in the circuit. The most advantage of the negative feedback is that there
is significant improvement in the frequency response and in the linearity of the operation of the
amplifier. In Voltage-Series feedback, the input impedance of the amplifier is increased and the
output impedance is decreased. Noise and distortions are reduced considerably.
Example 5.1 Design a voltage series negative feedback amplifier and analyze its transient
response and frequency response using LTspice.
Solution:
Transient response:
Output:
Exercise problems:
1) Design a voltage series positive feedback amplifier and analyze its transient response and
frequency response using LTspice.
Experiment No. 6:
MOSFET Oscillators
Objective:
To design MOSFET oscillators and analyze the performance using LTspice.
Theory:
An oscillator is used to generate a signal which has a specific frequency, and these are
useful for synchronizing the computation process in digital systems. It is an electronic circuit that
produces continuous waveforms without any input signal. The oscillator converts a dc signal into
an alternating signal form at the desired frequency. There are various types of oscillators
depending on the components which are using in the electronic circuits.
LC oscillator:
The LC oscillator is a type of tuned oscillator that uses a combination of L (Inductor) and
C (Capacitor) to provide the required positive feedback, which is essential to produce sustained
oscillations in the circuit. The sustained oscillations ensure periodic oscillations at a specific
frequency. LC oscillators reverse the voltage polarity using an inductor (L) and a capacitor (C) to
create the oscillating effect.
RC oscillator:
Schmitt trigger:
Schmitt triggers are bistable networks that are widely used to enhance the immunity of
circuits to noise and disturbances. The main difference between Schmitt triggers and
comparators lies in the DC transfer characteristics. The comparator shows only one switching
threshold, while Schmitt trigger shows different switching thresholds for positive-going and
negative-going input signals. This characteristic is called hysteresis. If the noise magnitude of the
input signal is less than the switching threshold difference, Schmitt trigger will not respond, thus
making Schmitt trigger immune to the undesired noise. The Schmitt trigger is a circuit that
converts a varying voltage into a stable logical signal (one or zero). The DC transfer
characteristic needs hysteresis to reduce the sensitivity to noise and disturbances. The hysteresis
in a Schmitt trigger offers better noise margin and noise stable operation.
Ring oscillator:
Ring oscillator is described as an odd number of inverters are connected in a series form
with positive feedback & output oscillates between two voltage levels either 1 or zero to measure
the speed of the process. These oscillators have an ‘n’ odd number of inverters. The number of
inverter stages in this oscillator mainly depends on the frequency that we want to generate from
this oscillator.
Example 6.1 Design and simulate a 5 GHz LC VCO oscillator using TSMC 180 nm in
LTspice.
Solution:
Circuit diagram:
Output:
Example 6.2 Design and simulate a RC phase shift oscillator using LTspice.
Solution:
Circuit diagram:
Solution:
Circuit diagram:
Output:
Exercise problems:
1) Design and simulate a ring oscillator circuit using LTspice (Odd number of CMOS
inverter in a loop).
Experiment No. 7:
Linear application of OP AMP
Objective:
To design and test inverting amplifier, summing amplifier and integrator using OPAMP.
Theory:
Fig. 7.1 (a): Inverting amplifier circuit (b): Inverting amplifier I/O waveforms
Design:
− Rf
Voltage gain, AV = = 10 ; Choose R =1 kΩ, then Rf =10 kΩ
R
Fig. 7.2 : Frequency Response
Procedure:
Frequency response
1. Rig up the circuit as shown in the Fig.7.1(a) with VCC = ±12V.
2. Apply 2Vp-p sinusoidal input signal of 1 kHz from AFO.
3. Observe the output waveform on the CRO and measure the Voltage gain.
4. Vary the input frequency from 100Hz to 1MHz and note down the corresponding
output voltage. Also measure the 3 dB frequency.
5. Increase the frequency in multiples of 10 and measure the roll-off rate in dB per
decade (or multiple of 2 to measure the roll-off rate in dB per octave).
6. Plot the frequency response on the semi-log graph sheet.
7. Check what happens if the input voltage is increased to 5V p-p.
Slew Rate Measurement
8. Apply square wave signal of frequency 10 kHz and peak to peak amplitude 0.5V
(such that it operates in mid-band and linear region) to the inverting amplifier shown
in Fig. 7.1(a)
9. Observe the input and output waveforms and the transitions between two levels of
square wave. The slope measured at the transitions gives slew rate of OPAMP.
10. Change the frequency of the signal and plot the input and output waveform
properly labelled.
Observations:
Vin = _________________ V.
Frequency Output Gain Gain in dB
Voltage(V
(Hz) (Vo/Vin) 20 log(Vo/Vin)
o)
Vin = _________________ V.
Circuit diagram:
Fig. 7.3: Summing amplifier circuit
Design:
V1 V2
For summing amplifier; Vout = -Rf ( +
R1 R2
Procedure:
1. Rig up the circuit as shown in Fig. 7.3. Give V 1 and V2 from two different input
sources (in lab use two dc power supplies) and measure the output.
2. Repeat for three to four sets of -/+ values and measure the output.
Observations:
Exercise problems:
Objective:
To design and implement low pass and high pass active filters and to observe the frequency
responses.
Theory:
Circuit Diagram:
Design:
Rf
Let R1 = 10 kΩ. Therefore, Av = 1 + = 2, then R2 = 10kΩ.
R1
1 1
f c= if R2=R3=R & C1 = C2 = C, then R = = 1.59kΩ
2 √ R2 R 3 C 1 C 2 2f cC
Procedure:
Design: (Check)
Rf
Let R1 = 10 kΩ. Therefore, Av = 1 + = 2, then R2 = 10kΩ.
R1
1 1
f c= if R2=R3=R & C1 = C2 = C, then R = = 1.59kΩ
2 √ R2 R 3 C 1 C 2 2f cC
Circuit Diagram:
2. Implement the circuit in Fig. 8.4 Rf = R1=10kΩ and plot the graph.
Objective:
To design and test Schmitt trigger using OPAMP.
Procedure:
3. Observe and note the input and output waveforms using CRO.
Design:
R1 − R1
V UTP = V Sat ; V LTP = V
R 1+ R 2 R1 + R2 Sat
R1 1
Hence = ; Choose R1 = 1KΩ then R2 = 1KΩ
R 1+ R 2 2
Circuit Diagram:
Fig. 9.1 (a): Inverting Schmitt Trigger circuit (b) Inverting Schmitt Trigger I/O waveform (c)
Hysteresis curve
Results:
VUTP(Theoretical) = VLTP(Theoretical) =
VUTP(Practical) = VLTP(Practical) =
Exercise problems:
1. Design an (a) inverting (b) Non inverting Schmitt trigger for the following
specifications:
a. VUTP = 5V, VLTP = −5V
b. VUTP = 7.5V, VLTP = −5V
c. VUTP = 3V, VLTP = 1V
Experiment No. 10:
555 Timer Applications
Objective:
To design Astable and Monostable multivibrators using IC 555.
Procedure:
2. Connect VCC of 5V
ASTABLE MULTIVIBRATOR
Circuit Diagram:
Fig. 10.1(a): Asymmetric Astable multivibrator, (b) Waveforms at Pin no. 3 and 2
Design:
To obtain a square wave of 0.5 kHz frequency with 66% duty cycle
1 T ON
T = =2mSec ∧ Duty Cycle= =66 %
f T
Hence TON= 1.38 mSec and TOFF = 0.69 mSec
TOFF = RBC ln2 = 0.69 mSec; Assuming, RB=10kΩ calculate C (C= 0.952 µF)
Observations:
Duty Cycle:
Result:
MONOSTABLE MULTIVIBRATOR
Circuit Diagram:
Design:
Duty Cycle:
Result:
Pulse width:
Exercise problems:
1. Design a circuit using IC 555 to generate a 3 kHz, 75% duty cycle square wave.
2. Design symmetric astable mutivibrator given in fig below.