cancel
Showing results for 
Search instead for 
Did you mean: 

LCD Software

itsmejatinus
Associate II
Posted on July 22, 2003 at 13:26

LCD Software

8 REPLIES 8
itsmejatinus
Associate II
Posted on May 27, 2003 at 10:16

Has anybody interfaced an LCD module(having driver on board) with ST7 ? If yes..Can i have the software code for that?

sjo
Associate II
Posted on May 27, 2003 at 11:19

Attached code will work with any HD44780 based lcd.

Adjust port setup in lcd.c to suit your application.

Use as:

LCDSetup( FOURBIT );

PrintData(ROW1,0,''hello'');

Hope this helps.

Spen

________________

Attachments :

lcd.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I059&d=%2Fa%2F0X0000000bVi%2F_4_3WNZg1iArrtMsETqDQnXMo_x9D_DIWGE97F3Tu4Q&asPdf=false
itsmejatinus
Associate II
Posted on May 27, 2003 at 12:03

Thanks for the software.

stephanie
Associate II
Posted on May 27, 2003 at 15:03

You have also an application note: AN1048: ST7 LCD software driver downlodable from this site.

itsmejatinus
Associate II
Posted on May 28, 2003 at 02:13

Yes,but it is for the LCD glass in which we are emulating the hardware driver with the software driver. I required for LCD Module.

itsmejatinus
Associate II
Posted on May 29, 2003 at 08:35

There is one function //// data= GetLCDLineIndex( line, position );/// which is not given in the file. Can you tell whats the output of this fuction?

sjo
Associate II
Posted on May 29, 2003 at 13:05

All this function does is return the ddram address for the particular line/offset, The code I sent is taken from an lcd tester unit.

eg. for a 16x4 lcd

GetLCDLineIndex( LINE2, 0 ) would return 0x40.

Regards

SJO
sisto
Associate II
Posted on July 22, 2003 at 13:26

For a my customer, I have sucessfully used a standard 2x20 alphanumeric LCD, HD44780 based module with ST72311.

If You want, I can send You via e-mail, the ''C'' sources an for COSMIC compiler mixed with parts in assember too.

Don't exitate to contact me at

sisto.zanier@adriacom.it