Hi Roger,
I've been away for some days, so by now the program is not completely worked out.
But i dare to post my code and schematic here.
Unlike as shown in the schematic, the R/W line of the LCD is connected to Port B.0 because it was not clear from the LCD's datasheet if the status bit has to be checked.
But the line is always held low, so don't care about it.
The LCD initialisation is done between the start: and the loop: label.
The display is a three line model and configured for double line height at the first two lines.
Unfortunately this does not look as good as expected because there is a little horizontal offset between the lines.
No line of the initialisation procedure may be left out, I've determined the right commands by try-an-error method.
Not all command make sense to me yet, I think I'll have some fun with the controllers datasheet.
The LCD bargraph also doesn't work yet.
I hope the information is useful for your project - if you should have any further questions, don't hesitate to ask.
Best regards,
Ingo
Bookmarks