.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
My LED's are not Blinking
I wrote program to blink all LED's
My program
Code (Text):
- #include <REG51.h>
- sbit LED_Port = P2; // All LED's connected to port P2
- void Delay (unsigned int loop);
- void main(void)
- {
- LED_Port = 0x000000; // All LED's OFF
- while (1)
- {
- LED_Port = 0x11111111; // Turn ON All LED's
- Delay(60000); // Wait 60 ms
- LED_Port = 0x00000000; // turn off All LED's...