Microelectronics Laboratory Manual
Microelectronics Laboratory Manual
net/publication/363587655
CITATIONS READS
0 1,451
1 author:
20 PUBLICATIONS 18 CITATIONS
SEE PROFILE
All content following this page was uploaded by Ara Abdulsatar Assim on 16 September 2022.
Lectured by:
Ara Abdulsatar Assim
Contact:
ara.assim@su.edu.krd
Autumn Semester
2022
Download the lectures, lab manual & books here:
https://bit.ly/3R1UBXd
https://bit.ly/3R1UBXd
Installation guide
https://www.analog.com/en/design-center/design-tools-and-
calculators/ltspice-simulator.html
2
List of Experiments
2. AC and DC Analyses....................................................................................... 13
8. Differential Amplifiers................................................................................... 44
3
Experiment (1)
Introduction to LTspice
Objectives:
Students will learn how to use the LTspice circuit simulator, including schematic
entry, selecting and running different simulation types, and how to produce
simulation output for reports. Example circuits will be simulated to demonstrate the
capabilities of LTspice.
Introduction:
LTspice is a fast, free circuit simulator. Linear Technology, Inc. originally designed it
for engineers to simulate circuits. It competes with expensive commercial products
like Electronic Workbench and PSpice. Advantages of LTspice are that circuit sizes
are unlimited, new models can be added, and the user can modify the simulator’s
behavior.
Procedure:
1. Open LTspice by clicking on this icon.
LTspice XVII
When it starts up, LTspice may ask if you would like to download an update. Do not
do that now.
4
Fig. 2. Create new schematic
Additionally, click on Waveforms, change Data trace width and Cursor width to 4,
this will make schematics look better in reports.
5
Fig. 4. Changing Data trace width and Cursor width
4. Add the element in Fig. 5., let us begin by adding an operational amplifier. Click
on the AND symbol to open the library of components. Insert “OP27” as shown
in Fig. 6.
6
Fig. 6. Inserting an element
Set the value to 1K, by right-clicking on the resistor & setting the resistance to 1K.
Add ground and connect the components using wire as shown in Fig. 9.
7
Fig. 9. Connecting the two resistors to negative pin of the op-amp
Right click on the wire, click on Label Net, name this wire OUT as in Fig. 11.
8
Fig. 12. Finding voltage source in the component library
Add wires and connect them to ground, as in Fig. 13. Right click on the voltage
source to set their values, set V1 and V2 to 15 and -15. Click OK
right click on V3 > Advanced, you will see the window in Fig. 13. Click on SINE, set
the values of DC offset, Amplitude and Frequency to 0, 1 and 10K as in Fig. 13.
9
Fig. 13. Three voltage sources
Label the voltage sources V1 & V2 to +V and -V, label the input voltage “IN” and
connect the full schematic in Fig. 14. DON’T FORGET to label the positive terminal of
the op-amp to +V and the negative terminal of the op-amp to -V.
10
After completing the circuit connection in Fig. 14, you may now start running the
simulation, click on the run symbol and set Stop time to 1 ms, then click OK.
To obtain input and output waveforms, you need to click on the wires indicated in
Fig. 17.
11
Fig. 17. Clickable wires
Report requirements:
1. Modify the circuit in this experiment into an inverting op-amp, amplify this
signal: 0.5 sin(2π. 100000t), set gain as 10.
12
Experiment (2)
AC and DC Analyses
Objectives:
Upon the completion of this experiment, students will be able to perform several
types of SPICE simulation: DC Analysis, AC Analysis, Transient Analysis (covered in
Experiment 1). This first part of this experiment is concerned with performing DC
Analysis for a CMOS inverter, while the second part is on performing AC Analysis for
an amplifier.
Introduction:
Nearly all SPICE-based simulators are capable of performing well known analysis
functions.
1. DC operating point.
2. AC small-signal frequency response
Procedure:
13
Fig. 1. nmos transistor in component library
Right click on the PMOS transistor and carefully set the specifications as illustrated
in Fig. 3:
14
Fig. 3. PMOS specifications
Right click on the NMOS transistor and carefully set the specifications as illustrated
in Fig. 4:
Add two voltage sources (VDD = 1) and (Vin = 0), then connect the circuit in Fig. 5:
15
Fig. 5. CMOS inverter (NOT gate)
Now we can run the DC analysis, click on Run , choose DC sweep, set the
specifications as in Fig. 7:
16
Fig. 7. DC operating point details
Click OK, then select Vout to plot, you should obtain a figure like the plot in Fig. 8.
Once you completed the first part of this experiment, please save the file, for the
second part of the experiment, you will need to create a new schematic, configure
the circuit provided in Fig. 9:
17
Fig. 9. Circuit diagram of the amplifier
18
Press OK, then select Vout to plot, the result is the frequency response of the
amplifier as depicted in Fig. 11:
Report requirements:
1. For the CMOS inverter, replace the DC voltage source (Vin) to Pulse signal
with these specifications, what does the output look like in time-domain?
Does the DC operating point change? Add screenshots with your answers.
2. How does an ideal amplifier’s phase response look like? Show it on Fig. 11.
19
Experiment (3)
Junction Field-Effect Transistor Characteristics
Objectives:
The students will learn how to plot transistor IV characteristics using DC sweep
analysis in LTspice.
Introduction:
Junction field effect transistors are widely used devices in electronic circuits
(amplifiers, switching circuits, oscillators, etc.), JFETs use a small voltage to control
current flow, JFETs are unipolar devices which means the current that passes
through the channel consists of either electrons (in an N-type JFET) or holes (in a P-
type JFET).
Procedure:
3. Right click on the transistor symbol then choose (Pick New JFET) as in Fig. 2.
20
Fig. 2. N-Channel JFET
21
4. Run the system , choose DC sweep, pay attention that in this experiment
there are two voltage sources. Set their specifications as shown in Fig. 5 and Fig.
6:
22
Place the mouse cursor on drain terminal of the transistor, and you will get the
output characteristics of the NJFET, as in Fig. 7:
Now you may proceed to the second part of this experiment, repeat the steps but
this time for a P-channel JFET. The steps are repeated in Fig. 8 and beyond.
23
Fig. 9. 2N5461 by Siliconix
24
Fig. 12. DC analysis specifications for 2nd source
Note how the output characteristics of the P-channel JFET differs from the N-
channel JFET, due to the different polarities.
25
Report requirements:
1. Describe the operation of JFET, add graphs and equations to support the
statements.
2. Connect the circuit in Fig. 14, run transient analysis (set Stop time as 0.12m).
Fig. 14.
Provide a screenshot of the output signal (Out), then answer the following
questions:
26
Experiment (4)
MOSFET Characteristics
Objectives:
The students will analyze MOSFET’s IV characteristics using DC sweep analysis in
LTspice.
Introduction:
MOSFET (Metal Oxide Semiconductor Field Effect Transistor) is a type of transistor,
which is widely used for switching circuits and in amplifier circuits. MOSFETs are
commonly used in integrated circuits, because they can be fabricated in a single
chip due to their exceedingly small dimensions/sizes.
Procedure:
Press OK, right click on the transistor and set the Model Name, Length and Width as
in Fig. 2:
27
Fig. 2. Transistor Model Name and Sizes
28
Run the circuit, set the DC sweep parameters in accordance with Fig. 5 and Fig. 6:
Plot the drain current (Id), your results must look exactly like the curves in Fig. 7.
29
Fig. 7. N-MOSFET IV characteristics
Now we will repeat the previous procedure for a P-MOSFET transistor, follow these
steps carefully:
Press OK, right click on the transistor and set the Model Name, Length and Width as
in Fig. 9:
30
Fig. 9. Transistor Model Name and Sizes
31
Run the circuit, set the DC sweep parameters in accordance with Fig. 12 and Fig. 13:
Plot the source current (Is), your results must look exactly like the curves in Fig. 14.
32
Fig. 14. P-MOSFET IV characteristics
Report requirements:
2. Plot drain current (Id) for the circuit in Fig. 10, how does it differ from the
graph in Fig. 14?
3. How does the drain current (Id) behave in the body-effect bias circuit in Fig.
15:
33
Experiment (5)
Common Source Amplifier
Objectives:
To understand and experiment the performance of common source amplifier
(utilizing a voltage-divider bias).
Introduction:
Common source amplifiers are the most widely used amplifiers due to their high-
performance characteristics, compared to other amplifier configurations like
common drain (source follower) and common gate. They provide a remarkably high
power gain, medium input and output resistance, medium current and voltage gain.
They are called common source because the source terminal is common between
the input and the output (the input signal is applied at the gate terminal of the
transistor and the output is taken from the drain terminal). The output of common
source amplifier is 180o out of phase with the input signal.
Procedure:
3. Right click on the transistor, pick Pick New JFET, then choose the following
transistor model 2N5434 as illustrated in Fig. 2.
34
Fig. 2. JFET transistor model
5. Set the input voltage signal (Vin) parameters in accordance with the
specifications mentioned in Fig. 4:
35
Fig. 4. JFET Common Source Amplifier
6. Run the circuit by clicking on , choose Transient, set Stop time: 10m, click
OK, then plot the input and output voltage signals.
Fig. 5. Input & output voltage signals of the JFET common source amplifier
36
Report requirements:
1. What are the advantages of common source amplifiers over common drain &
common gate amplifiers?
3. Plot the frequency response of the amplifier in this experiment (refer to the
two figures below), do not forget to set the AC Amplitude as 1.
Include the plot in your report, how much is the gain & phase shift at 10 kHz?
Fig. 6. AC Amplitude
37
Experiment (6)
Current Sources
Objectives:
To understand the working principle of current sources and implement a practical
current source circuit.
Introduction:
A current source is a circuit that supplies a constant current flow regardless of the
impedance that it is driving, the difference between an ideal and a practical current
source is illustrated below:
Procedure:
2. Assemble this circuit in Fig. 2, run transient analysis (set Stop time to 1).
38
Fig. 2. Voltage–Controlled Current Source
Change the input VS source’s voltage according to this table and record the current
across the load resistor (R_load).
Report Questions:
39
Experiment (7)
Current Mirrors
Objectives:
Students will learn how to design basic current mirrors for various applications.
Introduction:
Current mirror is a circuit that copies the current in a device and controls the
current in another device by maintaining the output current stable. Current mirrors
function as a more practical current source, they are widely used to bias currents to
circuits. They come in different forms and complexities, the simplest current mirror
circuit uses only two transistors (BJT or FET), as shown below:
Procedure:
1. Add two nmos4 transistors, mirror the transistor on the left as in Fig. 1.
40
3. Right click on each of the transistors, set their parameters as illustrated in Fig.
3.
Fig. 3.
Fig. 5. DC analysis
41
Plot drain currents of both transistors:
The second part of this experiment is about Wilson Current Mirror which is an
enhanced circuit configuration designed to provide a more constant current source.
Refer to Fig. 7, connect the circuit using the same transistors and voltage sources
(you may create copies of them).
Run this circuit with the exact same DC sweep parameters as in the first circuit, Fig.
8 depicts how the drain currents overlay each other (unlike in the previous current
mirror).
42
Fig. 8. Drain currents for Wilson Current Mirror
Report Questions:
1. What are some applications of current mirrors?
2. Why does Wilson current mirror perform better than a simple current mirror?
3. Plot collector currents (IC1 & IC2) of both BJT transistors in the current mirror
in Fig. 9, use DC sweep analysis (Vo source) from 100m to 5.
4. For the circuit in Fig. 9, plot the algebraic expression: Ic(Q2) – Ic(Q1)
43
Experiment (8)
Differential Amplifiers
Objectives:
To analyze and design simple differential amplifiers.
Introduction:
A differential amplifier (also known as a difference amplifier) is a type of amplifier
that has two inputs, it amplifies the difference between two input voltages and
rejects any common voltage value to the two inputs. The output voltage of a simple
differential amplifier can be expressed as:
Differential amplifier is one of the most widely used building blocks in analog
integrated-circuit design. It is the input stage of every Operational Amplifier. Two
simple differential amplifiers are provided below:
Procedure:
1. Add 2 pmos4 transistors and 4 nmos4 transistors.
2. Click on SPICE directive , write: .include cmos.txt as in Fig. 1:
44
3. Connect the circuit in Fig. 2:
The lower two transistors (M5 & M6) have a width of 5u instead of 2.5u:
Right click on the voltage sources Vin1 & Vin2, click (Advanced), set their
parameters as in Fig. 5 & Fig. 6:
45
Fig. 5. Input voltage (Vin1)
Run transient analysis, set Stop time (10m), plot Vin1, Vin2 & Vout as illustrated in
Fig. 7:
46
Fig. 7. Output and input voltages of the differential amplifier
Report Questions:
1. Where are differential amplifiers used?
2. Modify the input voltages, set their phases to zero, what does the output
voltage look like? Include its plot in the report.
3. Run DC sweep analysis (refer to Fig. 8) for the output voltage (Vout), include
the plot in the report.
47
Experiment (9)
Power Amplifiers
Objectives:
To study the major aspects of class C power amplifier and learn how to plot FFT of
signals in LTspice.
Introduction:
A power amplifier is an electronic amplifier designed to increase the magnitude of
power of a given input signal. The power of the input signal is increased to a level
high enough to drive loads of output devices like speakers, headphones, RF
transmitters etc. Unlike voltage and current amplifiers, a power amplifier is
designed to drive loads directly and is used as a final block in an amplifier chain.
Procedure:
48
Fig. 2. Picking the power transistor model
The resonant frequency of the given class C amplifier is determined by the inductor
(L) and capacitor’s (C) values, the parallel LC circuit is commonly known as the tank
circuit (see Fig. 4).
49
Fig. 4. The tank circuit
Class C amplifiers only amplify the signals that have a frequency equal to the
resonant frequency, they attenuate other signals having different frequencies. In
our case, the resonant frequency is equal to 5.03 KHz which is calculated by the
following formula:
1 1
𝐹𝑟 = = = 5.03 KHz
2𝜋√𝐿𝐶 2𝜋√0.001 ∗ 0.000001
Set the VCC voltage value as 30, and Vin voltage in accordance with the
specifications mentioned in Fig. 5, label the input and output pins.
Run transient analysis, set stop time as 5m, plot the input and output signals as
illustrated in Fig. 6:
50
Fig. 6. Input & amplified output signals
4. Right click on the Vin, set the frequency to 0.5 KHz, run the simulation again
to see the output, you will observe that the output is less than the input as
seen in Fig. 7, because the amplifier attenuates the signal as the frequency of
the input signal is not equal to resonant frequency (5.03 KHz).
For the part two of this experiment, add two other sine wave sources, connect them
in series, as shown in Fig. 8:
51
Fig. 8. Voltage sources in series
Run transient analysis, set stop time as 5m, plot the input and output signals as in
Fig. 9:
Fig. 9. Input signal (sum of 3 sinusoidal signal) & the amplified output signal
The output signal in Fig. 9 has a frequency of 5.03 KHz, the other two signals with
frequencies of 3 KHz and 7 KHz are omitted, this can be seen more clearly by taking
the Fast Fourier Transform (FFT) of the input and output signals, this can be done
easily by right clicking on the plot then selecting view > FFT > Click OK (see Fig. 10).
52
Fig. 10. Illustrating how to take FFT of a signal in LTspice
Fig. 11 shows the FFT of the input and the output signal, the FFT of the input signal
has 3 main beams (at 3 KHz, 5 KHz and 7 KHz), while the FFT of the output signal has
only one main beam at 5 KHz, this indicates that the class C amplifier neglects other
signals with frequencies different than the resonant frequency.
53
Report Questions:
1. What does 2N3055 transistor look like? Add its picture and explain why we
used this transistor for this experiment?
54
Experiment (10)
Operational Amplifiers
Objectives:
To study the fundamental structure of CMOS operational amplifiers.
Introduction:
An operational amplifier (op-amp) is a type of amplifier that amplifies the voltage
difference between the two input pins, op-amps usually have three terminals: two
high-impedance inputs and a low-impedance output (although some op-amps have
an additional differential output). The inverting input is denoted with a minus (-)
sign, and the non-inverting input denoted with a positive (+) sign. Operational
amplifiers have an extremely high gain, they are used in various analog circuits
including mixers, filters, sensors, buffers, etc.
Most op amps are used for voltage amplification, however there are four categories
of op-amps:
55
3. Connect the op-amp circuit in Fig. 1:
4. Carefully modify the transistors’ widths and lengths according to the circuit
diagram in Fig. 1, do not forget to connect Grounds and VDDs.
56
6. Add three DC voltage sources, label them as VDD, Bias1 and Bias2 as shown in
Fig. 3. Their values are as following:
• VB2 = 361 m
• VB1 = 543 m
• VDD = 1
8. We can also plot the frequency response of the op-amp, close the waveform,
then change the parameters of the input voltage source (Vin) as in Fig. 5.
9. Press OK.
10.Run AC analysis for the output voltage (Vout) in accordance with the
specifications mentioned in Fig. 6.
57
Fig. 5. Adjusting input voltage source for the AC analysis
58
Fig. 7. Frequency response of the op-amp
Report Requirements:
1. Calculate the voltage gain of the op-amp at 1 kHz frequency.
2. At which frequency does the op-amp has a unity gain?
3. Plot the input and output voltage signals when the input signal has the
following parameters, what do you notice?
4. Repeat the previous step for these parameters, what will the output signal
look like and why?
59
View publication stats