Quote Originally Posted by skimask View Post
Yes, a good suggestion is to re-read the PBP manual...as suggested in my last post. The define's you need are there.
Between that and the datasheet for the 16F877(a?), you should be able to figure out what is wrong.
We haven't seen any of the code you may (or may not) have written, no idea of your schematic (except for a vague idea of how you have connected your LCD, which leaves a bit to be desired), and not really much of an idea what you have tried so far.

For example, my truck's 'Check Engine' lamp is illuminated. What's wrong with it?
Not a lot of information is there?
And your English, while not perfect, is fine.
Here are defines:

define OSC 20
ADCON0.0 = 0
ADCON1 = 7
DEFINE LCD_DREG PORTA
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTC
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTC
DEFINE LCD_EBIT 1
DEFINE LCD_BITS 4
DEFINE LCD_LINES 4 ******************when is 2 and I use 2x16 it work 100%
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50

As you see:

LCD Wire PIC
RS --------------portc.0 -----> 4K7 pullup to +5V
E----------------portc.1
D4---------------porta.0
D5---------------porta.1
D6---------------porta.2
D7---------------porta.3

And that work 100% fine with 2x16 when I redefine No:. of lines of LCD.