6
Page 1 of 6 MOSFET Logic Revised: October 31, 2017 ECE2274 Pre-Lab for MOSFET logic LTspice NAND Gate, NOR Gate, and CMOS Inverter 1. NMOS NAND Gate Use Vdd = 9.0Vdc. For the NMOS NAND gate shown below gate, using the 2N7000 MOSFET LTspice model such that Vto = 2.0. The input logic “1” = 9 volt and ground as a logic “0”. Make a truth table showing the four possible combinations of Vin1 and Vin2 and the outputs. Choose Rd (drain current limit resistor) such that the drain currents of the NMOS devices will be about 30mA when the Vout is in a low state. Then run a DC .OP Bias Point simulation (use the added 2N7000 model in LTspice) on your design with the four possible input combinations for Vin1 and Vin2 to verify your gate. Observe the output voltage value for each input combination. Print your circuit schematic showing voltages for all four input combination. Nmos NAND GATE 2. NMOS NOR Gate Use Vdd = 9.0Vdc. Design an NMOS NOR gate using the 2N7000 MOSFET the model has Vto = 2.0 . Limit the drain current total to 30mA with a drain resistor (Rd). Show all work for your design and drawing. Then simulate your design in LTspice with DC .OP Bias Point simulations as you did for the NAND gate. Print out your circuit schematic showing voltages for all four input combination add from the view menu node voltage and drian current to display on the schematic. Also, fill in the truth table with all of the DC .OP Bias Point simulation voltage values. Vin1 Vin2 Vdd Rd Q1 Q2 Vout NMOS NMOS S D S D G G

NAND Gate, NOR Gate, and CMOS Inverter G 1. NMOS … · Pre-Lab for MOSFET logic LTspice ... NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before

Embed Size (px)

Citation preview

Page 1: NAND Gate, NOR Gate, and CMOS Inverter G 1. NMOS … · Pre-Lab for MOSFET logic LTspice ... NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before

Page 1 of 6 MOSFET Logic Revised: October 31, 2017

ECE2274 Pre-Lab for MOSFET logic LTspice

NAND Gate, NOR Gate, and CMOS Inverter 1. NMOS NAND Gate Use Vdd = 9.0Vdc. For the NMOS NAND gate shown below gate, using the 2N7000 MOSFET LTspice model such that Vto = 2.0. The input logic “1” = 9 volt and ground as a logic “0”. Make a truth table showing the four possible combinations of Vin1 and Vin2 and the outputs. Choose Rd (drain current limit resistor) such that the drain currents of the NMOS devices will be about 30mA when the Vout is in a low state. Then run a DC .OP Bias Point simulation (use the added 2N7000 model in LTspice) on your design with the four possible input combinations for Vin1 and Vin2 to verify your gate. Observe the output voltage value for each input combination. Print your circuit schematic showing voltages for all four input combination.

Nmos NAND GATE 2. NMOS NOR Gate Use Vdd = 9.0Vdc. Design an NMOS NOR gate using the 2N7000 MOSFET the model has Vto = 2.0 . Limit the drain current total to 30mA with a drain resistor (Rd). Show all work for your design and drawing. Then simulate your design in LTspice with DC .OP Bias Point simulations as you did for the NAND gate. Print out your circuit schematic showing voltages for all four input combination add from the view menu node voltage and drian current to display on the schematic. Also, fill in the truth table with all of the DC .OP Bias Point simulation voltage values.

Vin1

Vin2

Vdd

Rd

Q1

Q2

Vout

NMOS

NMOS

S

D

S

D

G

G

Page 2: NAND Gate, NOR Gate, and CMOS Inverter G 1. NMOS … · Pre-Lab for MOSFET logic LTspice ... NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before

Page 2 of 6 MOSFET Logic Revised: October 31, 2017

3. CMOS Inverter Use VDD = 9.0Vdc. Design a CMOS inverter using a NMOS and PMOS FET. The drain current will be limited by the two external 100Ω source resistors (RSnmos, RSpmos). The MOSFETs that we use in the lab both have a VGS threshold voltage of about 2.0Vand internal resistance is RS = 0.2Ω. Assume that there is a input voltage level 2.0V < Vin < VDD – 2.0V that will turn on both FETs at the same time. This will cause a large current flow that could damage the two devices. Because there is period of time when both devices on we will use a 1kHz triangle waveform as input so the time the devise send in a high current state will short in LTspice. (Triangle Wave) Use LTspice to plot the input triangle waveform (PULSE) 0 to 9v, output voltage waveform, and the current thru the devices. (DC sweep) Plot CMOS Transfer characteristic curve use DC sweep Vin from 0V to 9V. Plot Vout vs Vin mark on plot VOH , VOL , VIL and VIH.

