Professional Documents
Culture Documents
Exp-3 Multiplexer
Exp-3 Multiplexer
Multiplexer
AIM-
To demonstrate a basic Multiplexer system, and become familiar with different types of multiplexer
and demultiplexer
**Components Needed:**
1. Breadboard
3. 4 NOT gates
6. 5 resistors
**Experiment Steps:**
- Connect each of the four data input LEDs to the inputs of the AND gate (IN0, IN1, IN2, IN3).
- Connect the outputs of the NOT gates to the inputs of the AND gate.
- In a 4x1 multiplexer, there are two control inputs (often labeled as "S0" and "S1") that determine
which data input gets selected. You can use manual switches (e.g., DIP switches) or push-button
switches for this.
- Connect control input S0 to the inputs of NOT gates for IN0 and IN2.
- Connect control input S1 to the inputs of NOT gates for IN1 and IN3.
- Connect the power supply to the VCC and GND rails on the breadboard.
5. **Testing:**
- Experiment with different combinations of control input values (S0 and S1) to select different data
inputs.
- Observe that when you change the control input values, the output LED displays the data from
the selected input.
6. **Observations:**
- The 4x1 multiplexer selects one of the four input lines based on the values of the control inputs
(S0 and S1). The selected data input is then presented at the output.
7. **Experiment Variations:**
- You can expand this experiment by using larger multiplexers (e.g., 8-to-1 or 16-to-1) or by
cascading multiple 4x1 multiplexers together.
- You can integrate this into more complex digital circuits or use it as a component in digital logic
design projects.
This experiment with a 4x1 multiplexer illustrates the concept of data selection and routing in digital
circuits. It's a fundamental building block in digital electronics and can be used in various
applications, such as data multiplexing, signal routing, and more.
Exp-4
De-Multiplexer
AIM-
To demonstrate a basic Demultiplexer system, and become familiar with different types of
multiplexer and demultiplexer
**Components Needed:**
1. Breadboard
3. 4 NOT gates
7. 5 resistors
**Experiment Steps:**
- Connect the input LED to the data input of the AND gate.
- Connect the four output LEDs to the AND gate's outputs (OUT0, OUT1, OUT2, OUT3).
- Connect the output of the NOT gate to the control input of the AND gate.
- Connect the power supply to the VCC and GND rails on the breadboard.
4. **Testing:**
- When you toggle the input switch to different positions, observe which output LED lights up.
- Depending on the position of the input switch, one of the four output LEDs should illuminate,
indicating that the input data is being forwarded to the corresponding output line.
5. **Observations:**
- The 1x4 demultiplexer takes a single input and routes it to one of the four output lines based on
the position of the control input switch.
- This experiment demonstrates how data can be selectively distributed to multiple output lines
using a demultiplexer.
6. **Experiment Variations:**
- You can expand this experiment by using larger demultiplexers (e.g., 1x8 or 1x16) or by cascading
multiple 1x4 demultiplexers together.
- You can integrate this into more complex digital circuits or use it as a component in digital logic
design projects.
This experiment with a 1x4 demultiplexer illustrates the concept of data demultiplexing in digital
circuits. It's a fundamental building block in digital electronics and can be used in various
applications, such as data distribution, signal routing, and more.
Exp-5
4-Bit Comparator
A 4-bit comparator is a digital circuit that compares two 4-bit binary numbers and determines their
relationship (greater than, equal to, or less than). You can experiment with a 4-bit comparator using
basic electronic components and logic gates. Here's a simplified experiment to build a 4-bit binary
comparator:
**Components Needed:**
1. Breadboard
**Experiment Steps:**
- Connect the 8 input switches (4 for each binary number) to the XOR gates.
- Connect two switches to each XOR gate, representing the corresponding bits of the two 4-bit
binary numbers.
- Connect the NOT gates to the unused inputs of the XOR gates (invert one set of inputs).
- Set the input switches to represent two 4-bit binary numbers that you want to compare.
7. **Testing:**
- Observe the LED outputs to determine the relationship between the two binary numbers:
- If all the LEDs are OFF, it indicates that the two binary numbers are equal.
- If any of the LEDs are ON, it indicates that the two binary numbers are not equal.
8. **Observations:**
- The 4-bit comparator circuit compares the two 4-bit binary numbers and provides an output
indicating whether they are equal or not.
9. **Experiment Variations:**
- You can expand this experiment by creating more complex comparators, such as 8-bit or 16-bit
comparators.
- You can also incorporate additional logic to compare numbers for greater than or less than
relationships.
This basic experiment with a 4-bit comparator introduces the concept of comparing binary numbers
using digital logic gates. It's a fundamental building block in digital electronics and can be used in
various applications, such as in microcontrollers, arithmetic units, and more.