Quote Originally Posted by savnik
...Which is the difference if add this code:

DEFINE LCD_COMMANDUS 2000 ' Command Delay (uS)
DEFINE LCD_DATAUS 50 ' Data Delay (uS)
Actually, NOTHING - these two lines as written are the default values already defined in the library file.

However, if your display for some reason cannot keep up with PIC's command issuing speed, you can increase the LCD_COMMANDUS term. If your display for some reason cannot keep up with your PIC's data issuing speed, you can increase the LCD_DATAUS term. These two conditions might happen when you run your PIC at "higher" clock rates (e.g., 20MHz) - it depends on your particular display. You also can decrease the values if you run your PIC at "slow" speeds.

So ... if you are running at higher speeds and the LCDOUT appears not to work, you can increase these values until the command works (provided this is the problem as to why it is not working ).

Paul Borgmeier
Salt Lake City, Utah
USA