??? 04/23/07 06:14 Read: times |
#137782 - from hitachi data sheet on HD44780 Responding to: ???'s previous message |
Mike Stegmaier said:
What I would recommend is to increase the delay, especially if you have a high speed crystal.
Also, I would suggest that the data is loaded BEFORE the LCD enable sequence commences. I discovered myself that when enable rises from low to high, data is written. Since you have the first half of the program working, the only piece of hardware you should be changing if any is your external code ROM (if any) or your crystal. Dropping your crystal speed can help. The initialistaion sequence (eg sending 38H) should be done 3 times not using BF (busy flag). After Vcc has risen to 2.7V, one has to wait more than 40ms before issueing the first init code. Then wait more than 4.1ms and send second init code. wait more than 100µs and send 3rd init code. At least that's what is in the HITACHI data sheet. I'll try and provide a link as soon as I found the data sheet. A data sheet from seiko instruments, refers to the same init sequence with same timing. BTW the Seiko sheet states that "RS, R/W and DATA are latched at the falling edge of the Enable signal" and that is in contradiction to what you said. Regards Patrick |