Presentation is loading. Please wait.

Presentation is loading. Please wait.

5.4 Decoders ReturnNext A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and.

Similar presentations


Presentation on theme: "5.4 Decoders ReturnNext A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and."— Presentation transcript:

1 5.4 Decoders ReturnNext A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes are different. The input code generally has fewer bits than the output code, and there is one-to-one mapping from input code words into output code words. input code word output code word enable inputs map Decoder

2 5.4 Decoders Binary decoder  The most common decoder circuit is an n -to- 2 n decoder or binary decoder. Such a decoder has an n -bit binary input code and a 1-out-of- 2 n output code. Truth table for a 2-to-4 binary decoder InputsOutputs EN I1 I0Y3 Y2 Y1 Y0 0 X X to-4 Decoder I0 Y0 I1 Y1 Y2 EN Y3 NextBackReturn ”don’t-care” notation

3 5.4 Decoders NextBackReturn Simulation

4 Logic Symbols for Lager-Scale Elements  The most basic rule is that logic symbols are drawn with inputs on the left and outputs on the right. The top and bottom edges of a logic symbol are not normally used for signal connections. However, explicit power and ground connections are sometimes shown at the top and bottom, especially if these connections are made on “ nonstandard ” pins. 5.4 Decoders  It is not necessary to use all of the outputs of a decoder, or even to decode all possible input combinations, e.g. a decimal or BCD decoder. NextBackReturn

5 5.4 Decoders  We use an inversion bubble to indicate an active- low pin and the absence of a bubble to indicate an active-high pin. NextBackReturn 1/2 74X139 G Y0 Y1 A Y2 B Y3  Active-high pins are given the same name as the internal signal, while active-low pins have the internal signal name with an overbar. internal signal external pin

6 The 74x139 Dual 2-to-4 Decoder 5.4 Decoders NextBackReturn X X Y3 Y2 Y1 Y0G B A OutputsInputs Truth table for one-half of a 74x139 dual 2-to-4 decoder 1G 1Y0 1Y1 1A 1Y2 1B 1Y3 2G 2Y0 2Y1 2A 2Y2 2B 2Y3 74X ( Logic diagram see P355 Figure 5-35 )

7 The 74x138 3-to-8 Decoder 5.4 Decoders NextBackReturn ( Logic diagram see P358 Figure 5-37) X X X X X X 1 X X X X X X 1 X X X Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 G1 G2A G2B C B A OutputsInputs

8 5.4 Decoders NextBackReturn  The equation for the internal output signal Y5:  The equation for the external output signal Y5: Active-low  It has three enable inputs, G1, G2A, G2B, all of which must be asserted for the selected output to be asserted.

9  Traditional logic symbol of the 74x Decoders NextBackReturn 1 6 G1 Y0 G2A Y1 G2B Y2 Y3 Y4 A Y5 B Y6 C Y7 74X

10 Cascading Binary Decoders 5.4 Decoders  The top decoder (U1) is enabled when N3 is 0, and the bottom one (U2) is enabled when N3 is 1. NextBackReturn

11  Logic diagram for a 74x49 seven- segment decoder(See P373 figure ) Seven-Segment Decoders 5.4 Decoders  Seven-segment display normally uses light-emitting diodes(LEDs) or liquid-crystal display(LCD) elements. 5 4 a BI b c A d B e C f D g 74X a b c d e f g  A seven-segment decoder has 4- bit BCD as its input code and the “ seven-segment code ”  Truth table for a 74x49 seven- segment decoder(See P374 table 5-21) BackReturn


Download ppt "5.4 Decoders ReturnNext A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and."

Similar presentations


Ads by Google