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.

LCD connections and interfacing with PC by using 89c52 (Atmel MCU)

Status
Not open for further replies.

imranahmed

Advanced Member level 3
Advanced Member level 3
Joined
Dec 4, 2011
Messages
817
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
6,493
Please let me know that how to interface LCD with PC and how program the 89c52 (MCU).
Can anyone send me C code for LCD interface with 89c52?
My e-mail address is xxxxxxxxxxxxxxxxxxxxxxxx


NO PRIVATE SHARING
READ RULES BEFORE POSTING
:MOD
 

Dear amol_shah
I wrote LCD interfacing C code program for 89c52 ,program runs successfully , i used LCD 20x4 but problem is that if 1st line of LCD complete than next should be started from 2nd line but it cannot start from 2nd line it start from 3rd line.Please let me know how resolve this problem .C Code is attached.
 

Attachments

  • LCD_INTF.txt
    742 bytes · Views: 117

The addresses for 4 line lcd is as follows:

line1: 80h to 94h
line2: 0C0h to 0C4h
line3: 95h to A9h
line4: 0c5h to D9h
 
Dear amol_shah

This address cannot work on proteus,data is screened only 1st line and 3rd line but not on 2nd and 4th line.Please check my previous given code and erase any bug.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top