Chapter 1. - Decoders
|Next Page of this Chapter|
This chapter continues the course from where the previous course finished. Multiplexors were covered, here is the next step; Decoders.
What are Decoders, and how can we use them ?
Decoders are simply a collection of logic gates which are arranged in a specific way so as to breakdown any combination of inputs to a set of terms that are all set to '0' apart from one term. Therefore when one input changes, two output terms will change. Note that these terms are "minterms", remembering that minterms use a variable once, and once only.
Lets say we have N inputs to a decoder, the number of outputs will be equal to 2^N. Thus there will be one line at the output for each possible input.
In this example we will learn how a basic decoder works. A two to four
line decoder is of the form, two inputs and four outputs. The Flash
animation below shows how the inputs are decoded at each stage.
This diagram shows how a two to four line decoder works with a logic '1,0' on the input.
So now we have the base logic diagram to show how a decoder makes use
of simple logic to produce min terms of its input variables.
The truth table for the considered example can be shown as follows.
Due to the way many logic IC's are made, it is ofter cheaper to purchase inverted decoders. These decoders use NAND gates instead of the AND gates we have seen in the decoder_1 example. In these cases the output to an inverted 2-4 line decoder would be like this:
It is worthy to note that decoders that are commonly available are
2-4 line, 3-8 line, and 4-10 line decoders. This has probably been made
clear in your course notes.
Example Decoder 2
To help get a decent understanding of how decoders work, you will find that a program called LabVIEW is available in the Electrical Engineering department. The link below is a LabVIEW demonstration that you can control. If nothing else, this demonstration will get you a little more familiar with the environment of LabVIEW for other examples later in the course.
Using LabVIEW, open the following file to see an example of a 2 to 4 line decoder.
For a quick tutorial on LabVIEW. Visit this page.