2x4 Decoder
2x4 Decoder
2:4 Decoder
The name “Decoder” means to translate or decode coded information from one
format into another, so a digital decoder transforms a set of digital input signals
into an equivalent decimal code at its output
The 2-to-4 line binary decoder depicted above consists of an array of four AND
gates. The 2 binary inputs labelled A and B are decoded into one of 4 outputs,
hence the description of 2-to-4 binary decoder. Each output represents one of
the minterms of the 2 input variables, (each output = a minterm).
Truth Table:
A B Q3 Q2 Q1 Q0
0 0 0 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 0 0 0
Therefore, whichever output line is “HIGH” identifies the binary code present at
the input, in other words it “decodes” the binary input.Some binary decoders
have an additional input pin labelled “Enable” that controls the outputs from the
device.
This extra input allows the decoders outputs to be turned “ON” or “OFF” as
required. Output is only generated when the Enable input has value 1;
otherwise, all outputs are 0. Only a small change in the implementation is
required: the Enable input is fed into the AND gates which produce the outputs.
If Enable is 0, all AND gates are supplied with one of the inputs as 0 and hence
no output is produced. When Enable is 1, the AND gates get one of the inputs as
1, and now the output depends upon the remaining inputs. Hence the output of
the decoder is dependent on whether the Enable is high or low.
2:4 line decoder using CMOS logic:
AND Schematic
NOT Schematic
2:4 Decoder Schematic
Test Circuit
Results:
Rise time: Rise time is the time taken for a signal to transition from a low
voltage level (usually 10% of its maximum value) to a high voltage level
(usually 90% of its maximum value).
Fall time: Fall time is the time taken for a signal to transition from a high
voltage level (usually 90% of its maximum value) to a low voltage level
(usually 10% of its maximum value).
In both CMOS and pseudo-NMOS logic, the rise and fall times are very close,
often differing by less than 0.5 ps. This demonstrates that both types of logic
can be designed to have similar transition times under controlled conditions.