Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

My LED's are not Blinking

$
0
0
.I got my first microcontroller programmer for 8051. I am trying to blink eight LED's.

I wrote program to blink all LED's

My program
Code (Text):
  1. #include <REG51.h>
  2.  
  3. sbit LED_Port = P2;          // All LED's connected to port P2
  4.  
  5. void Delay (unsigned int loop);
  6.  
  7. void main(void)
  8. {
  9.   LED_Port = 0x000000;       // All LED's  OFF
  10.   while (1)
  11.   {
  12.     LED_Port = 0x11111111;    // Turn ON All LED's
  13.     Delay(60000);             // Wait 60 ms
  14.     LED_Port = 0x00000000;    // turn off All LED's...
My LED's are not Blinking

Viewing all articles
Browse latest Browse all 4922

Trending Articles