8051

LED count down

This is a hexadecimal counter using LEDs. It will start at 0xFF and count down 1   Code #include <reg52.h> void delay(unsigned int i); main() { unsigned char Num =…

Read more

8051 rotating LEDs examples

Again using the ARm + 8051 development board Example 1 #include<reg52.h> void Delay(unsigned int t); void main (void) { unsigned char i; Delay(50000); P2=0x7f; while (1) { for(i=0;i<8;i++) { Delay(50000);…

Read more