![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is Binary Decoder?
A binary decoder is a decoder that has an n-bit binary input code and one activated output which is chosen from output codes. This decoder is accessible in instances where it is important to simulate directly one of the outputs based on an n-bit input value. In a 2 to 4 decoder, 2 inputs are decoded into four outputs, each output describing one of the min-terms of the 2 input variables. The two inverters support the complement of the inputs and each one of the four AND gates creates one of the min-terms.
The diagram shows the circuit diagram of a 2 to 4 Decoder.
The truth table for a 2 x 4 Decoder which are as follows −
Inputs | Outputs | |||||
---|---|---|---|---|---|---|
EN | A | B | Y3 | Y2 | Y1 | Y0 |
0 | X | X | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 1 | 0 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 0 | 0 | 0 |
1 | 1 | 1 | 1 | 0 | 0 | 0 |
3 to 8 Decoder
The 74x138 is a 3 to 8 decoder. It can receive three binary inputs, such as A, B, and C and it supports eight single active low outputs (Y0-Y7) when allowed. The device has three allowed inputs, such as two active low and one active high.
The diagram shows a 3 to 8 decoder.
The diagram demonstrates the circuit diagram of a 3 to 8 decoder.
The table shows the truth table of a 3 to 8 decoder.
A | B | C | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
---|---|---|---|---|---|---|---|---|---|---|
0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |