well, i've NEVER use a higher value than 100uSec (50uSev typical) on those various LCD i work and i worked. I don't believe there's some on the market that will really need more than 100 uSec.
If the LCD show only Black square it's because it fail to initialise properly or the contrast is set to max.
Reasons to fail:- Too short startup delay, some may need up to secondes... try PAUSE 2000, if it works, reduce it 'till you find a comfort zone
- Some wires are swapped between them
- In 4 bit mode, you must use DB4, db5, db6,db7.... AND some model need to send unused pins somewhere gnd or VDD, check the datasheet
- the R/W is not connected to GND
- you're using RA.4 without pull-up resistors
- your supply line is poor and noisy
- you're using a xtal>4 MHZ and you didn't set HS config fuse
Last edited by mister_e; - 9th December 2006 at 10:44.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks