Electronics Area
Tutorials Community Calendar Diagrams Articles Downloads Links
Register
Username:
Password:
Save Password Forgot your password?
Menu
- Active topics (0)
- New Articles (0)
- New Downloads (0)
- Private messages
- My Bookmarks
- Site Statistics
- PM Pager

Members: 35
Active Users:
0 Members and 5 Guests

Top 5 Downloads
Circuit Magic
(Hits: 35)
Symbolic circuits analysis software to simulate AC...
Electronics Assistant
(Hits: 29)
Electronics Assistant is a program that performs e...
Free PCB
(Hits: 27)
FreePCB is a free, open-source printed circuit boa...
TinyCAD
(Hits: 21)
TinyCAD is a program to help you draw circuit diag...
ExpressPCB for Windows Vista
(Hits: 12)
The ExpressPCB schematic and PCB design software i...

Decoder. Digital Electronics

Decoder

Before reading this tutorial, it is recommended first to read the following tutorials: Combinational Circuits, Sequential Circuits and binary numbering system.

The decoder is a device that accepts a digital input (in binary form) and it activates one of its outputs.

This device has several outputs, and the one that is activated is chosen by the code applied to the inputs.

We can obtain 2n possible combinations with an n-bit code. If you have a 3-bit code (3 inputs), it will be 8 (23) possible combinations.

One particular code combination will only activate one output.

2 to 4 decoder - Electronics Area

For example: To activate the Q2 output we should place a binary number 2 (102) at the inputs of the decoder

In a 2 to 4 decoder (2 inputs and 4 outputs), we can put one input binary code (00, 01, 10, 11) and it will activate only one of the four possible outputs. (Q0, Q1, Q2 Q3)

On the picture there is a representation of a 2 to 4 decoder

Looking at the picture above we can see that the E input is an active low input and all the Q are active low outputs

This means that when A0 = 0 and A1 = 0, we are choosing the Q0 output, and it (Q0) will be on "low" voltage level, while all other outputs (Q1, Q2 and Q3) will be on "high"voltage level.

In the same way, when the E input is on "low" level, the decoder is enabled. When the E input is on "high" level the decoder is disabled and no input on pins A0 and A1 will take effect. See the truth table.

Decoder truth table

2 to 4 decoder truth table - Electronics Area

There are also 3 to 8 decoders (3 inputs and 8 outputs), 4 to 16 decoders (4 inputs and 16 outputs), and so on.

Notes:
- X means that the input can be anything (don't care)
- 1 = H = High, 0 = L = Low


Related links
Logic Circuit
AND gate
Logic Levels
BCD code
Analog and Digital. What´s the difference?
Sponsors




Decoder

The Hunger Site

The Rainforest Site



Set as your default homepage Add favorite Privacy   © 2008-9 ElectronicsArea.com All Rights Reserved MaxWebPortal Snitz Forums Go To Top Of Page