Embedded Engineers

Thursday, 5 March 2015

Led on and off program for AT89S51

#include<reg51.h>
sbit LED=P0^0;
void msdelay(unsigned int);
void main()
{
while(1)
{
LED=1;
msdelay(500);
LED=0;
msdelay(500);
}
}
void msdelay(unsigned int item)
{
unsigned int i,j;
for(i=0;i<=item;i++)
for(j=1;j<1275;j++);
}

Posted by M.Mohamed Imran at 00:58
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Microcontroller 8051Series Program

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2015 (18)
    • ▼  March (18)
      • Traffic light controller AT89C52
      • Traffic Light (For loop) AT89S51
      • Serial Communication AT89S51
      • DC Motor AT89S52
      • Matrix keyboard using LCD AT89C52
      • Double Switch using LCD AT89C52
      • Single Switch Using Lcd AT89C52
      • LCD AT89C52
      • 8x8 Matrix AT89SC2
      • Matrix Board using 7 Segmate AT89C52
      • 4 Switch using Matrix Keyboard AT89S52
      • 1 Row and 1 Column Matrix Program AT89S52
      • 4Switch using count Four 7 Segmate using AT89S52
      • Single switch using four 7segmate count continues...
      • When Switch is Pressed 7segmate start the count 0-...
      • Led on and off program for AT89S51
      • Hide Folders in Nokia /Java phones ? No Software N...
      • 5 Pen Pc

About Me

My photo
M.Mohamed Imran
https://in.linkedin.com/in/mohamedimran93
View my complete profile
Simple theme. Powered by Blogger.