I've used the command ADCON1=%00000111. Didnt this command make port E digital?
I've used the command ADCON1=%00000111. Didnt this command make port E digital?
LCD----------->PIC
RS-------------->RE0
R/W-------------->RE2
E--------------->RE1
Datapin0 --------->RD0
Datapin1 -------->RD1
Datapin2 ---------->RD2
datapin3 ------------->RD3
datapin4 ----------->RD4
datapin5----------->RD5
datapin6------------RD6
datapin7----------->RD7
I see a couple of problems.
R/W from the LCD should go to ground(zero).
Looking at your defines again the following is not a define.
Take a look at this page and connect the LCD that way, 8 bit bus setup does not gain you much, but cost four pins, so go with 4 bit bus.Code:DEFINE LCD_RWREG PORTE DEFINE LCD_RWBIT 2
http://www.rentron.com/PICX1.htm
Then go here to see how the defines should be setup.
http://www.rentron.com/PICX2.htm
Let us know how it goes.
Dave
Always wear safety glasses while programming.
Thanks alot for the advices guys. =) But i found what the problem was. Actually the connections in my board were disturbed. LCD is working fine now =). Will post in case of any problem.
THANKS AGAIN =).
Bookmarks