Decode 1.1 Decoder, Encoders and Displays ©Paul Godin Updated Aug 2013.

Slides:



Advertisements
Similar presentations
Seven Segment Display. What's A 7-Segment Display? A 7-segment display is a package with 7 bar-shaped LEDs arranged to allow the display of many useful.
Advertisements

LECTURE 4 DIODE LED ZENER DIODE DIODE LOGIC
555 Timer ©Paul Godin Updated February Oscillators ◊We have looked at simple oscillator designs using an inverter, and had a brief look at crystal.
LOGIC DESIGN AND CIRCUITS SEVEN SEGMENT LED DISPLAY Res. Assist. Hale İnan 1.
ECE 2372 Modern Digital System Design
Fair Use Building and Research Labs Presents
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Code Converters, Multiplexers and Demultiplexers
CHAPTER 6 Functions of Combinational Logic
Counter Circuits and VHDL State Machines
Digital Fundamentals Floyd Chapter 6 Tenth Edition
COMBINATIONAL CIRCUITS USING TTL 74XX ICS
OTHER COMBINATIONAL LOGIC CIRCUITS
DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.
OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 2 OF 3)
BCD to 7-Segment Display
Lab 6 :Digital Display Decoder: 7 Segment LED display Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Slide #7 Display Decoder Fundamentals LT Control Input.
Digital Outputs 7-Segment Display
Dewan Tanvir Ahmed SITE, UofO
Design a Voltmeter Experiment 19. Goal Design a circuit that displays the value of unknown voltage between certain voltage ranges. – The unknown voltage.
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Lecture – 7 Basic input and output
Digital Fundamentals with PLD Programming Floyd Chapter 8
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Logic Gates Combinational Circuits
Electronics Chapter 53 What is Electronics? Electronics is the careful and exact control of very small electric currents. It is used in many small devices.
UNIVERSAL COLLEGE OF ENGINEERING &TECHNOLOGY DIGITAL ELECTRONICS SUBJECT - DIGITAL ELECTRONICS.
Lab 3 page 1 ENT-DIGI-210 Lab 3 Notes ©Paul Godin Updated September 2007.
© Shannon W. Helzer. All Rights Reserved. Unit 13/Chapter 18 Electric Currents 0.0.
Introductory Electronics Summer Institute 2004 Michelle Vidberg Peter Beens.
Contemporary Logic Design Multi-Level Logic © R.H. Katz Transparency No. 5-1 Chapter # 2: Two-Level Combinational Logic Section Practical Matters.
Combinational Logic By Taweesak Reungpeerakul
Dept. of Mechatronics Engg. Intro to SSD and BCD to SSD( conversion ) Decoder. Lab 09 1.
Basic Digital Logic 2 Combinational Logic
Functions of Combinational Logic By Taweesak Reungpeerakul
Which of the signals below is a digital signal?
Code Converters, Multiplexers and Demultiplexers
Seven Segment Displays
Counter Circuits and VHDL State Machines
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Magnitude Comparator Dr. Ahmed Telba.
Electrical Characteristics of IC’s Part 2
Lab 2 page 1 ENT-DIGI-210 Lab 2 Notes ©Paul Godin Updated September 2007.
Electrical Characteristics of Logic Gates Gate Characteristics Last Mod: January 2008  Paul R. Godin.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Code Converters, Multiplexers and Demultiplexers
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Seven Segment Displays
Resistance. Resistor A resistor is part of an electric circuit that resists the flow of electric current. As current flows through a resistor, some of.
Seven Segment Displays
LED - Infrared 850nm   Description: This is a very simple, clear infrared LED. These devices operate between nm and work well for generic IR systems.
Segment Identification
For further information
Introduction Molecules: made up of atoms of individual elements.
Combinational Circuits
9 LEVEL OVERHEAD WATER TANK NDICATOR
Fair Use Building and Research Labs Presents
Digital Fundamentals Floyd Chapter 6 Tenth Edition
INTELLIGENT WATERHEAD LEVEL INDICATOR
Seven Segment Displays
Seven Segment Displays
Electronic Education Kits
Seven Segment Displays
Chapter 6 Functions of Combinational Logic
Seven Segment Displays
Fair Use Building and Research Labs Presents
Light Emitting Diodes (LED)
Presentation transcript:

