Chapter 4: Table of Contents. Decoders

Similar documents
Experiment (6) 2- to 4 Decoder. Figure 8.1 Block Diagram of 2-to-4 Decoder 0 X X

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

gate symbols will appear in schematic Dierent of a circuit. Standard gate symbols have been diagram Figures 5-3 and 5-4 show standard shapes introduce

Combinational Logic Design

Encoders and Decoders: Details and Design Issues

ECE Lab 5. MSI Circuits - Four-Bit Adder/Subtractor with Decimal Output

Logic Symbols with Truth Tables

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

PHYS 3322 Modern Laboratory Methods I Digital Devices

(Refer Slide Time: 1:45)

Physics 217A LAB 4 Spring 2016 Shift Registers Tri-State Bus. Part I

Physics 323. Experiment # 10 - Digital Circuits

ME 515 Mechatronics. Introduction to Digital Electronics

Lab #6: Combinational Circuits Design

Logic Symbols with Truth Tables INVERTER A B NAND A B C NOR C A B A B C XNOR A B C A B Digital Logic 1

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

ENGG2410: Digital Design Lab 5: Modular Designs and Hierarchy Using VHDL

Digital Circuits ECS 371

Microcontrollers and Interfacing week 7 exercises

MODULE 3. Combinational & Sequential logic

ELEC 204 Digital System Design LABORATORY MANUAL

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

9 Programmable Logic Devices

ระบบคอมพ วเตอร และการเช อมโยง Computer Systems and Interfacing บทท 1 พ นฐานด จ ตอล

Analogue Versus Digital [5 M]

WINTER 15 EXAMINATION Model Answer

Digital Electronic Circuits Design & Laboratory Guideline

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

EE 210. LOGIC DESIGN LAB.

UNIVERSITI TEKNOLOGI MALAYSIA

Chapter 3: Sequential Logic Systems

2 The Essentials of Binary Arithmetic

Contents Circuits... 1

Reaction Game Kit MitchElectronics 2019

Palestine Technical College. Engineering Professions Department. EEE Digital Logic Fundamentals. Experiment 2.

Computer Systems Architecture

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Chapter 9 MSI Logic Circuits

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

TYPICAL QUESTIONS & ANSWERS

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

1. Convert the decimal number to binary, octal, and hexadecimal.

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

Decade Counters Mod-5 counter: Decade Counter:

Part (A) Controlling 7-Segment Displays with Pushbuttons. Part (B) Controlling 7-Segment Displays with the PIC

Computer Architecture and Organization

NAND/NOR Implementation of Logic Functions

Digital Circuits I and II Nov. 17, 1999

University of Illinois at Urbana-Champaign

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Data Sheet. Electronic displays

EECS 140 Laboratory Exercise 7 PLD Programming

Laboratory 10. Required Components: Objectives. Introduction. Digital Circuits - Logic and Latching (modified from lab text by Alciatore)

Operating Manual Ver.1.1

Musical Concepts. Chameleon PC-1T. Circuit Description

Review : 2 Release Date : 2019 Last Amendment : 2013 Course Code : SKEE 2742 Procedure Number : PK-UTM-FKE-(0)-10

Principles of Computer Architecture. Appendix A: Digital Logic

ZLNB101 DUAL POLARISATION SWITCH TWIN LNB MULTIPLEX CONTROLLER ISSUE 1- JANUARY 2001 DEVICE DESCRIPTION FEATURES APPLICATIONS

FUNCTIONS OF COMBINATIONAL LOGIC

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

DepartmentofElectronicEngineering NEDUniversity ofengineering &Technology LABORATORY WORKBOOK DIGITAL LOGIC DESIGN (TC-201)

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

WINTER 14 EXAMINATION

EET 1131 Lab #10 Latches and Flip-Flops

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

Laboratory 7. Lab 7. Digital Circuits - Logic and Latching

Logic Design Viva Question Bank Compiled By Channveer Patil

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Notes on Digital Circuits

