☖ Home Units Converter Geometry Σ Math Physics Electricity

2 input decoder - example 1

2 inputs selector
1 0 0 0
Truth table for 2 inputs selector are:

A0A1D0D1D2D3
001000
100100
010010
110001
For each combination of A0 and A1 only one of the options of Di will get the value of 1. In general

2   input bits decoder has   22 = 4  output lines.

3   input bits decoder has   23 = 8  output lines.

n   input bits decoder has   2n  output lines.

3 to 8 decoder - example 2

0 0 0 1
2 inputs selector
1 0 0 0 0 0 0 0
Truth table for 3 inputs decoder:

ABCENs0s1s2s3s4s5s6s7
XXX000000000
000110000000
001101000000
010100100000
011100010000
100100001000
101100000100
110100000010
111100000001
The 3 inputs decoder has 8 outputs possibilities, it means that for any input combination of A, B and C only one different output exists (s0 to s7). Generally, decoders are provided with enable input (EN) so as to activate the decoded output based on the inputs. The decoder can be widely used in many fields, for example 4 inputs can be used to represent the decimal digits zero to nine.

1 to 2 decoder (simple switch) - example 3

0
2 inputs selector
0 1
Truth table:

As0s1
001
110
This kind of circuits can be used for turning on and off processes for example to activate a pump to fill a container, if it has a full gage indicator than it turns off and another process can be activated.
0 1
2 inputs selector
1 0
Truth table:

AENs0s1
X000
0110
1110
This circuit is the same as the previous one but we added an input EN that turns all the outputs to zero no matter what the input is. this can represent an emergency stop for all processes.