SlideShare a Scribd company logo
Ppt on interfacing led  and 7 segmentwith 8951
The circuit mainly consists of 
AT89C51 microcontroller. AT89C51 
belongs to the family of 8051 
microcontroller. It is an 8-bit 
microcontroller. This 
microcontroller has 4KB of Flash 
Programmable and Erasable Read 
Only Memory and 128 bytes of RAM. 
This can be programmed and erased 
maximum 1000times. It has two 16 
bit timers/counters. It supports 
USART communication protocol. It 
has 40 pins. There are four ports are 
designated as P0, P1, P2, P3, P4.
Light Emitting Diodes are the semi 
conductor light sources. Commonly used 
LEDs will have a cut-off voltage of 1.7V 
and current of 10mA. When an LED is 
applied with its required voltage and 
current it glows with full intensity. The 
Light Emitting Diode is similar to the 
normal PN diode but it emits energy in the 
form of light.
The Anode is connected through a resistor to 
GND & the Cathode is connected to the 
Microcontroller pin. So when the Port Pin is 
HIGH the LED is OFF & when the Port Pin is 
LOW the LED is turned ON.
In this circuit, LEDs are connected to 
the port P0. Port P0 will not have 
internal pull- ups, while the other ports 
have internal pull-ups. The controller is 
connected with external crystal 
oscillator to pin 18 and 19 pins. Crystal 
pins are connected to the ground 
through capacitors of 33pf.using an LED 
you must use a resistor to limit the 
current flow. If you just connect an LED 
directly to a pin of the micro controller 
you run the risk of damaging the micro 
controller by allowing too much current 
flow into or out of the pin.
Light Emitting Diodes are the semi 
conductor light sources. Commonly used 
LEDs will have a cut-off voltage of 1.7V and 
current of 10mA. When an LED is applied 
with its required voltage and current it 
glows with full intensity. The Light Emitting 
Diode is similar to the normal PN diode but 
it emits energy in the form of light. The 
colour of light depends on the band gap of 
the semiconductor. The following figure 
shows “how an LED glows?”
Thus, LED is directly connected to the AT89C51 
microcontroller. The negative terminal of the LED is 
connected to the ground through a resistor. Value of 
this resistor is calculated using the following formula. 
, where V is the input voltage. 
R= (V-1.7)/10mA 
Generally, microcontrollers output a maximum voltage 
of 5V. Thus the value of resistor calculated for this is 
330 Ohms. Thus this can be connected either to the 
cathode or anode of the LED.
LED Interfacing with 8051 Circuit Applications: 
LEDs are widely used in many applications like in 
seven segments. 
They are used in dot matrix displays. 
They can be used for street lights. 
They are used as indicators. 
They can be used in traffic lights. 
They are used in emergency lights 
They can used to make electronic designs.
Ppt on interfacing led  and 7 segmentwith 8951
Ppt on interfacing led  and 7 segmentwith 8951
Ppt on interfacing led  and 7 segmentwith 8951
Seven segment displays are used to indicate 
numerical information. Seven segments display 
can display digits from 0 to 9 and even we can 
display few characters like A, b, C, H, E, e, F, etc. 
These are very popular and have many more 
applications. Before going to start this concept, get 
an idea about how to interface LEDs with 8051 
Microcontroller.
Interfacing 7 Segment Display to 8051 Circuit 
Principle: 
Seven segment displays internally consist of 8 
LEDs. In these LEDs, 7 LEDs are used to indicate 
the digits 0 to 9 and single LED is used for 
indicating decimal point. Generally seven 
segments are two types, one is common 
cathode and the other is common anode. 
In common cathode, all the cathodes of LEDs are 
tied together and labeled as com. and the anode 
are left alone. In common anode, seven segment 
display all the anodes are tied together and 
cathodes are left freely. Below figure shows the 
internal connections of seven segment Display.
Ppt on interfacing led  and 7 segmentwith 8951
Interfacing 7 Segment Display to 8051 Circuit 
Diagram:
Interfacing 7 Segment Display to 8051 Circuit 
Design: 
Here, common cathode seven segment is used to 
display the digits. In this circuit, pins a to h of the 7 
segment are connected to the PORT 2 of the 
microcontroller and com pin is connected to the 
ground through the 330 ohm resistor. This resistor is 
used to drop the voltage. Since we are using 
common cathode seven segment we need to send 
LOGIC 1 to the segments to glow. 
Figure shows structure of common cathode seven 
segments. Here dot is used for indicating the decimal 
point. Here all the cathodes of LED’s are connected to 
the Gnd pin. The operating voltage of this LED’s is 2 
to 3V but from controller we will get 5V so to drop 
the remaining voltage we have to connect a to g pins 
to the controller through the resistor.
Ppt on interfacing led  and 7 segmentwith 8951
Digit Drive Pattern: 
To display the digits on 7 segment, we need to glow different 
logic combinations of segments. For example if you want to 
display the digit 3 on seven segment then you need to glow the 
segments a, b, c, d and g. The below table show you the Hex 
decimal values what we need to send from PORT2 to Display the 
digits from 0 to 9. 
Digit Dp g f e d c b a 
Hex 
value 
0 0 0 1 1 1 1 1 1 0x3f 
1 0 0 0 0 0 1 1 0 0x06 
2 0 1 0 1 1 0 1 1 0x5b 
3 0 1 0 0 1 1 1 1 0x4f 
4 0 1 1 0 0 1 1 0 0x66 
5 0 1 1 0 1 1 0 1 0x6d 
6 0 1 1 1 1 1 0 1 0x7d 
7 0 0 0 0 0 1 1 1 0x07 
8 0 1 1 1 1 1 1 1 0x7f 
9 0 1 1 0 0 1 1 1 0x67
Interfacing 7 Segment Display to 8051 
Circuit Applications: 
Seven segments are widely used in digital clocks to 
display the time. 
These are used in electronic meters for displaying 
the numerical information. 
Used in Instrument panels 
Used in digital readout displays.
Ppt on interfacing led  and 7 segmentwith 8951

