schematic for 8051 interfaced with LCD

Thread Starter

BrendanCarroll

Joined Jan 20, 2009
8
Hello everyone

I am currently trying to interface a 2 x 40 LCD with an 8051 microcontroller. Not too sure if my layout is correct as I have three different layouts at this stage. I am designing this in Proteus (ISIS) and cannot get any text to the LCD module. I have tried various codes but I'm afraid if the layout is incorrect then the code will be useless.
I have also attached all three attempts !!!
I would greatly appreciate any help on this matter.

Brendan
 

Attachments

jnvarsha

Joined Jan 21, 2009
3
Hi,I went through ur first attempt of schematic & found that there is some connection issue that is ur hardware needs to be modified .In ur schematic the LCD pins r not connected properly. In LCD, named pins must be connected as follows: Pin RS- port 2.0 pin R/W- port 2.1 Pin E- port 2.2 just check this c
 

Thread Starter

BrendanCarroll

Joined Jan 20, 2009
8
jnvarsha
Thanks for your reply and help on this matter. I have made relevant
changes to this circuit design and re-did the code. The LCD is now displaying text.
Do you know how to place a character in a certain column on the LCD.
I have attached the new diagram and code.
Again I just want to say thanks a million for all your help.

Brendan
 

Attachments

Arm_n_Legs

Joined Mar 7, 2007
186
To place character is certain column or location. Move the cursor by shifting command into the command register.

RS=0; // Set to command register
P0=0x85; // 5th position
strobe(); // Strobe the data
RS=1; // Switch to Data Register
P0=0x41; // Print A
strobe();
 

Thread Starter

BrendanCarroll

Joined Jan 20, 2009
8
Thanks for the help with this.
Unfortunately the code will not run onto the second line which is what I'm after.
I will attach a copy of the code as I have updated all changes.

Thanks again all
 

Attachments

Top