Quote Originally Posted by Dennis View Post
Do you see blocks on the LCD ?
Yes, I do see the blocks when I turn the contrast up. Does that give any hints as to what is going wrong?

What's this line in your code?
Code:
'DEFINE SHOWDITIAL 1'
shouldn't it be showdigital ?
Yes...my typo...which I have fixed.
Next .. which port is your LCD connected to ?
If it's on PORTB like your code shows then your TRIS statement is set in the wrong direction.
You have
Code:
TRISB =%11111111
which should actually be
Code:
TRISB=%00000000
since you are sending to the LCD so the port should be set for output.
A nice way to remember it is that the number one looks like an i (I) which stands for Input and a zero (0 ) stands for output :-)
I knew better and must have had a senior moment....but fixed this.

Your problems could be a few things .. like a pause 1000 ( 1 second delay) before your code , giving time for the LCD to 'warm up' or initialize and so forth.
Changed it to 1000.

After all of above changes it still doesn't display and info.

Here's my code
I will take a close look at your code versus mine and see if I can figure out where I went wrong and get back to you. Thanks for your inputs!