[17/11/23] Sist.Dig :: Simulação do codificador 4x2 e decodificador 2x4 no tinkercad
Table of Contents
Introduction
In this tutorial, we will simulate a 4x2 encoder and a 2x4 decoder using Tinkercad. These combinational circuits are fundamental in digital electronics, allowing us to understand data encoding and decoding processes. By the end of this guide, you will have a clear understanding of how these circuits function and how to implement them in Tinkercad.
Step 1: Setting Up Tinkercad
- Visit the Tinkercad website and log in to your account or create a new account if you don’t have one.
- Start a new circuit project by selecting "Circuits" from the dashboard.
- Click on "Create new circuit" to open the circuit editor.
Step 2: Building the 4x2 Encoder
-
Add Components
- Drag and drop the following components into the workspace:
- 4 input switches (representing the 4 input bits).
- 2 output LEDs (representing the 2 output bits).
- 1 logic gate (AND or OR) if needed for the design.
- Drag and drop the following components into the workspace:
-
Connect Inputs
- Connect the four input switches (let's label them A0, A1, A2, A3) to the encoder circuit.
- Make sure that each switch is properly connected to the power supply (VCC) and ground (GND).
-
Configure Outputs
- Connect the outputs of the encoder to the LEDs.
- The output should represent the binary value of the active input switch. For example:
- If switch A0 is on, the output should be (0,0).
- If switch A1 is on, the output should be (0,1).
- If switch A2 is on, the output should be (1,0).
- If switch A3 is on, the output should be (1,1).
-
Test the Encoder
- Simulate the circuit by flipping the input switches.
- Observe the LED outputs to ensure they correspond to the correct binary values.
Step 3: Building the 2x4 Decoder
-
Add Components
- In the same Tinkercad project, add the necessary components for the decoder:
- 2 input switches (representing the 2 output bits).
- 4 output LEDs (representing the 4 output lines).
- In the same Tinkercad project, add the necessary components for the decoder:
-
Connect Inputs
- Connect the two input switches (let's label them B0 and B1) to the decoder circuit.
- Ensure each switch is connected to the power supply and ground.
-
Configure Outputs
- Connect the outputs of the decoder to the four LEDs.
- Configure the connections so that:
- If input (0,0) is selected, only LED 1 lights up.
- If input (0,1) is selected, only LED 2 lights up.
- If input (1,0) is selected, only LED 3 lights up.
- If input (1,1) is selected, only LED 4 lights up.
-
Test the Decoder
- Run the simulation and toggle the input switches.
- Confirm that the correct LED lights up based on the binary input.
Conclusion
In this tutorial, we successfully simulated a 4x2 encoder and a 2x4 decoder in Tinkercad. You learned how to set up the circuit components, connect them appropriately, and test their functionalities. These basic circuits are essential for understanding more complex digital systems.
For further exploration, consider experimenting with additional logic gates to enhance your circuit designs or simulate other encoder-decoder configurations. Happy tinkering!