More Related Content

What's hot (20)

PPTX
Basic electronic components used in robotics
Kshitij Wagle
 
PPTX
Report of Battery Level Indicator Circuit
Uzair Ahmad
 
PDF
Basi electroni components lecture
CherehaniMakigo
 
PDF
7 seg
MIkeyadhd
 
PDF
Nand gate breadboardtask
shankarganesh73
 
DOCX
Battery level Indicator Circuit
Uzair Ahmad
 
PDF
30.led .projects
Toz Koparan
 
PDF
Brake failure indicator
viv3ksharma
 
PPTX
Led blinker
Vijendrasingh Rathor
 
PPT
Basic Electronic Components
Akash Agarwal
 
PPTX
Liquid crystal display
Vraj Patel
 
PDF
70 interesting circuits
vietem0610
 
PDF
Electronics schematic circuits for the hobbyist
Naga Tejaswi
 
PDF
How to Fix iphone 6 Plus Screen Turn Black Suddenly
diyfix phone
 
PDF
Harddisk pcb repairing
Iman Teguh Pribadi
 
PPTX
project - Copy
piedaholic
 
DOCX
PROJECT ENGINEERIING (1)
Leonard kibet Ng'eno
 
PPT
Electronics
fjpwhelan
 
PDF
How to Build Your Own Power Supply
Eng. Emad Al-Atoum
 
DOCX
Automatic led emergency light
sahadev1992
 
Basic electronic components used in robotics
Kshitij Wagle
 
Report of Battery Level Indicator Circuit
Uzair Ahmad
 
Basi electroni components lecture
CherehaniMakigo
 
7 seg
MIkeyadhd
 
Nand gate breadboardtask
shankarganesh73
 
Battery level Indicator Circuit
Uzair Ahmad
 
30.led .projects
Toz Koparan
 
Brake failure indicator
viv3ksharma
 
Basic Electronic Components
Akash Agarwal
 
Liquid crystal display
Vraj Patel
 
70 interesting circuits
vietem0610
 
Electronics schematic circuits for the hobbyist
Naga Tejaswi
 
How to Fix iphone 6 Plus Screen Turn Black Suddenly
diyfix phone
 
Harddisk pcb repairing
Iman Teguh Pribadi
 
project - Copy
piedaholic
 
PROJECT ENGINEERIING (1)
Leonard kibet Ng'eno
 
Electronics
fjpwhelan
 
How to Build Your Own Power Supply
Eng. Emad Al-Atoum
 
Automatic led emergency light
sahadev1992
 

Similar to Ppt on interfacing led and 7 segmentwith 8951 (20)

