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 =…
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 =…
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);…
This example was written using Keil UV2, the board in question was a 8051/ARM development board that I purchased from China. The micro was a STC90C516RD+ The LEDs are connected…