Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
88 views2 pages

Light-Emitting Diode (Led) : Fig LED Interfacing With 89C51 Microcontroller

Light-emitting diodes (LEDs) emit light when current flows through them and come in different shapes, colors, and sizes. They have largely replaced light bulbs due to their low price, low power consumption, and simple use. Each LED must have a current limiting resistor connected in parallel to prevent destruction from excessive current. There are three main types of LEDs that differ in the amount of current needed to reach full brightness. Microcontroller ports cannot directly drive LEDs due to high current requirements, so the LED positive terminal is connected to power and the negative terminal to a port pin through a resistor. Writing logic low to the port pin allows current to flow through the LED, causing it to light up.

Uploaded by

Praveen Venkata
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views2 pages

Light-Emitting Diode (Led) : Fig LED Interfacing With 89C51 Microcontroller

Light-emitting diodes (LEDs) emit light when current flows through them and come in different shapes, colors, and sizes. They have largely replaced light bulbs due to their low price, low power consumption, and simple use. Each LED must have a current limiting resistor connected in parallel to prevent destruction from excessive current. There are three main types of LEDs that differ in the amount of current needed to reach full brightness. Microcontroller ports cannot directly drive LEDs due to high current requirements, so the LED positive terminal is connected to power and the negative terminal to a port pin through a resistor. Writing logic low to the port pin allows current to flow through the LED, causing it to light up.

Uploaded by

Praveen Venkata
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

LIGHT-EMITTING DIODE (LED)

Light-emitting diodes are elements for light signalization in electronics. They are manufactured in different shapes, colors and sizes. For their low price, low consumption and simple use, they have almost completely pushed aside other light sources- bulbs at first place. They perform similar to common diodes with the difference that they emit light when current flows through them.

Fig LED Interfacing with 89C51 Microcontroller It is important to know that each diode will be immediately destroyed unless its current is limited. This means that a conductor must be connected in parallel to a diode. In order to correctly determine value of this conductor, it is necessary to know diodes voltage drop in forward direction, which depends on what material a diode is made of and what color it is. There are three main types of LEDs. Standard ones get full brightness at current of 20mA. Low Current diodes get full brightness at ten times lower current while Super Bright diodes produce more intensive light than Standard ones. Since the 8051 microcontrollers can provide only low input current and since their pins are configured as outputs when voltage level on them is equal to 0, direct connecting to LEDs is carried out as it is shown on fig 3.3.1(Low Current LED, cathode is connected to out pin of 89C51)

LED INTERFACING WITH THE MICROCONTROLLER:


LED stands for Light Emitting Diode. LEDs are the most widely used input/output devices of the 8051.Microcontroller port pins cannot drive these LEDs as these require high currents to switch on. Thus the positive terminal of LED is directly connected to Vcc, power supply and the negative terminal is connected to port pin through a current limiting resistor. This current limiting resistor is connected to protect the port pins from sudden flow of high currents from the power supply. Thus in order to glow the LED, first there should be a current flow through the LED. In order to have a current flow, a voltage difference should exist between the LED terminals. To ensure the voltage difference between the terminals and as the positive terminal of LED is connected to

power supply Vcc, the negative terminal has to be connected to ground. Thus this ground value is provided by the microcontroller port pin. This can be achieved by writing an instruction CLR P1.0. With this, the port pin P1.0 is initialized to zero and thus now a voltage difference is established between the LED terminals and accordingly, current flows and therefore the LED glows. LED and switches can be connected to any one of the four port pins.
Vcc P1.0

Fig LED Interfacing with 89C51 In this project, LEDS are used as the display units to indicate the level of the petrochemical liquid in the processor container which is to be purified, motor running indication and the relay on condition.

You might also like