 | Discussion Forum |  |
|
|
LCD problemNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Rutu Patil Posted 3-Aug-2004 09:46 GMT Toolset C51 |  LCD problem Rutu Patil dear friends,
** I want to write to LCD ** I have got a board for 8051 of which P2.2 is connected to RS and P2.3 is connected to EN.RW is connected to GND. D7,D6,D5 & D4 are connected to P2.4-P2.7.
Now i tried writing to the LCD but since i m very beginner cannot know how to write in 4bit. What i am trying from last 2 days is the following code.
If anyonw can provide me his/her sample code for ref. it will be greate.
sbit RS = P2^2; sbit EN = P2^3;
/* 1st init. seq.*/ RS=0; EN=1; P2=0x03; EN=0;
/* 2nd init. seq.*/ RS=0; EN=1; P2=0x03; EN=0;
/* inst. to clear screen RS=0; EN=1; P2=0x01; EN=0;
I know this is not correct, but i am trying and so i require u r guidance. | | Read-Only Author Ravi P Posted 3-Aug-2004 10:38 GMT Toolset C51 |  RE: LCD problem Ravi P Try this
http://www.ustr.net/lcd001.shtml
Have fun | | Read-Only Author Rutu Patil Posted 3-Aug-2004 10:53 GMT Toolset C51 |  RE: LCD problem Rutu Patil Thankx ravi, I have gone through that page but still could not implement it.
Hence need some C51 code atleast for initialization of LCD. | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|