This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need help!!!

Hi I am new in C language... I am doing a project that requires me to program 8051 to LCD in C language...So I am trying to display "HELLO WORLD" to the LCD in C language...I am using a C8051226 and a PIC0802-A 8X2 LCD...

I have gone online to search for sources on programming LCD...I have found a few sources in C and asm...Like www.8052.com/tutlcd.phtml and http://www.keil.com/appnotes/docs/apnt_161.asp...

I have tried to program myself based on http://www.keil.com/appnotes/docs/apnt_161.asp but the LCD does not display anything instead it displays "black pixels"...
I am also having problem configuring the ports...

I will be grateful if any of you guys can tell me how do i write these LCD data bus to the 8051 ports in C language??


DB0 EQU P3.0
DB1 EQU P3.1
DB2 EQU P3.2
DB3 EQU P3.3
DB4 EQU P3.4
DB5 EQU P3.5
DB6 EQU P3.6
DB7 EQU P3.7
DATA EQU P3

0