Decode 1.1 Decoder, Encoders and Displays ©Paul Godin Updated Aug 2013

Decode 1.2 Decoders

Decode 1.3 Decoder  A decoder receives one binary value or state and converts it to another value or state. Some decoders accept an input binary value or number and enable a single output pin based on that value or number (such as a “3-to-8 decoder”) Some decoders provide a full conversion of the input to an output (such as a “BCD to a 7-segment display”)  Basic decoders are comprised of combinational logic.

Decode 1.4 Output Select Decoders

Decode 1.5 Output Select Decoders  An output selection or output enable decoder: input a binary number provides one active output from an array of outputs based on that input number Single output activated Binary Number

Decode 1.6 Output Select/Enable Decoders  An example of a 3-to-8 decoder InputOutput CBA Decimal Y0Y0 Y1Y1 Y2Y2 Y3Y3 Y4Y4 Y5Y5 Y6Y6 Y7Y The output of this device is active low Note the input decimal value equals the output label

Decode 1.7 Application of a Decoder  Device selection (enable) 3 to 8 Decoder Device Address Enable Device #0 Enable Device #1 Enable Device #2 Enable Device #3 Enable Device #4 Enable Device #5 Enable Device #6 Enable Device #7 Decoders have a variety of applications, including enabling specific devices based on an address. A very common application is to enable a single device on a shared bus.

Decode 1.8 Decoders  The 7445 is a BCD to Decimal decoder. Input a BCD value Activate the output pin that corresponds to the BCD value Added feature is high current capabilities. Applications include lamp driver, relay driver, motor driver, etc... BCD to Decimal Decoder Device Address Enable Lamp #0 Enable Lamp #1 Enable Lamp #2 Enable Lamp #3 Enable Lamp #4 Enable Lamp #5 Enable Lamp #6 Enable Lamp #7 Enable Lamp #8 Enable Lamp #9

Decode 1.9 Exercise – In Class  Look up the 74LS42 specification sheet and explain its operation.  Look up the and the specification sheets and explain the additional control inputs.  Design a 2-to-4 decoder.  Using EWB, connect a counter to a decoder to enable devices in sequence.

Decode 1.10 Encoders

Decode 1.11 Encoders  An encoder receives an active input on one of its pins and produces a binary number to identify the pin label.  Priority encoders will provide a binary number of the input pin with the highest binary value. Priority is an issue if more than one input is active.

Decode 1.12 Priority Encoder  Outputs a binary number that corresponds to the label of the active input pin. If more than one input is active, indicates the one corresponding to the highest value. Input active state Binary Number

Decode to-3 Priority Encoder  An example of an 8-to-3 priority encoder (74148) InputOutput Y0Y0 Y1Y1 Y2Y2 Y3Y3 Y4Y4 Y5Y5 Y6Y6 Y7Y7 CBA XXXXXXX0000 XXXXXX01001 XXXXX XXXX XXX XX X The input is active low The output is active-low, where “000” represents “7”

Decode 1.14 Exercise – In Class  Look up the 74LS148 specification sheet and explain its operation.  Design a 4-to-2 encoder.  Discuss a keyboard encoder.

Decode 1.15 LEDs and Displays

Decode 1.16 LEDs  Light Emitting Diodes are common in digital electronics circuits because: Require relatively little current Generate very little heat Sufficient amount of light for most applications (indicators, illuminators) May not require additional support circuitry Inexpensive Small in size Variety of colors Long life Rugged and vibration resistance Variety of shapes and configurations Actively being improved and developed in industry

