Have a look at Application Note AN2940, "LCD Driver for the HC08/HCS08 Family", and the associated software file. It covers both 4-bit and 8-bit interface modes for LCD displays based on the HD44780 device.
does it really have to bee in C? I have a module (.asm) for a 4bit mode driven LCD Display. You could include that in your project and call the routines with C code. Let me know.
Hi; I am working on OSRAM OLED display in my current project. Just wondering has anybody implemented screen saver for these OLED displays. If so could you please post the algorithm.
I had that look on the data sheet! It is hard to find the datasheet for the SSD0323 so i do not know the commands. The interfacing of the display is easy: you need a 8bit IN/OUT port (DATA_PORT) for the data or commands and fout more bits for the signals. The BS1 pin of the display can be hardwired to "1" for selecting the so called "80" mode (which i would prefer) named because the micros with 80... (form 8080, Z80, ....) have this kind of control signals. You need the following signals to handle:
D/C#: Data/Command 1=Data/0=Command CS#: Chip select WR#: Write signal RD#: Read signal
D0..D7: DATA_PORT
On the start set CS#, WR#, RD# =1
The timing is not critical since by bitbanging you will never reach the maximum speed!
The D/C# line has to be put to 1 if the routines are handling data and to 0 for commands.