Quote Originally Posted by Brock View Post
I'm having trouble with an Optrex 4x20 LCD module. I have had no problems
with the 2x20 with a very similar program. It seems to ignore all "0"s in the
text string. This is using the LCDOUT command in PBP. I tried slowing down the
data with the defines, but it doesn't seem to help. If I put a pause in the main
loop, so that it can't refresh the screen data as fast, then it works... for a
while, then ignores the zeros again. Does the same thing weather in 4-bit or
8-bit mode. Strange... and frustrating! Anyone have any ideas?
How about seeing some code?
What are your delay defines set as? The data_us define is an 8 bit value (something that isn't explicitly specified in the PBP manual), so if you set the data_us define as 257, you'll actually only get 1 (257-256). Keep that in mind. The command_us is a word value, so anything 0-65535 is good.

Also, with all of the parallel type LCD's I've ever used, I usually keep command_us around 200, and data_us is around 50 (give or take). It's always worked for me.
Maybe you're losing power somewhere and the LCD is blanking out because of it. Contrast going south? Who knows, let's see some code!