


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



ECE65, Winter 2008
Lab 6, Logic Gates
Note: In this Lab we use CD4007 chip that consists of 3 pairs of complementary n- channel and p-channel MOSFETs. One pair is internally wired as a CMOS inverter. The pin arrangement for the chip is shown below. You need to power the chip by attaching a 5 V supply to pin 14 (VDD = 5 V) and grounding pin 7. Note that by grounding pin 7, all MOSFET “bodies” are connected to the lowest voltage in the circuit, 0 V. You can assume Vt = 1.4 V for your calculations.
2
1 3
14
10 9 8
4 5 6 7
11
12 13 6 10
(^14 )
7 4
11
(^13312) 8
1 5
9
Experiment 1: BJT Inverter:
Circuit Analysis: a) Consider the BJT inverter circuit below. Assume β = 200. Compute values of vo for vi = 0, and 5 V. Find the threshold value for vi when BJT would leave the cut-off region (i.e., the range of vi that input to BJT gate is LOW, VIL)
b) Modify the circuit such that VIL is increased to 1.4 V.
PSpice simulation: Set up your circuit with a 2N3904 transistor. Use DC sweep mode to generate a plot of vo as a function of vi for vi ranging from 0 to 5 V. Compare your circuit analysis of part a with the transfer function you have obtained from PSpice.
5V
v i
vo
330
20k Ω
Ω
Lab Exercise: Set up the circuit on the protoboard using a 2N3904 transistor. Set up the function generator to produce a triangular wave with a peak-to-peak amplitude of 5 V and a DC offset of 2.5 V (the input voltage changes between 0 and 5 V). Attach scope channel A to the input and channel B to the output of the gate. Set the scope display to XY mode. You should see the transfer characteristics of the inverter circuit on the scope display.
a) Make a hard copy of the transfer function and on the hard copy, draw vi and vo axes and label and mark the voltage scales. Identify regions in which BJT is in cut-off, active, and saturation.
b) Repeat the above experiments with the modified circuit you designed in part b of circuit analysis. Generate the transfer function of the gate as in part a above. Explain your observations.
Experiment 2: NMOS Inverter
Consider the NMOS inverter circuit below with VDD = 5 V and RD = 2.2 kΩ.
Circuit Analysis: Compute values of vo for vi = 0, 2.5, and 5 V assuming K = 0.6 mA/V^2.
Lab Exercise: For this experiment use the NMOS inverter that is attached to pins 6, 7, and 8. Assemble the circuit on the protoboard. Set up the function generator to produce a triangular wave with a peak-to-peak amplitude of 5 V and a DC offset of 2.5 V similar to experiment 1. Attach scope channel A to the input and channel B to the output of the gate. Set the scope display to XY mode. You should see the transfer characteristics of the inverter circuit on the scope display.
a) Make a hard copy of the transfer function and on the hard copy, draw vi and vo axes and label and mark the voltage scales. Identify regions in which MOS is in cut-off, ohmic, and active regions.
b) Measure vo for vi = 2.5 and 5 V. In each case, solve the MOS circuit and find the value of the parameter K.
V Vi
o
V
D
DD
R
Experiment 3: CMOS NOR Gate
Circuit Analysis: Show that the circuit below acts as a NOR gate.
Lab Exercise: For this experiment use the CMOS inverter that is attached to pins 9 through 12 and MOS transistors with the gate connected to pin 6. Draw the circuit diagram NOR gate in your lab report and identify chip pins on the circuit diagram and explain which pins should be connected together. Wire your chip to make a two-input NOR gate. Test your NOR gate with attaching a 1 kHz square wave (0-5 V) to pin 6 and a DC voltage of either zero or 5 V to pin 10. In each case, attached the waveform to the lab report. Describe the output waveform in each case and explain how it corresponds to the NOR of the two inputs, using a truth table format.
v 1 iD
iD
iD
iD
vo
M 1
M 2
v 2
M 4
M 3
V DD