Code Converters, Multiplexers and Demultiplexers

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

Encoders Three-state devices Multiplexers
Logic Circuits Design presented by Amr Al-Awamry
Princess Sumaya University
Modular Combinational Logic
Digital Logic Design Week 7 Encoders, Decoders, Multiplexers, Demuxes.
Number Systems and Codes
Logical Design.
Overview Part 2 – Combinational Logic Functions and functional blocks
Functions and Functional Blocks
Henry Hexmoor1 C hapter 4 Henry Hexmoor-- SIUC Rudimentary Logic functions: Value fixing Transferring Inverting.
Chapter 3 Basic Logic Gates 1.
Exclusive-OR and Exclusive-NOR Gates
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Code Converters, Multiplexers and Demultiplexers
Overview Part 2 – Combinational Logic
CHAPTER 1 Digital Concepts
CHAPTER 6 Functions of Combinational Logic
Counter Circuits and VHDL State Machines
EET 1131 Unit 8 Code Converters, Multiplexers, and Demultiplexers
Arithmetic Operations and Circuits
MSI Logic Circuits Wen-Hung Liao, Ph.D.. Objectives Analyze and use decoders and encoders in various types of circuit applications. Compare the advantages.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 2 –
COMBINATIONAL CIRCUITS USING TTL 74XX ICS
1 Chapter 6 Functions of Combinational Logic. 2 Figure 6--1 Logic symbol for a half-adder Adder.
Figure 6–1 Logic symbol for a half-adder. Open file F06-01 to verify operation. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education,
Chapter 7 Arithmetic Operations and Circuits Hexadecimal Arithmetic 4 binary bits represent a single hexadecimal digit Addition –Add the digits.
Logic Gates Combinational Circuits
Introductory Digital Concepts
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
Programmable Logic Controllers
Chapter 9 – MSI Logic Circuits Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved.
CS 151: Digital Design Chapter 3 3-8: Encoding. CS 151 Encoding Encoding - the opposite of decoding - the conversion of a maximum of 2 n input code to.
Combinational Logic Design
9 MSI Logic Circuits Some of digital system operations: Decoding and encoding; multiplexing; demultiplexing; comparison; code converting; data busing.
Combinational and Sequential Logic Circuits.
Decoders.
Digital Logic Operations and Functions. Basic Logic Operations Logic, as you know it, involves in a making of digital system. Logic, as you know it, involves.
Functions of Combinational Logic
Documentation Standards Circuit specification. –Description of what the system is supposed to do, including a description of all inputs and outputs and.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
1 Lecture #7 EGR 277 – Digital Logic Reading Assignment: Chapter 4 in Digital Design, 3 rd Edition by Mano Chapter 4 – Combinational Logic Circuits A)
ENG241 Digital Design Week #4 Combinational Logic Design.
1 Combinational Logic Design Digital Computer Logic Kashif Bashir
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Code Converters, Multiplexers and Demultiplexers
Counter Circuits and VHDL State Machines
EKT 124 / 3 DIGITAL ELEKTRONIC 1
MECH1500 Chapter 3.
Magnitude Comparator Dr. Ahmed Telba.
Principles & Applications
1 Multiplexers (Data Selectors) A multiplexer (MUX) is a device that allows several low-speed signals to be sent over one high-speed output line. “Select.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #8 FUNCTIONS OF COMBINATIONAL LOGIC (ENCODER & DECODER, MUX & DEMUX)
ECE 2110: Introduction to Digital Systems Chapter 6 Review.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
Digital Electronics Principles & Applications Fifth Edition Chapter 2 Numbers We Use in Digital Electronics ©1999 Glencoe/McGraw-Hill Roger L. Tokheim.
Decoders A decoder is a logic circuit that detects the presence of a specific combination of bits at its input. Two simple decoders that detect the presence.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
EGR 2131 Unit 6 Combinational Building Blocks
Chapter 3 Combinational Logic Design II
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Digital Design Jeff Kautzer Univ Wis Milw.
Combinational Circuits
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
Advanced Digital design
Programmable Logic Devices: CPLDs and FPGAs with VHDL Design
FIGURE 4.1 Block diagram of combinational circuit
Multiplexers Anindya IE CSE.
Digital System Design Combinational Logic
Presentation transcript:

Code Converters, Multiplexers and Demultiplexers Chapter 8 Code Converters, Multiplexers and Demultiplexers 1

Objectives You should be able to: Use an IC magnitude comparator to perform binary comparisons. Describe the function of a decoder and an encoder. Design the internal circuitry for encoding and decoding. Use manufacturers’ data sheets to determine operation of IC decoder and encoder chips. 2

Objectives (Continued) Explain the procedure involved in binary, BCD, and Gray code conversion. Explain the operation of code converter circuits built with SSI and MSI ICs. Describe the function and uses of multiplexers and demultiplexers. Design circuits that employ multiplexer and demultiplexer ICs. 3

Comparators Compare two binary strings or words Digital comparator Compare bit-by-bit Outputs a 1 if they are exactly equal Using exclusive-NOR gates is easiest 4

Comparators Evaluating two 4-bit numbers 5

Comparators Magnitude Comparators 7485 TTL 4-bit comparator A = B 6

Comparators (Continued) 7485 TTL 4-bit comparator logic symbols 6

Comparators Magnitude comparison of two 8-bit strings 7

VHDL Comparator using IF-THEN-ELSE

PROCESS Flowchart

8-bit Comparator Simulation

Decoding Process of converting some code (binary, BCD, or hex) to a single output 4-bit BCD decoder Comprised of a combination of logic gates 8

Decoding 3-Bit Binary-to-Octal Decoder Truth Tables 9

Decoding Complete Octal Decoder (active LOW outputs) 10

Decoding Octal Decoder Decoder ICs Also known as 1-of-8 decoder Also known as 3-line-to-8-line decoder Decoder ICs 11

Decoding Octal Decoder IC 74138 pin configuration and logic symbol. 12

Octal Decoder IC Decoding 74138 logic diagram and function table 13

Decoding 7442 BCD-to-DEC Decoder IC 1-of-10 decoder pin configuration and logic symbol 14

Decoding 7442 BCD-to-DEC Decoder IC 1-of-10 decoder logic diagram and function table 15

Decoding 74154 Hexadecimal Decoder IC 1-of-16 Decoder pin configuration and logic symbol 16

Decoding 74154 Hexadecimal Decoder IC 1-of-16 Decoder logic diagram and function table 17

Decoders in VHDL More flexible than fixed-function 7400-series ICs Can be customized to meet specific needs.

VHDL Octal Decoder Boolean Equations and Block Diagram

VHDL Octal Decoder Implemented with Vectors

VHDL Octal Decoder With Enable Input

VHDL Octal Decoder IF-THEN-ELSE and CASE Statements

VHDL Octal Decoder Simulation with Enable Control

Encoding Opposite process from decoding Used to generate a coded output from a singular active numeric input line. 18

Encoding Octal-to-binary and decimal-to-BCD encoders 19

Encoding A truth table can be used to design encoders using combinational logic. 20

Encoding A basic decimal-to-BCD encoder 21

Encoding 74147 Decimal-to-BCD Encoder Inputs and outputs are Active-LOW Note bubbles on logic symbols Priority encoder - highest input has priority 22

Encoding 74147 Decimal-to-BCD Encoder logic symbol and function table 23

Encoding 74148 Octal-to-Binary Encoder Eight active-low inputs Three active-low outputs Priority encoder 24

Encoding 74148 Octal-to-Binary Encoder logic symbol and function table 25

VHDL Octal Priority Encoder VHDL listing and block symbol file

VHDL Octal Priority Encoder Octal encoder simulated waveforms

Discussion Point Explain the difference between an encoder and a decoder. How does a priority encoder determine which input to encode if more than one is active? 26

Code Converters Convert a coded input into another form BCD-to binary is a good example Computer program (software) MSI integrated circuits (hardware) 27

Code Converters Software BCD-to-Binary conversion Must develop an algorithm Weighting factor of 10 28

Code Converters 74184 BCD-to-Binary Converter logic symbol Hardware approach 29