PDF
Applications of Microcontroller 8051
Nilesh Bhaskarrao Bahadure
 
PDF
IRJET - Interfacing Multi-Digit 7-Segment with 8051 Microcontroller
IRJET Journal
 
PPTX
7 segment led interfacing with 8051
Sam Patel
 
PPT
Microprocessor based system design
THANDAIAH PRABU
 
PPTX
An application of 8085 register interfacing with LED
Taha Malampatti
 
PDF
8051.pdf
MadhuriAnaparthy
 
PPTX
MCS51 Training board Model CATC2016A
Arkhom Jodtang
 
PPTX
Switches and LEDs interface to the 8051 microcontroller
University of Technology - Iraq
 
PDF
Seven segment interfacing with 8051.pdf
Srikrishna Thota
 
PDF
Micro Controller 8051 of Speedo Meter using KEIL Code
Sunil Kumar R
 
PDF
I0312050058
inventy
 
PDF
Embedded C Programming Module 7 Presentation
MarkkandanS
 
PPTX
Arduino Workshop
atuline
 
PDF
Digital system design lab 1 report manual
koinai0031
 
PPTX
Introduction to embedded system & density based traffic light system
Rani Loganathan
 
DOCX
Multiplexing With Arduino and the 74HC595
nanawhite107
 
DOCX
Embedded System[586]
ajeet singh choudhary
 
PPTX
1396740 634706422070340000
bnsprasad
 
PPTX
Fundamentals of Arduino: Day-02
Redwan Ferdous
 
Applications of Microcontroller 8051
Nilesh Bhaskarrao Bahadure
 
IRJET - Interfacing Multi-Digit 7-Segment with 8051 Microcontroller
IRJET Journal
 
7 segment led interfacing with 8051
Sam Patel
 
Microprocessor based system design
THANDAIAH PRABU
 
An application of 8085 register interfacing with LED
Taha Malampatti
 
MCS51 Training board Model CATC2016A
Arkhom Jodtang
 
Switches and LEDs interface to the 8051 microcontroller
University of Technology - Iraq
 
Seven segment interfacing with 8051.pdf
Srikrishna Thota
 
Micro Controller 8051 of Speedo Meter using KEIL Code
Sunil Kumar R
 
I0312050058
inventy
 
Embedded C Programming Module 7 Presentation
MarkkandanS
 
Arduino Workshop
atuline
 
Digital system design lab 1 report manual
koinai0031
 
Introduction to embedded system & density based traffic light system
Rani Loganathan
 
Multiplexing With Arduino and the 74HC595
nanawhite107
 
Embedded System[586]
ajeet singh choudhary
 
1396740 634706422070340000
bnsprasad
 
Fundamentals of Arduino: Day-02
Redwan Ferdous
 
Ad

Recently uploaded (20)

PPTX
Destructive Tests corrosion engineer (1).pptx
zeidali3
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PPTX
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
PPTX
Benefits_^0_Challigi😙🏡💐8fenges[1].pptx
akghostmaker
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
PDF
monopile foundation seminar topic for civil engineering students
Ahina5
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
PDF
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
Destructive Tests corrosion engineer (1).pptx
zeidali3
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
Day2 B2 Best.pptx
helenjenefa1
 
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
Benefits_^0_Challigi😙🏡💐8fenges[1].pptx
akghostmaker
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
Hashing Introduction , hash functions and techniques
sailajam21
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
monopile foundation seminar topic for civil engineering students
Ahina5
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
Ad

