- This topic has 2 replies, 3 voices, and was last updated 7 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › I am not able to get the output of the program.
Hi i am new to 8051 microcontroller and i am trying one of the project uploaded in this website. It is a simple progam to display a single character as A on the LCD screen. I have compilled the code with the Keil uVisionr5 software and generated the .hex file. I am using the willar software to dump the program with the help of a programmer board which i purchased locally. The following is the link of the project. http://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuit. Please help me how to resolve this issue. Can anyone tel me how to get it working.
what is the problem?
hi anoop,
u didnt declare the sub-routines in the begining of the prgm. you should declare the sub-routine header following with semi colon.
ERROR:
void delay(unsigned int msec)
void lcdcmd(unsigned char item)
void lcddata(unsigned char item)
CORRECT:
void delay(unsigned int msec);
void lcdcmd(unsigned char item);
void lcddata(unsigned char item);
Note: declare every sub-routine like this in the beginning of prgm after the port pins are defined.