Sunday, December 7, 2014

LED Blinking using 8051 Microcontroller

https://www.facebook.com/RSElectronicsOfficial

The LED is a semiconductor device which is used in many applications,mostly for indication purpose. It is finding a huge range of applications as indicators during test to check the validity of results at different stages. They are very cheap and easily available in a variety of shape, color and size. The LEDs are used to design message display boards and traffic control signal lights etc. Here the LEDs are interfaced to the PORT0 of the 8051 microcontroller.
#include<reg51.h>              //header file//
void main()                            //the program execution stat point//
{
unsignedint i;                          //data type//
while(1)                                     //for continuous loop//
{
P0=0×55;                                    //send the hexa value to the port0//
for(i=0;iP0=0x3AA;                                 //send the hexa value to the port0//
for(i=0;i}
}