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

Similar documents
MECE336 Microprocessors I

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

Data Sheet. Electronic displays

Lab #6: Combinational Circuits Design

Nuvoton Touch Key Series NT086D Datasheet

Seven Segment Board. User Manual. 1.0, Oct 2011

7 Segment LED CB-035. ElectroSet. Module. Overview The CB-035 device is an, 8-digit 7-segment display. Features. Basic Parameters

ECE 270 Lab Verification / Evaluation Form. Experiment 7

Alice EduPad Board. User s Guide Version /11/2017

2-Wire Interfaced, 7-, 14-, and 16-Segment Alphanumeric Vacuum-Fluorescent Display Controller

TXZ Family. Reference Manual 12-bit Analog to Digital Converter (ADC-A) 32-bit RISC Microcontroller. Revision

ELCT706 MicroLab Session #3 7-segment LEDs and Analog to Digital Conversion. Eng. Salma Hesham

Chapter 3: Sequential Logic Systems

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

Alice EduPad for Tiva or MSP432 TI ARM Launchpad. User s Guide Version /23/2017

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

Embedded Systems. Interfacing PIC with external devices 7-Segment display. Eng. Anis Nazer Second Semester

Lab 4: Hex Calculator

TIL311 HEXADECIMAL DISPLAY WITH LOGIC

SPI Serial Communication and Nokia 5110 LCD Screen

uresearch GRAVITECH.US GRAVITECH GROUP Copyright 2007 MicroResearch GRAVITECH GROUP

SEP Bright Pi v1.0 Assembly Instructions

QuasarBrite Dot Matrix LED Display

PHYSICS 358 Advanced Electronics Laboratory Manual Fall 2014 Dr. Adam T. Whitten

Chapter 4: Table of Contents. Decoders

University of Illinois at Urbana-Champaign

Digital Clock. Perry Andrews. A Project By. Based on the PIC16F84A Micro controller. Revision C

Serially Interfaced, 8-Digit LED Display Drivers

Physics 323. Experiment # 10 - Digital Circuits

7 SEGMENT LED DISPLAY KIT

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

1696/1697/1698 Power Supply

COMPUTER ENGINEERING PROGRAM

RS-232C External Serial Control Specifications

Device: LDP This document Version: 1.1. Date: July Description: 64x16 1R1G LED Display Panel

USER'S MANUAL. Getting started with ALEXAN ATMEL AT89C2051/AT89C4051 Training Module - 1

AS LED Driver with Detailed Error Detection

CC-Series 7-Segment Configuration

ECE 372 Microcontroller Design

Introduction to Digital Electronics

AN202 LOW PIN-COUNT LCD INTERFACE. Relevant Devices This application note applies to the following devices: C8051F330, C8051F330D, C8051F331

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

Rfid Based Attendance System

AS LED Driver with Detailed Error Detection

Chapter 9 MSI Logic Circuits

Embedded Systems. Interfacing PIC with external devices 7-Segment display. Eng. Anis Nazer Second Semester

Specification BT45233 BTHQ240064AVB1-FETF-06-LEDMULTI-COG

DIGITAL PANEL METER DISPLAY FOR 15mm MOSAIC - LPDSA SERIES

InfoVue OLED Display

UNIT V 8051 Microcontroller based Systems Design

IOCard Displays II Manual. Date:08/03/17 Rev.:2.3

XBee/XBee-PRO XTC Radio Frequency (RF) Module. User Guide

T2432C13VR01 REV. B (3.5 DIGITAL TFT with LED BACKLIGHT) 1-Chip Solution

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Digital Electronic Circuits Design & Laboratory Guideline

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

Theory Lecture Day Topic Practical Day. Week. number systems and their inter-conversion Decimal, Binary. 3rd. 1st. 1st

Running leds from Pokeys

Arduino LED Matrix Control. Controlling lots of LEDs

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

Data Sheet. HDSP-70xE 17.3 mm (0.68 inch) General Purpose 5x7 Dot Matrix Alphanumeric Displays

EXPERIMENT 2: Elementary Input Output Programming

Lab #11: Register Files

Sequential Logic Notes

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

The Serial Port is Dead! Long Live the Serial Port! USB Serial Port Breadboard Experiments with the FTDI FT232R

16-CH Color Full Duplex Multiplexer Instruction Manual

Data Sheet. HDSP-G01x, HDSP-G03x mm (0.4 inch) Dual Digit General Purpose Seven-Segment Display. Features. Description. Applications.

Preface. About SunFounder. About Super Kit. Free Support

Giant Digital Letterforms: LEDs and Pixelated Type

