Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Implement a lcd to 8051

Status
Not open for further replies.

gns

Newbie level 4
Joined
Mar 1, 2010
Messages
7
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,335
Hello,

I want to interface a 16*2 lcd (HD44780) to at89s51 atmel microcontroller.
I have a program in c but i want your help because i don't know if its correct.

The datasheet of the lcd is this on : https://media.digikey.com/pdf/Data Sheets/Optrex PDFs/DMC-16205NY-LY Spec.pdf

Also i need some help for powering up the lcd, as you can see from the datasheet
pin 1 -> gnd
pin 2 -> Vcc
pin 3 -> Vee
.
.
pin 15 -> LED

In the datasheet Vcc and Vee are suggested to be powered to 4.7V and my question is, am i going to connect those two pins to the same power supply at 4.7V and connect the gnd to pin 1 or i have to use two power supplies for each pin (2-3). Finally the pin 15 which is the backlight where i have to connect it?

I have attached the c code here

Best wishes,
John
 

So the Vee is for contrast and i have to connect it to a potensiometer?

What about the backlight pin of my lcd where i should connect it?
 

Hi,

Connect the backlight (pin-15) to pin - 2. ie: +5V , Then the LCD background will glow ...........

Regards
 

I have to connect pin2 to +5V directly or i have to use a potensiometer?

thx
 

yes, you have to use a potentiometer

Nandhu
 

Hi again,

I connect the pins as u suggested but my code seems that is wrong because i can see the black boxes on the screen on the first line only.

Here is my code pls help to find if there is anything wrong
 

Black boxes means the lcd is working and most cases initialisation problem.

Check out the timings of lcd, you have to wait for sometime before starting to send commands

Nandhu
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top