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.