Ppt on interfacing led and 7 segmentwith 8951

  • 2. The circuit mainly consists of AT89C51 microcontroller. AT89C51 belongs to the family of 8051 microcontroller. It is an 8-bit microcontroller. This microcontroller has 4KB of Flash Programmable and Erasable Read Only Memory and 128 bytes of RAM. This can be programmed and erased maximum 1000times. It has two 16 bit timers/counters. It supports USART communication protocol. It has 40 pins. There are four ports are designated as P0, P1, P2, P3, P4.
  • 3. Light Emitting Diodes are the semi conductor light sources. Commonly used LEDs will have a cut-off voltage of 1.7V and current of 10mA. When an LED is applied with its required voltage and current it glows with full intensity. The Light Emitting Diode is similar to the normal PN diode but it emits energy in the form of light.
  • 4. The Anode is connected through a resistor to GND & the Cathode is connected to the Microcontroller pin. So when the Port Pin is HIGH the LED is OFF & when the Port Pin is LOW the LED is turned ON.
  • 5. In this circuit, LEDs are connected to the port P0. Port P0 will not have internal pull- ups, while the other ports have internal pull-ups. The controller is connected with external crystal oscillator to pin 18 and 19 pins. Crystal pins are connected to the ground through capacitors of 33pf.using an LED you must use a resistor to limit the current flow. If you just connect an LED directly to a pin of the micro controller you run the risk of damaging the micro controller by allowing too much current flow into or out of the pin.
  • 6. Light Emitting Diodes are the semi conductor light sources. Commonly used LEDs will have a cut-off voltage of 1.7V and current of 10mA. When an LED is applied with its required voltage and current it glows with full intensity. The Light Emitting Diode is similar to the normal PN diode but it emits energy in the form of light. The colour of light depends on the band gap of the semiconductor. The following figure shows “how an LED glows?”
  • 7. Thus, LED is directly connected to the AT89C51 microcontroller. The negative terminal of the LED is connected to the ground through a resistor. Value of this resistor is calculated using the following formula. , where V is the input voltage. R= (V-1.7)/10mA Generally, microcontrollers output a maximum voltage of 5V. Thus the value of resistor calculated for this is 330 Ohms. Thus this can be connected either to the cathode or anode of the LED.
  • 8. LED Interfacing with 8051 Circuit Applications: LEDs are widely used in many applications like in seven segments. They are used in dot matrix displays. They can be used for street lights. They are used as indicators. They can be used in traffic lights. They are used in emergency lights They can used to make electronic designs.
  • 12. Seven segment displays are used to indicate numerical information. Seven segments display can display digits from 0 to 9 and even we can display few characters like A, b, C, H, E, e, F, etc. These are very popular and have many more applications. Before going to start this concept, get an idea about how to interface LEDs with 8051 Microcontroller.
  • 13. Interfacing 7 Segment Display to 8051 Circuit Principle: Seven segment displays internally consist of 8 LEDs. In these LEDs, 7 LEDs are used to indicate the digits 0 to 9 and single LED is used for indicating decimal point. Generally seven segments are two types, one is common cathode and the other is common anode. In common cathode, all the cathodes of LEDs are tied together and labeled as com. and the anode are left alone. In common anode, seven segment display all the anodes are tied together and cathodes are left freely. Below figure shows the internal connections of seven segment Display.
  • 15. Interfacing 7 Segment Display to 8051 Circuit Diagram:
  • 16. Interfacing 7 Segment Display to 8051 Circuit Design: Here, common cathode seven segment is used to display the digits. In this circuit, pins a to h of the 7 segment are connected to the PORT 2 of the microcontroller and com pin is connected to the ground through the 330 ohm resistor. This resistor is used to drop the voltage. Since we are using common cathode seven segment we need to send LOGIC 1 to the segments to glow. Figure shows structure of common cathode seven segments. Here dot is used for indicating the decimal point. Here all the cathodes of LED’s are connected to the Gnd pin. The operating voltage of this LED’s is 2 to 3V but from controller we will get 5V so to drop the remaining voltage we have to connect a to g pins to the controller through the resistor.
  • 18. Digit Drive Pattern: To display the digits on 7 segment, we need to glow different logic combinations of segments. For example if you want to display the digit 3 on seven segment then you need to glow the segments a, b, c, d and g. The below table show you the Hex decimal values what we need to send from PORT2 to Display the digits from 0 to 9. Digit Dp g f e d c b a Hex value 0 0 0 1 1 1 1 1 1 0x3f 1 0 0 0 0 0 1 1 0 0x06 2 0 1 0 1 1 0 1 1 0x5b 3 0 1 0 0 1 1 1 1 0x4f 4 0 1 1 0 0 1 1 0 0x66 5 0 1 1 0 1 1 0 1 0x6d 6 0 1 1 1 1 1 0 1 0x7d 7 0 0 0 0 0 1 1 1 0x07 8 0 1 1 1 1 1 1 1 0x7f 9 0 1 1 0 0 1 1 1 0x67
  • 19. Interfacing 7 Segment Display to 8051 Circuit Applications: Seven segments are widely used in digital clocks to display the time. These are used in electronic meters for displaying the numerical information. Used in Instrument panels Used in digital readout displays.