Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 04:25:13 16:25


Login with username, password and session length


Pages: [1]
Print
Author Topic: Please help, how keil can display 20X4 LCD (SC2004)  (Read 3852 times)
0 Members and 1 Guest are viewing this topic.
pat
Guest
« on: May 26, 2010, 04:03:29 04:03 »

Hi Everybody,
I'm new user of Microcontroller . And now I have 2 questions need your help advise.

My tool is C for Keil and P89V51RD2 for this project.

1.> How to interface 20X4 LCD (SC2004) 8 Bit data bus to display below

         0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
LINE1               H E L L O  W O  R   L  D
LINE2                              2                     
LINE3                              3
LINE4                              4

2.> If I need P89V51RD2 to generate pulse about 20ms to control servo motor (GWS S03T) how to do that.

Thankyou for help.
Best regards,
Pat.
Logged
chandra2sekhar2000
Active Member
***
Offline Offline

Posts: 127

Thank You
-Given: 24
-Receive: 18


« Reply #1 on: May 26, 2010, 11:47:06 11:47 »

Hello
connect the 8-bit data bus of lcd to any one of the ports available.consider port0. connect R/W,enable, RS-PINs of lcd to any one of the port pins.make all the port pins as outputs,then initialize the lcd,then send the data.for sending data to first line first position starts at 80h address,second line is C0h,thrird line = C0h +40h,,4th C0h+40h+40h..
for generating 20ms pulse use a timer.
Logged
pat
Guest
« Reply #2 on: May 26, 2010, 12:09:45 12:09 »

Hi chandra2sekhar2000 ,
Many thank for your advise. Can you let me know for address of 20X4  LCD meaning 16X2 is 0X38 but for 20X4 I don't know.

Best regards,
PS.
Logged
DreamCat
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 223
-Receive: 116



« Reply #3 on: May 26, 2010, 01:23:31 13:23 »

maybe this document should be help you:
http://www.siliconcraft.net/SC2004%2020x4%20Characters%20Serial%20LCD%20Module.pdf
or them website
http://www.siliconcraft.net/
Logged

May be I expressed the wrong meaning, sorry for my bad english. Please correct it for me if you can.
pat
Guest
« Reply #4 on: May 27, 2010, 06:12:24 06:12 »

Hi DreamCat,
Thanks for your advise.

Best regards,
PS.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC