Microcontroller › 8051 › Speedometer cum odometer using AT89S52 › Sir Ajish Alfred thank you
Sir Ajish Alfred thank you for the reply. i would really like to check if the lcd/microcontroller is working but i dont how to program simple codes to test it. i only downloaded the codes l.can i just use this LED Blinker code i have downloaded in the internet?
#include <REGX51.H> // it is the header file of AT89S52 µcontroller
#define LEDPORT P2 // define PORT P2
void Delay(void); //Function prototype declaration
void main (void) {
while(1) //End less while so that program never ends
{
LEDPORT = 0×55; //01010101 binary
Delay();
LEDPORT = 0xaa; //10101010 binary
Delay();
}
}
void Delay(void)
{
int j; int i;
for(i=0;i<10;i++) // for() loop
{
for(j=0;j<10000;j++); // delay loop
{
}
} }
thank you again sir