FUNCTIONS OF COMBINATIONAL LOGIC

Revision: August 11, E Main Suite D Pullman, WA (509) Voice and Fax. 8 LEDs. Doc: page 1 of 9

AT004 A10 Multi-Tester, 120 to 277 VAC Test Transceiver

TRANSFER BETWEEN REGISTERS and THREE STATE LOGIC

ECE Design Team 3 Madi Kassymbekov How to use MSP 430 Peripheral Sensors and use of LEDs as sensors

16 Stage Bi-Directional LED Sequencer

Analog-to-Digital Conversion (Part 2) Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Keyboard Controlled Scoreboard

Digital Stopwatch Timer Circuit Using 555timer and CD4033

SAFETY PRECAUTIONS. (Read these precautions before using this product.)

ET-REMOTE DISTANCE. Manual of ET-REMOTE DISTANCE

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Harvatek International 2.0 5x7 Dot Matrix Display HCD-88442

Lab 3 LCD Mar

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

The Micropython Microcontroller

ID ISC.LRU3000 ID ISC.LRU3500

Data Sheet x Series 7.6 mm (0.3 inch)/10.9 mm (0.43 inch) Seven Segment Displays

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Chapter 2. Digital Circuits

MBI5152 Application Note

ELECTRICAL ENGINEERING DEPARTMENT California Polytechnic State University

DM Segment Decoder Driver Latch with Constant Current Source Outputs

AMP DISPLAY INC. SPECIFICATIONS AMP DISPLAY INC 9856 SIXTH STREET RANCHO CUCAMONGA CA TEL: FAX:

Quad 7-segment display board

Part Number Terminals LCD Mode LED Color. * Simultaneous RGB illumination achieves infinite colors. Forward Current I F 20mA Power Dissipation P d mw

Instruction manual Universal Fieldbus-Gateway UNIGATE IC - RS

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

Instruction manual for system with digital load cells MCE2035 PROFIBUS DP MODULE

CM1-AD08V 0~5V, 1~5V, -10~10V, 0~10V An input signal is converted to a digital value from 0 to or from 8000 to 8000.

Transcription:

VikiLABS Working with 7-segment displays www.vikipedialabs.com July 14, 2017 Seven segment displays are made up of LEDs combined such that they can be used to display numbers and letters. As their name implies, they are made of seven LEDs plus an additional LED for a dot. Seven segment displays can be in form of common anode or common cathode. They can also be in form of single digit or multi digit seven segment displays. 1 Single digit displays f e d a g b c dp Figure 1: 7 segment display lettering 1

