LCD Initialisation problem
Andy_Freediver
Posts: 16
I have an LCD initialisation problem that I can't seem to resolve. Using either my code base or that of the demo programs here or from my local Parallax supplier my LCD seems to require me powering it up three times before it will initialize. I do have some large caps that I guess could be playing with the power up timings but can't seem to work it out (always three powerups required. ) Is there a state you need to leave the LCD in before powering down to ensure it powers up and initialises properly each time? Any ideas would be appreciated
Comments
What you may have to do is to PAUSE after the initialization sequence to wait for it to take effect. The data sheet for the LCD should tell you exactly how long.
Short of having the data sheet, I would just add "PAUSE init_time" to the program, and increase init_time from 5 upwards until it works. I'd run it up by 5's (10, 15, 20, 25, 30) and once it works, then run the variable backwards by twos (30, 28, 26, 24, 22) until it fails again. One unit above the failure point should be close to the true wait time.
Good luck with it.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