Department of Electronic & Electrical Engineering Seven segment display Subroutines.

Slides:



Advertisements
Similar presentations
Princess Sumaya University
Advertisements

7-Segment Displays Lecture L6.1 Section 6.3. Turning on an LED.
Combinational Circuits CS370 – Spring BCD to 7 Segment Display Controller Understanding the problem: input is a 4 bit bcd digit output is the control.
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.
LED Display. LED Typical LED forward bias voltage: 1.5 to 2.0 V Typical currents needed to light LED range from 2 to 15 mA.
System Digital Encoder, Decoder, and Contoh Penerapanya.
LOGIC DESIGN AND CIRCUITS SEVEN SEGMENT LED DISPLAY Res. Assist. Hale İnan 1.
ECE 2372 Modern Digital System Design
ENGIN112 L4: Number Codes and Registers ENGIN 112 Intro to Electrical and Computer Engineering Lecture 4 Number Codes and Registers.
Physics 4341 Some lessons from Module 1. A control usually needs a default –It is not the equivalent to a constant, unless you make “current value default”
Codes and Code Converters
7-Segment Displays Module M7.2 Section 6.5. Turning on an LED Common Anode.
OTHER COMBINATIONAL LOGIC CIRCUITS
1 Forging new generations of engineers. 2 DESIGN EXAMPLE “Date of Birth Problem”
BCD to 7-Segment Display
Combinational Logic Design
Digital Outputs 7-Segment Display
Lecture 13 Problems (Mano)
Number Systems and Codes In PLC
ASCII & Gray Codes.
Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring.
A Digital Timer Implementation using 7 Segment Displays.
UNIVERSAL COLLEGE OF ENGINEERING &TECHNOLOGY DIGITAL ELECTRONICS SUBJECT - DIGITAL ELECTRONICS.
Two’s Complement Number wheel for 4 bit numbers
CS-280 Dr. Mark L. Hornick 1 ASCII table. 2 Displaying Numbers as Text Problem: display numerical values as text Consider the numerical value 0x5A held.
ENGR 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program Solar Energy Meter.
Building Assembler Programs Chapter Five Dr. Gheith Abandah1.
The Digital Codes.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Bits & Bytes A bit is the smallest amount of memory used to store information. A bit is represented by either a “0” or a “1”. “Bit” is a contraction of.
Computer Architecture and Operating Systems CS 3230 :Assembly Section Lecture 3 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Microcontrollers Module 3: Digital Display. 7 – Segment Display A seven-segment display (SSD), or seven- segment indicator, is a form of electronic display.
ELECTRONICS An electronics system has 3 parts – input, process, output.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Magnitude Comparator Dr. Ahmed Telba.
8421 Binary Hexadecimal Seven segment display 8421 Welcome to the Binary Hex Clock 1.The Display shows the Hexadecimal Values going up from 0 to F 2.Unfortunately.
8421 Binary Hexadecimal Seven segment display 8421 Binary Hexadecimal Seven segment display 0000.
BCD S EVEN SEGMENT D ECODER. I NTRODUCTION  A Decoder IC, is a device which converts one digital format into another and the most commonly used device.

Department of Electronic & Electrical Engineering Lecture 2 ● Introduction to IO ● Using a subroutine ● Driving a 7seg display.
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
CCE Department – Faculty of engineering - Islamic University of Lebanon Chapter 6 Binary Arithmetic.
Department of Electronic & Electrical Engineering Further work? Simple Voltmeter. ● Analogue to Digital converter (MCP3001 SPI ) ● Analogue → 10bit binary.
Department of Electronic & Electrical Engineering Lecture 4. ➢ Loops ➢ Delays ➢ Conditional instructions ➢ Simple clock example.
Department of Electronic & Electrical Engineering Lecture 3. ● Template program. ● Introduction to IO ● PORTA PORTB TRISA TRISB ● Using a subroutine ●
Tutorial 9 Module 8 – 8.1,8.2,8.3. Question 1 Distinguish between vectored and non-vectored interrupts with an example Build a hardware circuit that can.
DIGITAL ELECTRONICS THEME 2: Combinational Logic Circuits. Decoders, Multiplexers, De-multiplexers, Code converters. For combinational logic the values.
Applications examples. A binary count : stepped manually and reset with push buttons. Define ports Reset portd Reset =0? INCF portd no Step =0? yes.
Forging new generations of engineers. Writing a Technical Report JUST THE FACTS!
Segment Identification
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Microprocessor Systems Design I
Binary & Hexidecimal Numbers
University of Gujrat Department of Computer Science
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 7) Hasib Hasan
EECE.3170 Microprocessor Systems Design I
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
EECE.3170 Microprocessor Systems Design I
Chapter 1 Number System RGGP, Narwana.
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
Prof. Onur Mutlu ETH Zurich Spring March 2019
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
Counter Fundamentals Presented by :
Location Counter (LC) = 0 while line of code <> END if ORG
2019 Investing Now Summer Program
Presentation transcript:

Department of Electronic & Electrical Engineering Seven segment display Subroutines.

Department of Electronic & Electrical Engineering Seven Segment LED Display

Department of Electronic & Electrical Engineering Seven Segment Display Internal Circuit Common Anode Kingbright SA08-11EWA

Department of Electronic & Electrical Engineering Circuit for 7seg display Pull up resistors

Department of Electronic & Electrical Engineering Binary  seven segment display ● We have 4 bits of input (hex number). ● We want to display the corresponding character on the 7seg display. ● Each segment can be represented by a bit of a binary number. ● The problem is to lookup the correct 7seg code for each 4bit number. ● This can be done using a lookup table.

Department of Electronic & Electrical Engineering

Lookup table using programmed return. ; setup stuff here..... ; w contains the 4 bit number movlw 4,w call conversion ; w now contains the 7 segment code ;....more stuff here ; convert 4bit number in w into a seven segment code. conversion: ; this is just a label for the assembler addwf PCL ; add w to the PC (jump) retlw B' ' ; 0 return 7 seg code. retlw B' ' ; 1 retlw B' ' ; 2 retlw B' ' ; 3 retlw B' ' ; 4