Software Library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Software Library

9,065 Views
Andrew
Contributor I
Hallo people,
do you know were I can found C software library for HC(S)08? In particular, I'm searching software for driving LCD.
Thank you
Bye Bye
Labels (1)
0 Kudos
Reply
9 Replies

1,171 Views
bigmac
Specialist III

Hello Andrew,

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.

Regards,
Mac

 

0 Kudos
Reply

1,171 Views
joerg
Contributor II
Hi,

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.

Saluti joerg
0 Kudos
Reply

1,171 Views
Vidya
Contributor I

Hi Joerg,

             I'm working with OLED 128x64. I can scan the columns correctly. but the rows are not incrementing properly.. please help me.

Vidya..

0 Kudos
Reply

1,171 Views
Q_man
NXP Employee
NXP Employee
Vidya,
 
I have a OLED 128x64 (OSRAM Pictiva) on my desk and it works fine (NOW)
regarding the row incrementing there is one setting which is critical for that:
 
OLED_WriteCmd(OLED_SETDISPLAYOFFSET);       // 0xA2
OLED_WriteCmd(0x44);                       
 
the 0x44 depends on the specific display
 
Q-man
0 Kudos
Reply

1,171 Views
nagi
Contributor I
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.


regards
Nagi
0 Kudos
Reply

1,171 Views
Andrew
Contributor I

Hi Joerg,

I've to drive a grayscale 128*64 graphic display. If your code is able to drive this type of LCD, I can try to include it on my project.

Thanks a lot

Bye

Andrea

0 Kudos
Reply

1,171 Views
joerg
Contributor II
Sorry, but it is designed for character displays like BIGMAC mentioned before. But if you give my the type (datasheet) i will have a look on it.

Saluti joerg
0 Kudos
Reply

1,171 Views
Andrew
Contributor I
It's an OLED Display of OSRAM. It has an internal controler SSD0323 of SOLOMON.
 
Bye
Andrea
Message Edited by t.dowe on 2009-10-20 01:48 PM
0 Kudos
Reply

1,171 Views
joerg
Contributor II
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.

Here the READ sequence:

DATA_PORT as output
RD# 1->0
CS# 1->0
LDA DATA_PORT
CS# 0->1
RD# 0->1

the result is in A!

AND here the WRITE sequence:

DATA in A!

DATA_PORT as input
WR# 1->0
CS# 1->0
STA DATA_PORT
CS# 0->1
RD# 0->1

done.

So i would write four routines like: (in C or assembly)

READ_COMMAND(COMM);
WRITE_COMMAND(COMM);
READ_DATA(DAT);
WRITE_DATA(DAT);

If you tell me the type of the micro and find the datasheet, i can tell you more.

Saluti joerg
0 Kudos
Reply