View Single Post
Old 06-29-2008, 03:29 PM   #17 (permalink)
Yoshi
SuperMID designer
 
Yoshi's Avatar
 
Join Date: Mar 2008
Location: Yokohama, JAPAN
Posts: 37
Thanks: 0
Thanked 13 Times in 2 Posts
Quote:
Originally Posted by dcb View Post
FYI, the latest version has a little more LCD initialization going on (v0.66), Let us know if that fixes it.
Let me comment some...

The V0.66 init() starts...

void LCD::init(){
LcdCommandWrite(B00000010); // 4 bit operation

This sends (B0000) to DB7-4,
then sends (B0010) to DB7-4.
...

However, the HD44780 chip datasheet shows the 4 bit mode initialization is...

power on
wait for more than 15 msec
send (B0011) to DB7-4
wait for more than 4.1 msec
send (B0011) to DB7-4
wait for more than 100 usec
send (B0011) to DB7-4
send (B0010) to DB7-4 for 4 bit operation

Yoshi
  Reply With Quote