VDD 9Vdc

Vin (Triangle Wave) set PULSE 1kHz amplitude 0v to 9v Triangle wave PULSE 0V, 9V Tr=0.5ms Tf=0.5ms Tper=1ms, Td=0, Ton =1ns

Vin (DC Sweep) 0V to 9V 200mv step

Q1 PMOS LTspice (TP0606) Lab (TP0606)

Q2 NMOS LTspice (2N7000) Lab (2N7000)

LTspice TP0606 PMOS Vto=-2 volts

Internal resistance RS =0.2 ohms

LTspice 2N7000 NMOS Vto = 2 volts

Internal resistance RS = 0.2 ohms

Page 3: NAND Gate, NOR Gate, and CMOS Inverter G 1. NMOS … · Pre-Lab for MOSFET logic LTspice ... NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before

Page 3 of 6 MOSFET Logic Revised: October 31, 2017

CMOS inverter for LTspice

Cmos Transfer characteristic curve. Required Attachments: NAND Truth table Four schematics with voltages and currents of nodes and branches NOR Truth table Four schematics with voltages and currents of nodes and branches 5. Cmos Transfer characteristic curve (Triangle Wave), (DC sweep) 2 plots

M1 TP0606

M2 2N7000

RSpmos 100

RSnmos 100

Rload 10k

Rser=50

Vin

0

Vdd

9V

Rin

10k

Vin

Vo

ut

.include 2N7000.sub

.include TP0606.sub

.dc Vin 0 9 .1

Page 4: NAND Gate, NOR Gate, and CMOS Inverter G 1. NMOS … · Pre-Lab for MOSFET logic LTspice ... NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before

Page 4 of 6 MOSFET Logic Revised: October 31, 2017

Laboratory Exercise MOSFET logic

NAND GATE, NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before build your experiment.

Set curve trace to N-FET, Is Max = 10ma, Vds max =10V, Vg/step = 0.1V, Offset = 1.8V,

Rload = 10, N Steps = 10

2. You must test your TP0606 PMOS with the curve tracer before build your experiment.

Set curve trace to P-FET, Is Max = 10ma, Vds max =10V, Vg/step = 0.1V, Offset = - 1.8V,

Rload = 10, N Steps = 10

3. Build the NAND gate. Measure the output voltage levels with 10k load resistor connected to ground. You will use the voltmeter to verify the NAND gate’s operation. Try all of the input combinations. 4. Build the NOR gate that you designed in the Pre-Lab. Use VDD = 9.0Vdc Again, use an 10k load resistor connected to ground to determine the output states. Verify the truth table for a NOR gate. 5. Build CMOS Inverter with both the external 100Ω source resistors to limit the current. DC sweep the input from 0V to 9V in 200mv steps to plot the Cmos inverter (10k load resistor) transfer characteristic curve, print the plot and mark the VOH, VOL, VIL and VIH

Page 5: NAND Gate, NOR Gate, and CMOS Inverter G 1. NMOS … · Pre-Lab for MOSFET logic LTspice ... NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before

Page 5 of 6 MOSFET Logic Revised: October 31, 2017

DATA SHEET MOSFET logic DATA SHEET

Name: ____________________________ Name: _________________________

Instructor: __________________________ Class day and time: __________________

Date: ______________________ Bench number: __________________

NAND GATE, NOR GATE, and COMS Inverter

1. NAND GATE static test. Vdd = 9Vdc

Vin1 Vin2 Vout

0Vdc 0Vdc

0Vdc 9Vdc

9Vdc 0Vdc

9Vdc 9Vdc

2. NOR GATE static test. Vdd = 9Vdc

Vin1 Vin2 Vout

0Vdc 0Vdc

0Vdc 9Vdc

9Vdc 0Vdc

9Vdc 9Vdc

Page 6: NAND Gate, NOR Gate, and CMOS Inverter G 1. NMOS … · Pre-Lab for MOSFET logic LTspice ... NOR GATE, and CMOS inverter 1. You must test your 2N7000 NMOS with the curve tracer before

Page 6 of 6 MOSFET Logic Revised: October 31, 2017

3. CMOS Inverter

VoutVin

NMOS

PMOS

D

S

D

SG

G

VDD

Q1

Q2

100

Shunt and

current

limit

100

current

limit

10K

Rin

10K

Rload

Table CMOS inverter static test. Vdd = 9Vdc

Vin Vout

0v

9v

From DC sweep of CMOS inverter Vout to Vin Mark on plot, include the plot.

Name Voltage

VOH

VOL

VIL

VIH