sbit LED1 = P2^0; // P2.0 of the pin name cahnged to LED1 void delay(); // a delayis used to give some delay in between turn ON and OFF void main() { while(1) { LED1 = 0; delay(); LED1 = 1 ; delay(); } } void delay() { int j; for(j=0; j<500; j++) ; }
LED Blinking By using 8051 in Keil IDE
By
Like This Post? Please share!
Subscribe through email and get Free updates
You May Also Like...
More Posts
gElectron. Powered by Blogger.
Contributors
16x2 LCD Interfacing with STM32,STM32F103C6
16x2 LCD Interfacing with STM32,STM32F103C6 lcd_init(); LCD_LINE1; lcd_String(" GeElectron"); LCD_LINE2; lc...
Contact Form
Contact us
Follow Us
https://www.facebook.com/gElectron-393939667321867/
FBbox/https://www.facebook.com/IVYthemes
Comments
[blogger]
MKRdezign
Test
google.com, pub-8429441124104529, DIRECT, f08c47fec0942fa0
[blogger]
Latest
[recent][newsticker]
Technology
Top Ads
RECENT COMMENTS
Subscribe Via Email
Subscribe to our newsletter to get the latest updates to your inbox. ;-)
Your email address is safe with us!
Subscribe through email and get Free updates
Copyright © 2014 Embedded System Desgin • All Rights Reserved • Designed By Gelectron
Subscribe through email and get Free updates
Copyright © 2014 Embedded System Desgin • All Rights Reserved • Designed By Gelectron