Light Emitting Diodes and Digital Circuits I

EEE130 Digital Electronics I Lecture #1_2. Dr. Shahrel A. Suandi

OFC & VLSI SIMULATION LAB MANUAL

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 2200

Light Emitting Diodes and Digital Circuits I

ECE 2274 Pre-Lab for Experiment Timer Chip

Department of Electrical Engineering University of Hail Ha il - Saudi Arabia

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Asynchronous counters

CSE221- Logic Design, Spring 2003

Assignment 2b. ASSIGNMENT 2b. due at the start of class, Wednesday Sept 25.

THE KENYA POLYTECHNIC

Altera s Max+plus II Tutorial

Chapter 11 State Machine Design

Digital Logic Design: An Overview & Number Systems

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

AIM: To study and verify the truth table of logic gates

Lab 17: Building a 4-Digit 7-Segment LED Decoder

Engineering College. Electrical Engineering Department. Digital Electronics Lab

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

EXPERIMENT #6 DIGITAL BASICS

VikiLABS. a g. c dp. Working with 7-segment displays. 1 Single digit displays. July 14, 2017

Notes on Digital Circuits

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

Light Emitting Diodes and Digital Circuits I

Transcription:

0/26/20 OF 7 Chapter 4: Table of Contents Decoders Table of Contents Modular Combinational Logic - Decoders... 2 The generic decoder... 2 The 7439 decoder... 3 The decoder specification sheet... 4 decoder with active High outputs... 8 Negative Logic Solution... 8 The 3/8 decoder... 9 The 4/6 decoder... Decoder Case Study #2: Implementing a Binary dder with a Decoder... 6

0/26/20 2 OF 7 Modular Combinational Logic - Decoders The Generic Decoder decoder is a min-term generator with each output corresponding to a single min-term. They are generally used S S 0 for code conversions (binary to decimal), data routing, or equation creation. They are also referred to as line decoders due to the fact that the user can activate an output line by specifying a control word. The generic discrete 2/4 decoder in the figure to the right has active high inputs and outputs. Each output (or minterm) in the circuit is produced by ND ing the specified control signals S, S, S, or 0 0 S, which results in a unique output. It should be noted that there is absolutely NO way that Generic 2/4 m 0 m m 2 m 3 Decoder more than one output can be active at the same time. The terminology 2/4 indicates that two inputs decode into four outputs. s stated earlier, a decoder will LWYS have ONE and ONLY ONE CTIVE output at a time. Normally, you will have two 2:4 Decoders on a single 4 pin chip. s is demonstrated in the circuit below, by combining the outputs with OR gates you can create unique SOP equations. It should be obvious to the student that the fewer the number of chips it takes to produce a logic expression: the lower real-estate on the printed circuit board, the lower power dissipation, the lower the manufacturing costs, fewer chips means higher reliability.

0/26/20 3 OF 7 Generic Example: In the example circuit to the right, a generic 2-4 decoder chip has one of its decoders being used to create two separate switching expressions. B 2 2B I I D D m 0 m m 2 m 3 m 0 m m 2 m 3 V cc,b 0,2 f = m,b 2,3 f = m Gnd Thus far, we have only discussed generic decoders with active high inputs/outputs. There are several popular decoders on the market which utilize active high and/or active low inputs and outputs. One such device is the 7439 as discussed next. The 7439 decoder The 7439 is an excellent example of a dual 2/4 decoder chip. It features: ctive High Inputs ctive Low Outputs ctive Low Enable Input s can be seen in the circuit to the right, the enable, (G), goes to one input on each of the NND gates. There is no way that anything except a high can be seen at the outputs unless this enable input is ctive, (0). Therefore, if the device is disabled, all outputs go high since they are active low outputs. If they were active high outputs, they would go low when disabled. G Enable msb Select Inputs lsb B 2G Enable Note the additional inverter in the select inputs Select shown in the diagram: Inputs lsb Question: What does it do? 2B (3) nswer: It improves the fan-in. To the outside world, it looks like one gate Gnd (8) vice three gates, which is what would be seen without the inverter. msb 2 (#) pin numbers () (2) (3) (5) (4) (6) (4) (5) (6) (7) (2) () (0) (9) V cc m 0 m m 2 m 3 2m 0 2m 2m 2 2m 3

0/26/20 4 OF 7 The Decoder Specification sheet Now let s examine a few entries on the 7439 specification sheet to the right. Note the difference between the maximum supply voltage and the recommended supply voltage. This tends to be fairly standard with TTL devices. The table also indicates that a HIGH is 2v or greater LOW is <.8v (High-Level Input Voltage) (Low-Level Input Voltage) The high and low output currents are also given. However, as long as you don t exceed the fan-out, you don t have to worry about these items. There is one other item which is very important. The Short Circuit Output Current - No more than one output should be shorted or you could exceed this number. gain, this should not come as a surprise that if you SHORT outputs together that they will at the very least be degraded.

0/26/20 5 OF 7 2/4 Decoder Examples Example 4-4a Let s take a look at a decoder with active low outputs: Example 4-4a B I D m 0 m m 2 m 3 Multisim Implementation of Example 4-4a

0/26/20 6 OF 7 Example 4-4b f, B m * m NND 2 m m m m2 2 m, 2 m 0 I f,b = m,2 D m B m 2 m 3 MultiSim implementation of 4-4b The Word Generator is programmed as before. Note that this time the Chip Enable has been tied to Bit - 2 of the Word Generator which is always 0 in this example. Thus, it acts the same as tying the input to ground.

0/26/20 7 OF 7 Example 4-4c Note that we can achieve the same results as the last example if we use a ND gate vice a NND gate but we need to attach to outputs 0 and 3 instead. B I D m 0 m m 2 m 3 f, B m,2 MultiSim implementation of 4-4c

0/26/20 8 OF 7 decoder with active High outputs Now let s look at a decoder with ctive High Outputs compared with one with ctive Low Outputs. The circuit above demonstrates that we can ND the CTIVE LOW outputs that are not in our min-term list and get the desired min-term list. Note the difference in this circuit and the one on the previous page. The circuit below has CTIVE HIGH outputs. Note that we can use the more obvious OR gate for the solution. B I D m 0 m m 2,B,2 f = m m 3 Negative Logic Solution CTIVE LOW outputs sometimes give people trouble. Let s look at the same thing now but use negative logic to help clear up the situation. m 0 I f D m,b = m,2 B m 2 m 3 Remember that an SOP expression is a SUMMTION of individual min-terms. lso remember that when we combine positive and negative logic, we can cancel out MTCHED Bubbles. So, if the matched bubbles are canceled we can see that we really do have: f, B m, 2. Unfortunately, MultiSim doesn t have Negative logic gates. This is just a method of analyzing the circuit so that it means something.

0/26/20 9 OF 7 The 3/8 decoder Now, let s demonstrate how we can use two 2/4 decoders to build a single 3/8 decoder. This conversion is performed with the addition of an inverter to the circuit. s can be seen below, when one device is active, the other will be inactive. If we make the input to the Enable s the MSB of the input control word, we now have three inputs decoded to eight outputs. 2 D 7 I 0 D 6 0 D 0 D 5 I E D 0 0 D 4 This decoder is designed such that the bottom decoder is ctive for 0 to 3 and the top decoder is active for 4 to 7. 0 Two 2:4 decoders 0 0 equate to One 3:8 decoder. 0 0 D E 0 0 0 Note: For this example, the enables are CTIVE HIGH. MultiSim Example of building a 3/8 decoder

0/26/20 0 OF 7 Note that so far we have had active low output displays for active low outputs. The following is an example of how we can cause the display to display active high when we have active low outputs. When the Bar graph was placed in the circuit, it was flipped horizontally so that the cathode and anode were switched. Then the anode was attached to V cc vice ground. Multisim Example: Making ctive Low look like ctive High MultiSim realization of a 7438 (using Busses) In this example the chip is enabled until the last 3 program steps.

0/26/20 OF 7 The 4/6 decoder Let s take a look at an even larger decoder. We can create a 4/6 decoder using five 2/4 decoders. D5 = D4 = 0 In the figure, a fifth decoder is used to select which of the four other decoders is active. I E I E D D D3 = 0 D2 = 00 D = 0 D0 = 00 D9 = 00 D8 = 000 E I E D D7 = 0 D6 = 00 I E D D5 = 00 D4 = 000 I E D D3 = 00 D2 = 000 D = 000 D0 = 0000 MultiSim Realization of a 5 chip 4/6 decoder In the example below, remember that the outputs have been inverted to appear like they are active high by reversing the LED s at the output and tying them to V cc vice ground.

0/26/20 2 OF 7 The 7454 4/6 decoder The 7454 is an example of a popular off-the-shelf 4/6 decoder. It features active high inputs and active low outputs, with two active low enable inputs. Question: While the 7454 is a very popular decoder chip, what are the advantages to using the five 2/4 decoders option instead? nswer: The 4/6 Decoder chip is a 24 pin dip with a 0.6" center vice the 0.3" center for the 2/4 decoder 6 pin dip. If the 4/6 decoder chip was the only 24 pin chip on the PC board, the price of the completed board might be cheaper if the designer chose to use the 0.3" center devices instead. (msb) B C D (lsb) G G 2 7 4 5 4 0 2 3 4 5 6 7 8 9 0 2 3 4 5 Let s look at the same example, but this time we used mixed logic to see if it makes the resulting expressions any clearer. Remember that in mixed logic, if you can match bubbles, the bubbles cancel out. w x y z (msb) B C D (lsb) G G 2 7 4 5 4 0 2 3 4 5 6 7 8 9 0 2 3 4 5 f w,x,y,z = m,2,3,5,7 2 3 f w,x,y,z = M 4,5,7 4 f w,x,y,z = m,2,3,5,7,9,,3,5 f w,x,y,z = m 9,,3,5

0/26/20 3 OF 7 MultiSim Example of a 4 to 6 decoder implementation

0/26/20 4 OF 7 Decoder Case Study #: BCD to Decimal Decoder Of course, we have already designed a BCD to Decimal Decoder out of gates with the use of K- maps and Don t Cares in a previous chapter. But we could use just a 7454 4:6 decoder to do the same job. Since the BCD numbers are equivalent to decimal numbers from 0-9, all we have to do is use the 7454 and ignore the outputs 0-5. This may be more expensive than using the cheaper gates but it might save money in the long run due to: cheaper construction cost and lower real estate taken up on the PC board. nd don t forget that the output of the 7454 is negative logic so you would have to take that into account. a f e g d b c

0/26/20 5 OF 7 Multisim Implementation of a BCD to Decimal Decoder (Note that the 7-segment display is a common cathode or CK type. In order for it to work in Multisim it SOMETIMES has to have the CK input grounded thru a 75 ohm resistor.)

0/26/20 6 OF 7 Decoder Case Study #2: Implementing a Binary dder with a Decoder Contemporary pproach The truth table for a full adder is as follows: BC i 00 0 0 0 3 2 0 4 5 7 6 S BC o BCi BCi B Ci BC i 00 0 0 0 3 2 0 C o i 4 5 7 6 B C BC B Ci ( B B ) B C B i BC i B So Ci Co Half dder Half dder

0/26/20 7 OF 7 Decoder pproach From the Full dder table on the previous page, we can derive the following min-term lists: S (, B, C ) o C (, BC, ) o i i m m, 2, 4, 7 3,5,6,7 Note that we used the negative logic NND gates to view this representation. We used a total of 2 chips to implement this circuit while the contemporary method used 3 chips ( XOR, ND, OR). B C i 0 0 I 2 I G G 2 G 2B 7 4 3 8 D D 4 D 5 D 6 D 7 S O C O