Common Anode (CA) displays have the anode of all LED pins connected together to 5v, therefore, a LOW voltage applied individually on each pin will light up the LED of that particular pin. Conversely, Common Cathode (CC) displays have the cathode of all LED pins connected together to ground, therefore, a HIGH voltage applied individually on a given pin will turn ON the LED of that particular pin. Fig. 2 shows the internal structure of a 1-digit 7-segment display. 3,8 GND 7 6 4 2 1 9 10 5 3,8 Vcc 7 6 4 2 1 9 10 5 (a) common cathode (b) common anode Figure 2: Internal structure of 1-digit 7 segment displays 7 segment displays normally have 8 pins which represents the each LED on the display (7 segment plus the dot making 8 LEDs) (Fig. 3a and b). However, there is also a 7 segment display called a Binary Coded Display (BCD) that has only 4 pins (Fig. 3c. In this case, the binary combination as shown in Table 1 will produce numbers 0-9 and letters A - F as shown. (a) Generic 7-segment display (b) Common anode/cathode 7-segment display Figure 3: Single-digit 7 segment displays (c) Binary Coded (BCD) 7-segment display 2

Table 1: Binary Coded Display pin configuration Pin 1 Pin 2 Pin 3 Pin 4 binary 0 0 0 0 0 0000 1 0 0 0 1 0001 2 0 0 1 0 0010 3 0 0 1 1 0011 4 0 1 0 0 0100 5 0 1 0 1 0101 6 0 1 1 0 0110 7 0 1 1 1 0111 8 1 0 0 0 1000 9 1 0 0 1 1001 A 1 0 1 0 1010 b 1 0 1 1 1011 C 1 1 0 0 1100 d 1 1 0 1 1101 E 1 1 1 0 1110 F 1 1 1 1 1111 For common anode 7-segment displays, Table 2 shows the binary and hexadecimal value that would produce numbers 0-9 and alphabets A - F, this can be traced by using Fig.??. For common cathode 7-segment displays, the binary and hexadecimal values are shown in Table 3 for numbers 0-9 and alphabets A - F. Notice that the binary values can also be produced by carrying out a NOT operation on the respective common anode binary value. 2 Multi-digit displays Multi-digit displays do not have pins equal to 8 number of digits, instead, their number of pins equals 8 + number of digits as shown in Figure 4. 7 segment displays can be connected directly to a microcontroller. 74HC573 Latch IC can likewise be used to drive 7 segment displays, the advantage of using a latch is that only 8 digital pins of a microcontroller can be used for multi-digit displays. If a latch is not used, the number of pins that is equal to the number of pins the LED display has will be 3

Table 2: Common Anode dp g f e d c b a binary hexadecimal 0 1 1 0 0 0 0 0 0 0b11000000 0xc0 1 1 1 1 1 1 0 0 1 0b11111001 0xf 9 2 1 0 1 0 0 1 0 0 0b10100100 0xa4 3 1 0 1 1 0 0 0 0 0b10110000 0xb0 4 1 0 0 1 1 0 0 1 0b10011001 0x99 5 1 0 0 1 0 0 1 0 0b10010010 0x92 6 1 0 0 0 0 0 1 0 0b10000010 0x82 7 1 1 1 1 1 0 0 0 0b11111000 0xf 8 8 1 0 0 0 0 0 0 0 0b10000000 0x80 9 1 0 0 1 0 0 0 0 0b10010000 0x90 A 1 0 0 0 1 0 0 0 0b10001000 0x88 b 1 0 0 0 0 0 1 1 0b10000011 0x83 C 1 1 0 0 0 1 1 0 0b11000110 0xc6 d 1 0 1 0 0 0 0 1 0b10100001 0xa1 E 1 0 0 0 0 1 1 0 0b10000110 0x86 F 1 0 0 0 1 1 1 0 0b10001110 0x8e OFF 1 1 1 1 1 1 1 1 0b11111111 0xf f Table 3: Common Cathode dp g f e d c b a binary hexadecimal 0 0 0 1 1 1 1 1 1 0b00111111 0x3f 1 0 0 0 0 0 1 1 0 0b00000110 0x06 2 0 1 0 1 1 0 1 1 0b01011011 0x5b 3 0 1 0 0 1 1 1 1 0b01001111 0x4f 4 0 1 1 0 0 1 1 0 0b01100110 0x66 5 0 1 1 0 1 1 0 1 0b01101101 0x6d 6 0 1 1 1 1 1 0 1 0b01111101 0x7d 7 0 0 0 0 0 1 1 1 0b00000111 0x07 8 0 1 1 1 1 1 1 1 0b01111111 0x7f 9 0 1 1 0 1 1 1 1 0b01101111 0x6f A 0 1 1 1 0 1 1 1 0b01110111 0x77 b 0 1 1 1 1 1 0 0 0b01111100 0x7c C 0 0 1 1 1 0 0 1 0b00111001 0x39 d 0 1 0 1 1 1 1 0 0b01011110 0x5e E 0 1 1 1 1 0 0 1 0b01111001 0x79 F 0 1 1 1 0 0 0 1 0b01110001 0x71 OFF 0 0 0 0 0 0 0 0 0b00000000 0x00 4

(a) 2-digit, 7-segment display (b) 4-digit, 7-segment display (c) 6-digit, 7-segment display (d) 8-digit, 7-segment display Figure 4: Multi-digit 7 segment displays 5

used by the microcontroller. 3 4-digit 7-segment displays The internal structure of a 4-digit 7-segment common cathode display is shown in Fig 5. The cathode of each digit are connected together, a LOW voltage on the cathode will light up the corresponding LED if its anode is HIGH while a HIGH voltage on the cathode will turn off the LEDs. D1 D2 D3 D4 Figure 5: Internal structure of 4-digit 7 segment display common cathode display The internal structure of a 4-digit 7-segment common anode display is shown in Fig 6. The anode of each digit are connected together, a HIGH voltage on the anode will light up the corresponding LED if its cathode is LOW while a LOW voltage on the anode will turn off the LEDs of the corresponding digit. The pinout for 1-digit and 4-digit 7-segment displays is shown in Fig. 7. For 1-digit displays (Fig. 7a), pin 3 and 8 are the power pins: in common anode, these pins should be connected to Vcc while for common cathode, they should be connected to GND. 6

D1 D2 D3 D4 Figure 6: Internal structure of 4-digit 7 segment display common anode display (a) 1-digit display (b) 4-digit display Figure 7: Pinout for 1-digit and 4-digit displays 7