Professional Documents
Culture Documents
Module 44 Decoders PROF PDF
Module 44 Decoders PROF PDF
Module 44
Module 44 - Decoders 1
Prepared by: fscjr.
Introduction
A decoder is a digital circuit that detects the presence of a
specified combination of bits (code) on its inputs and indicates
the presence of that code by a specified output level.
Module 43-Comparators 2
Prepared by: fscjr.
Learning Objectives
After completing this module, the learners
should be able to:
1. Define decoder
Module 43-Comparators 3
Prepared by: fscjr.
Learning Objectives cont’d
Module 43-Comparators 4
Prepared by: fscjr.
The Basic Binary Decoder
Module 43-Comparators 5
Prepared by: fscjr.
The Basic Binary Decoder cont’d
EXAMPLE 6–8
Module 43-Comparators 6
Prepared by: fscjr.
The 3-Bit Decoder with active HIGH output
Module 43-Comparators 7
Prepared by: fscjr.
The 4-Bit Decoder
Module 43-Comparators 8
Prepared by: fscjr.
The 4-Bit Decoder cont’d
Module 43-Comparators 9
Prepared by: fscjr.
The 4-Bit Decoder cont’d
Module 43-Comparators 10
Prepared by: fscjr.
The 4-Bit Decoder cont’d
Module 43-Comparators 11
Prepared by: fscjr.
IMPLEMENTATION: 1-OF-16 DECODER
Fixed-Function Device
The 74HC154 is a good example of a fixed-function IC decoder.
A LOW level on each chip select input, CS1’ and CS2’, is required in order to
make the enable gate output (EN) HIGH.
The enable gate output is connected to an input of each NAND gate in the
decoder, so it must be HIGH for the NAND gates to be enabled.
If the enable gate is not activated by a LOW on both inputs, then all sixteen
decoder outputs (OUT) will be HIGH regardless of the states of the four input
variables, A0, A1, A2, and A3.
Module 43-Comparators 12
Prepared by: fscjr.
IMPLEMENTATION: 1-OF-16 DECODER cont’d
Module 43-Comparators 13
Prepared by: fscjr.
IMPLEMENTATION: 1-OF-16 DECODER cont’d
Module 43-Comparators 14
Prepared by: fscjr.
IMPLEMENTATION: 1-OF-16 DECODER cont’d
The following VHDL program code uses the data flow approach.
Module 43-Comparators 15
Prepared by: fscjr.
IMPLEMENTATION: 1-OF-16 DECODER cont’d
Module 43-Comparators 16
Prepared by: fscjr.
IMPLEMENTATION: 1-OF-16 DECODER cont’d
EXAMPLE 6–9
Module 43-Comparators 17
Prepared by: fscjr.
IMPLEMENTATION: 1-OF-16 DECODER cont’d
Module 43-Comparators 18
Prepared by: fscjr.
The BCD-to-Decimal Decoder
It is frequently referred as a 4-
line-to-10-line decoder or a 1-
of-10 decoder.
Module 43-Comparators 19
Prepared by: fscjr.
The BCD-to-Decimal Decoder cont’d
Fixed-Function Device
Module 43-Comparators 20
Prepared by: fscjr.
The BCD-to-Decimal Decoder cont’d
Using the data flow approach, the VHDL program code for the 1-of-16
decoder can be simplified to implement the BCD-to-decimal decoder.
Module 43-Comparators 21
Prepared by: fscjr.
The BCD-to-Decimal Decoder cont’d
Module 43-Comparators 22
Prepared by: fscjr.
The BCD-to-Decimal Decoder cont’d
EXAMPLE 6–10
If the input waveforms in Figure 6–32(a) are applied to the inputs of the
74HC42, show the output waveforms.
Module 43-Comparators 23
Prepared by: fscjr.
The BCD-to-Decimal Decoder
EXAMPLE 6–10
Module 43-Comparators 24
Prepared by: fscjr.
IMPLEMENTATION:
BCD-TO-7-SEGMENT DECODER/DRIVER cont’d
Fixed-Function Device
Module 43-Comparators 25
Prepared by: fscjr.
IMPLEMENTATION:
BCD-TO-7-SEGMENT DECODER/DRIVER cont’d
Module 43-Comparators 26
Prepared by: fscjr.
IMPLEMENTATION:
BCD-TO-7-SEGMENT DECODER/DRIVER cont’d
Module 43-Comparators 27
Prepared by: fscjr.
IMPLEMENTATION:
BCD-TO-7-SEGMENT DECODER/DRIVER cont’d
Module 43-Comparators 28
Prepared by: fscjr.
Mastery Exercises
1. A 3-line-to-8-line decoder can be used for octal-to-decimal decoding.
When a binary 101 is on the inputs, which output line is activated?
Module 43-Comparators 29
Prepared by: fscjr.