EEC 3111 - D E C S: Igital Lectronics in Ommunication Ystems
EEC 3111 - D E C S: Igital Lectronics in Ommunication Ystems
C OMMUNICATION S YSTEMS
1 D ECODERS
2 E NCODERS
D ECODERS
It is a logic circuit that accepts a set of inputs that represents a binary number
and activates only the output that corresponds to that input.
There are N inputs and M outputs. Inputs can be 0 or 1, So, there are 2N
possible input combinations or codes. For each of these input combinations,
only one of the M outputs will be active (HIGH); all the other outputs are LOW.
Many decoders are designed to produce active-LOW outputs, where only the
selected output is LOW while all others are HIGH. This is indicated by presence
of small circles (bubbles) on the output lines.
D ECODERS
T HE 74ALS138 DECODER
Some decoders have one or more enable inputs used to control the operation of the
decoder. Decoder is enabled only if ENABLE is HIGH. With common ENABLE line
connected to a fourth input of each gate.
E XAMPLE
Figure below shows how four 74ALS138s and an INVERTER can be arranged to
function as a 1-of-32 decoder. The decoders are labeled Z1 to Z4 , and eight outputs
from each one are combined into 32 outputs. A five-bit input code A4 A3 A2 A1 A0 will
activate only one of these 32 outputs for each of the 32 possible input codes.
Which output will be activated for A4 A3 A2 A1 A0 = 01101?
What range of input codes will activate the Z4 chip?
S OLUTION
1 One of the simplest and most popular methods for displaying numerical digits.
2 It uses a 7-segment configuration to form the decimal characters 0 through 9
and sometimes the hex characters A through F. It uses LED for each segment.
3 By controlling current through each LED, some segments will be turned ON and
emit light while others will be OFF so desired character pattern will be generated.
1 7-segment decoder take a four-bit BCD input and provide outputs that will pass
current through appropriate segments to display the decimal digit.
2 Logic circuit for this decoder is more complicated previous decoders.
3 LEDs are solid-state devices. It allow current to flow one direction and block it
other direction. Whenever anode of an LED is more positive than cathode by
approximately 2 V, the LED will light up. Anodes of LEDs are all tied to
VCC = 1.5V (Common anode)
4 The cathodes of the LEDs are connected through current-limiting resistors to the
appropriate outputs of the decoder (Active low).
5 The 7446/7447 decoder are designed to activate specific segments even for
non-BCD input codes (greater than 1001).
6 As each segment requires 10:20 mA of current to light it, TTL & CMOS devices
are normally not used to drive common-cathode directly.
7 TTL & CMOS are not able to source large amounts of current. A transistor
interface circuit is used between decoder chips and common-cathode display.
E NCODERS
1 It has M input and only one of them is activated at a given time, and produces an
N bit output code, depending on which input is activated.
2 Example: Octal-to-binary encoder (8-line-to-3-line encoder)- accepts eight input
lines and produces a three-bit output code corresponding to the activated input.
E NCODERS
Logic circuit for an octal-to-binary encoder. For proper operation, only one
input should be active at one time.
M ULTIPLEXER (MUX)
1 Home stereo system may have a switch that
selects music from 1 of 4 sources:
- MP3 player,
- television tuner,
- radio tuner,
- audio from a DVD.
2 Then sends it to the power amplifier and
speakers.
3 Digital MUX: is a logic circuit that accepts
several digital inputs and selects one of them
at any given time and pass it to the output.
4 Like a digitally controlled multi-position switch
where digital code applied to SELECT inputs
(known as ADDRESS) controls which data
inputs will be switched to output.
The logic function can be very easily changed by simply changing the 1s and
0s on the MUX inputs. as a programmable logic device (PLD).