Code Converters Six-bit BCD-to-Binary Converter using 74184 30

Code Converters BCD-to-binary for two BCD decades 31

Code Converters BCD-to-binary for three BCD decades 32

Code Converters 6 bit binary-to-BCD and 8 bit binary-to-BCD converters 33

Code Converters BCD-to-Seven Segment Converters 4-bit BCD into a 7-bit code to drive display segments Useful in calculators and any application that requires a 7 segment display. The 7447 is a commonly used IC 34

Code Converters Gray Code is used to indicate the angular position of a rotating machine. Varies by only 1 bit from one entry to the next 35

Code Converters Gray Code 36

Code Converters Conversion between binary and Gray code using exclusive-OR gates 37

Multiplexers Funneling several data lines into a single one for transmission to another point Data select control determines which input is transmitted 38

Multiplexers S0 and S1 determine which data is transmitted 39

Multiplexers Logic diagram for a four-line multiplexer Figure 8-31 40

Multiplexers Some popular TTL and CMOS multiplexers 40

Multiplexers 74151 Eight-Line Multiplexer logic symbol Note 3 data select inputs for 8 inputs (23 = 8) 41

Multiplexers 74151 Eight-Line Multiplexer logic diagram 42

Multiplexers Provide Combination Logic Functions Multiplexers can be used to implement combinational logic circuits. A multiplexer can replace several SSI logic gates 43

VHDL 4-Line Multiplexer Program listing and block symbol file 43

VHDL 4-Line Multiplexer Simulated waveforms 43

Demultiplexers Opposite procedure from multiplexing Data distributor Single data input routed to one of several outputs 45

Demultiplexers In this simulation file, the D waveform is routed to the Y outputs as determined by the data select inputs (S0 and S1). 45

Demultiplexers 74139 Dual 4-line Demultiplexer logic symbol and logic diagram 46

Demultiplexers 74139 connected to route an input signal to the 2a output 47

Demultiplexers 74154 4-line-to16-line hexadecimal decoder Used as a 16 line demultiplexer Connected to route a signal to the 5 output 48

Demultiplexers Analog Multiplexer/Demultiplexer 4051, 4052, 4053 CMOS devices High-speed CMOS also available (74HCT4051) Function as either device since inputs and outputs are bidirectional Analog since outputs can be any value between positive and negative supplies (not just 0 and 1) 49

Demultiplexers 4051 CMOS analog multiplexer /demultiplexer 50

System Design Application The 74138 as a memory address decoder 51

System Design Application The 74148 used to encode an active alarm 52

Serial Data Multiplexing for a Microcontroller One serial receive line One serial transmit line 74HCT151 is the multiplexer 74HCT238 is the demultiplexer HCT versions used to match the microcontroller`s speed 53

54

74HCT4051 Staircase Generator 55

74HCT4051 Staircase Generator The voltage divider at the Y-inputs creates outputs at 8 different voltage levels.

Multiplexed Display Application Allows sharing of common ICs, components, and conductors Four-digit registered are multiplexed to a single-digit bus Display bus is multiplexed into the four-digit displays 56

Multiplexed Display Application 57

FPGA Design Using LPMs LPM module for an 8-bit comparator 58

FPGA Design Using LPMs Simulation waveforms for the LPM comparator 58

FPGA Design Using LPMs LPM module for an octal decoder 58

FPGA Design Using LPMs Simulation waveforms for the LPM decoder 58

FPGA Design Using LPMs LPM module for an 8-line multiplexer 58

FPGA Design Using LPMs Simulation waveforms for the LPM multiplexer 58

Summary Comparators can be used to determine equality or which of two binary strings is larger. Decoders can be used to convert a binary code into a singular active output representing its numeric value. Encoders can be used to generate a coded output from a singular active numeric input line. 59

Summary ICs are available to convert BCD to binary and binary to BCD. The Gray code is useful for indicating the angular position of a shaft on a rotating device, such as a motor. Multiplexers are capable of funneling several data lines into a single line for transmission to another point. 60

Summary Demultiplexers are used to take a single data value or waveform and route it to one of several outputs. 61