[Lcdproc] problem initialising hd44780 on inca-ip evaluation board
Marcus Priesch
marcus@priesch.priv.at
Fri Sep 8 11:19:01 2006
Dear All,
first of all, lcdproc is great !!!
we are using lcdproc on the inca-ip evaluation board successfully, but
the FIRST(!) initalisation after power up is not working correctly.
our self developed inca-ip driver uses a serial interface to communicate
with the "hd44780 based" display. everything is working fine - we also
got an example from infineon on how to use the display - our driver is
partly based on that code.
using the display with the provided example code works fine - also afer
a fresh power up!
but, what we encounter when using lcdproc directly after power up, is
the following:
the display (its actually 20x4) comes up with the following:
----------------------
|## LCDproc Server #*|
|erver #* |
|Screens: 0 |
| | where "*" is actually the blinking heart
----------------------
which actually means that the last part of the first line gets repeated
on the beginning of the second line.
when i kill LCDd and restart it, everthing works fine !
when i run the provided example after a power up, and start LCDd
afterwards, everything works fine ;)
so we started to investigate what common_init() does - we found some
differences, but even with exactly the same init sequence as in the
provided example, nothing changes.
so my question is if anybody has evperienced such a behaviour - maybe
the display controller is not fully compatible to the hd44780 ??? - or
are we having some timing problem ??
note that we disabled the use of uPause as the kernel we are currently
using, paused way toooo long - we got a mere 5 chars/sec speed on the
display ...
instead we are reading back the busy flag of the display.
however both versions - either without any delay, or with reading back
the busy - show no difference (except that reading back the busy after
every write to the display slows down the update a little bit)
another difference is that the provided example code uses the cursor
movement functions of the display, whereas lcdproc directly writes into
memory ... can this cause some confusion to the 44780 ... i havent found
any viable information of its internals on the net. btw.
strange ...
well, and thats why i am posting this funny thing to you ;)
has anyone any hint for me ... ??? - any help would be - as ever,
greatly apprechiated ;)
thanks,
marcus.
note: * is actually the blinking heart