Still same garbage values =(. I made the changes you told. But in those garbage values letter 'D' is appearing which wasn't before. What shall i do now? =(
Still same garbage values =(. I made the changes you told. But in those garbage values letter 'D' is appearing which wasn't before. What shall i do now? =(
PORTE is analog on this chip, so you will need to turn that off.
http://www.picbasic.co.uk/forum/showthread.php?t=561
Dave
Always wear safety glasses while programming.
Dave
Always wear safety glasses while programming.
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.
Bookmarks