Decode 1.17 LED  LEDs are diodes designed to emit light in the visible or in the non-visible spectrums.  The electrical properties of LEDs are: Current can flow in one direction only. Have a voltage drop not related to resistance (V F ). They require an external resistor to limit current. Caution: Some LEDs are bright enough to damage eyesight, and some get very hot.

Decode 1.18 LED diagrams Logic Diagram Anode (+) Cathode (-) + - Flat Side - Long is +, like a battery symbol

Decode 1.19 LED Voltage Drops Typical LED Voltage Drops ColorBrightVoltage (V F ) Infrared1.4 Red1.7 √1.9 Yellow2.0 √3.4 Orange2.0 Green2.1 √3.4 Blue3.4 √3.7 White3.6 Typical maximum current is from 20mA to 30mA

Decode 1.20 Calculating Series Resistor Values  Apply basic Ohm’s law to calculate resistor voltage.  Subtract the V F of the LED from the supply voltage.

Decode 1.21 LED Current and Logic Gates  Most TTL devices are rated to sink much more current than they can source. Example: 7400:  I OH (output high current)=0.4mA  IOL (output low current)=16mA  Many LEDs require 10mA of current or more to be at their maximum designed brightness.  LEDs should therefore be configured to turn on with an output logic low. Vcc Driver circuit

Decode 1.22 LED Testing LEDs have a higher voltage drop than the 0.3 or 0.7 volts of a typical diode. Meters may not produce sufficient voltage to overcome the V F of the LED. Use a power supply with a series resistor for a visual check (except infrared). Use a voltmeter to test for open/short. Did you know you can use the active display of a digital camera to see the operation of an infrared LED? Try your TV remote control on your web cam!

Decode 1.23 Exercise – In-class  Given a red LED with a V F of 1.7 volts, a 5 volt output and a maximum output current of 5mA, calculate the series resistance value.  Calculate the current of a series LED circuit where the LED has a VF of 2.0 V, the resistor is 220Ω and the output voltage is 5V.  What does the voltage at point A equal, given a 5 volt output from the gate? A Typical test question

Decode 1.24 Decoders – Logic Conversion

Decode Segment Displays  Seven Segment displays are a set of LEDs within a single, specially-configured package.  The two basic configurations are Common Anode (connected to Vcc) Common Cathode (connected to ground) c b a d e f g dp c b a d e f g c b a d e f g Common Cathode (-) Common Anode (+)

Decode 1.26 Decoders – Logic Conversion  Some decoders convert from a BCD input to an output that is compatible with a 7-segment display. BCD to 7 Segment Decoder BCD Input (A to D) Resistor Pack Decoded Output (a to g) c b a d e f g dp

Decode 1.27 Display Drivers  Display drivers include the 7447 and the All share similar characteristics: Input a BCD value (A, B, C and D). The LSB is A. Output segments a, b, c, d, e, f and g. May have other features such as:  LT (Lamp Test). If active makes all outputs “on”, to test the LEDs  Enable/disable output  Memory capabilities

Decode 1.28 Display Drivers  BI/RBO and RBI: Ripple Blanking Input or Output  Ripple Blanking refers to making displays blank out (nothing displayed) if their value is zero and they either precede or follow a non-zero value.  Example: The value would have the first and the last value 0 blanked, appearing as  Dealing with Blanking  Read the specification sheet for more details  Leave disconnected if not using ripple blanking

Decode 1.29 BCD to 7-Segment Decoder Other issues:  The decoder’s active output (active high or active low) needs to match the display.  There must be a resistor to limit current for each segment. The LEDs in 7-segment displays are especially sensitive to damage from too much current.  CPLD outputs are not capable of driving much current. Design for active low output if connecting LEDs to outputs without a driver.  EWB seems to have trouble with the non-decoded display. Best to use the decoded display.

Decode 1.30 Questions  On a 7-segment display, why not use a single resistor at the common to limit current for all LEDs?  What is the active output of the 7447 and the 4511?  The following is known as a ½ display. What are some applications for ½ displays? c b dp

Decode 1.31 ©Paul R. Godin prgodin gmail.com END