Sonsivri

Electronics => Projects => Topic started by: pat on May 26, 2010, 04:03:29 04:03



Title: Please help, how keil can display 20X4 LCD (SC2004)
Post by: pat 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.


Title: Re: Please help, how keil can display 20X4 LCD (SC2004)
Post by: chandra2sekhar2000 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.


Title: Re: Please help, how keil can display 20X4 LCD (SC2004)
Post by: pat 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.


Title: Re: Please help, how keil can display 20X4 LCD (SC2004)
Post by: DreamCat 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/


Title: Re: Please help, how keil can display 20X4 LCD (SC2004)
Post by: pat on May 27, 2010, 06:12:24 06:12
Hi DreamCat,
Thanks for your advise.

Best regards,
PS.