This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
university:courses:electronics:electronics-lab-30 [20 Dec 2013 16:39] – created Doug Mercer | university:courses:electronics:electronics-lab-30 [14 Jun 2022 14:12] (current) – [Background:] Doug Mercer | ||
---|---|---|---|
Line 11: | Line 11: | ||
To construct the logic functions in this lab activity you will be using the CD4007 CMOS array and | To construct the logic functions in this lab activity you will be using the CD4007 CMOS array and | ||
- | discrete NMOS and PMOS transistors (ZVN2110A NMOS and ZVP2110A PMOS) from the Analog Parts Kit. The | + | discrete NMOS and PMOS transistors (ZVN2110A NMOS and ZVP2110A PMOS) from the ADALP2000 |
CD4007 consists of 3 pairs of complimentary MOSFETs, as shown in figure 1. Each pair shares a common | CD4007 consists of 3 pairs of complimentary MOSFETs, as shown in figure 1. Each pair shares a common | ||
gate (pins 6,3,10). The substrates of all PMOSFETs are common (positive supply pin 14), as well as those | gate (pins 6,3,10). The substrates of all PMOSFETs are common (positive supply pin 14), as well as those | ||
Line 19: | Line 19: | ||
terminal of the PMOS on pin 12. | terminal of the PMOS on pin 12. | ||
- | {{ : | + | {{ : |
<WRAP centeralign> | <WRAP centeralign> | ||
Line 44: | Line 44: | ||
=====Materials: | =====Materials: | ||
- | + | ADALM2000 Active Learning Module\\ | |
- | Analog Discovery Instrument\\ | + | |
Solder-less Breadboard \\ | Solder-less Breadboard \\ | ||
1 CD4007 ( CMOS array)\\ | 1 CD4007 ( CMOS array)\\ | ||
Line 61: | Line 60: | ||
Build the XOR/XNOR circuit shown in figure 3 on your solder-less breadboard. Use the CD4007 CMOS array | Build the XOR/XNOR circuit shown in figure 3 on your solder-less breadboard. Use the CD4007 CMOS array | ||
for devices M< | for devices M< | ||
- | M< | + | M< |
your circuit. | your circuit. | ||
Line 76: | Line 75: | ||
used to monitor the inputs and outputs of the circuit as needed. The fixed +5 V power supply is to be | used to monitor the inputs and outputs of the circuit as needed. The fixed +5 V power supply is to be | ||
used to power your circuit. The fixed -5V supply should be disabled during this Lab. | used to power your circuit. The fixed -5V supply should be disabled during this Lab. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
=====Procedure: | =====Procedure: | ||
Line 86: | Line 89: | ||
First apply logic Low to A by opening the AWG control screen and setting AWG1 to 0 V DC. Apply logic low | First apply logic Low to A by opening the AWG control screen and setting AWG1 to 0 V DC. Apply logic low | ||
to the B input by setting AWG2 to 0 V DC. | to the B input by setting AWG2 to 0 V DC. | ||
+ | |||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
Observe the output C of the gate on scope Channel 1. A steady DC voltage should appear on the scope | Observe the output C of the gate on scope Channel 1. A steady DC voltage should appear on the scope | ||
Line 101: | Line 107: | ||
needed. | needed. | ||
- | Now configure both AWG channels as square waves with 2.5 V amplitudes and 2.5 V offsets ( 0 to 5 V | + | Now configure both AWG channels as square waves with 5 V amplitudes |
swings). Set AWG1 to a frequency of 1 KHz and AWG2 to a frequency of 2 KHz or twice AWG1. Be sure to set | swings). Set AWG1 to a frequency of 1 KHz and AWG2 to a frequency of 2 KHz or twice AWG1. Be sure to set | ||
the AWGs to run synchronously. | the AWGs to run synchronously. | ||
Line 148: | Line 154: | ||
{{ : | {{ : | ||
- | + | <WRAP centeralign> | |
- | <WRAP centeralign> | + | |
=====Hardware Setup:===== | =====Hardware Setup:===== | ||
- | Configure both AWG channels as square waves with 2.5 V amplitudes and 2.5 V offsets ( 0 to 5 V swings). | + | Configure both AWG channels as square waves with 5 V amplitudes |
- | Set both AWG1 and AWG2 to a frequency of 10 KHz. Also be sure to start with the phase of both AWG1 and | + | Set both AWG1 and AWG2 to a frequency of 1 KHz. Also be sure to start with the phase of both AWG1 and |
AWG2 set to 0°. Be sure to set the AWGs to run synchronously. | AWG2 set to 0°. Be sure to set the AWGs to run synchronously. | ||
+ | |||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
=====Procedure: | =====Procedure: | ||
Line 164: | Line 172: | ||
AWG 2 to the values listed in the table and record the DC voltage you observe at the output of the phase | AWG 2 to the values listed in the table and record the DC voltage you observe at the output of the phase | ||
detector. | detector. | ||
+ | |||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
^AWG1 Phase^AWG2 Phase^Output Voltage^ | ^AWG1 Phase^AWG2 Phase^Output Voltage^ | ||
Line 176: | Line 187: | ||
Table 2 Phase detector output vs phase | Table 2 Phase detector output vs phase | ||
- | Manually sweeping the phase of AWG 2 with respect to AWG1 and be tedious and time consuming. A link to a | ||
- | short Python 2.7 program is provided below. The program steps the phase of AWG2 in one degree increments | ||
- | from 0 to 360 and plots the DC voltage measured on scope channel 1. When using the program be sure that | ||
- | AWG1 is connected to the A input and AWG2 is connected to the B input and scope channel 1 is connected | ||
- | to the filtered output. The program can also data log the measured voltages to a file by clicking on the | ||
- | Start Data Log check box before starting a sweep. | ||
- | Figure 5 below is a screen shot of the phase sweep program. | ||
- | |||
- | {{ : | ||
- | |||
- | <WRAP centeralign> | ||
- | |||
- | Python phase sweep {{: | ||
=====Questions: | =====Questions: | ||
Line 202: | Line 200: | ||
as a 74HC04 or CD4049. The CD4066 quad SPST switch could also serve as an alternative to the switches | as a 74HC04 or CD4049. The CD4066 quad SPST switch could also serve as an alternative to the switches | ||
built from the CD4007. | built from the CD4007. | ||
+ | |||
+ | <WRAP round download> | ||
+ | **Resources: | ||
+ | * Fritzing files: [[downgit> | ||
+ | * Ltspice files: [[downgit> | ||
+ | </ | ||
**For Further Reading:** | **For Further Reading:** |