|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
THE 3 TO 8 DECODER
IntroductionImagine you are a mall security guard. In your office is a very important and unique public announcement (PA) phone. The phone has three dialing buttons (A, B, C) and is connected to eight different speakers, as shown in Table 1. Consequently, you get to choose which section of the mall hears your announcement based on the set of buttons you press. For example, if you press A and B and start speaking into the phone (ABC = 110), the Food Court (D6) is the only place that can hear you. However, if you press A and C (ABC = 101) then the Lady’s Room (D5) is the only place that can hear you.
Such a public announcement phone (or PA system) is an example of a 3-to-8 decoder. Since the phone has three buttons each of which can either be in one of two possible states — pressed (=1) or not pressed (= 0) — then the phone can dial eight possible different numbers (23 = 2*2*2 = 8) as shown in Table 1.
Table 1
Designing such a phone system is straightforward. We just need a switching circuit that energizes
one of the eight output lines based on the combination of the input buttons.
There is always more than one way to implement a switching circuit. And in reality which way you choose will likely depend on what chips you have available. For our part we observe that each of the functions can be implemented using NOT gates and AND gates. Therefore, building for one output at a time, we will implement our circuit. For D0 Adding D1 to D0 We build for one output at a time to allow ourselves to catch and correct errors early. We recommend that you follow the same methodology in your design projects. Adding D2 to Circuit 2 Adding D3 to Circuit 3 Adding D4 to Circuit 4 Adding D5 to Circuit 5 Adding D6 to Circuit 6 Adding D7 to Circuit 7 There will be times when you may need to decode signals in your own designs. Although pre–packaged decoders, such as this 3–to–8 decoder, may be sufficient for your need; there will be cases when they will be too expensive for one reason or another. Therefore, it is important for you to realize that in most cases decoders are just AND gates; which means if you don’t have a decoder, you can use AND gates to accomplish your end. For an illustration, see the Johnson counter. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||