CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Need GLCD LM2088 library

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Msayed



Joined: 05 Mar 2010
Posts: 6

View user's profile Send private message

Need GLCD LM2088 library
PostPosted: Fri Mar 05, 2010 3:21 am     Reply with quote

Hi, everybody

I have got a GLCD LM2088 which has a S1D13700 driver built in, and I need code library for this GLCD and want to know which PIC controller can I use.

Thanks in advance Smile
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Sun Mar 07, 2010 9:19 pm     Reply with quote

SED13700 is almost the same as SED1335, check the driver for that, and tweak it if needed.
I think there is a BUSY/Wait pin on the SED13700 and Status bit6 for SED1335/SED13305.

Most 16F and up will be able to control it long as you have enough pin and memory. 18F448 would do it for sure.
Msayed



Joined: 05 Mar 2010
Posts: 6

View user's profile Send private message

PostPosted: Tue Mar 09, 2010 2:51 pm     Reply with quote

dezso wrote:
SED13700 is almost the same as SED1335, check the driver for that, and tweak it if needed.
I think there is a BUSY/Wait pin on the SED13700 and Status bit6 for SED1335/SED13305.

Most 16F and up will be able to control it long as you have enough pin and memory. 18F448 would do it for sure.


Thanks dezso for your help
Msayed



Joined: 05 Mar 2010
Posts: 6

View user's profile Send private message

PostPosted: Sun Mar 14, 2010 6:45 pm     Reply with quote

I got this library code for S1D13700:
http://www.ccsinfo.com/forum/viewtopic.php?p=72019
and I tried to write main function but it didn't work totally. So I need help to write a correct main function as I did a lot of trials but all of them failed.
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Sun Mar 14, 2010 10:55 pm     Reply with quote

Quote:
didn't work totally


So what you got now, display working, garbage displayed, display not working at all ?
Can you show your hardware/schematic/connection ?
Msayed



Joined: 05 Mar 2010
Posts: 6

View user's profile Send private message

PostPosted: Mon Mar 15, 2010 7:35 pm     Reply with quote

The display is not working at all.

Hardware connection:
The GLCD has 20 pins as follows:

1 GND
2 VDD
3 V0 Input LCD Contrast Reference
4 /WR
5 /RD
6 /CS
7 A0
8 /RES
9 DB0
: : 8-bit bi-directional data bus
16 DB7
17 /WAIT Output Wait signal
18 VOUT Power Power Booster Output for V0
19 LED backlight (+)
20 LED backlight (-)


Data pins: DB0 ---> DB7 are connected to port D in PIC.
Control pins: /WR,/RD,/CS,and A0 are connected to /WR(pin 10 in PIC),/RD(pin 9 in PIC),/CS(pin 11 in PIC),and A0 (pin 2 in PIC) respectively.
Power pins: pins (1,20) are connected to GND , pins (2,19) are connected to VDD.
Contrast pins: pins (3,18) are connected to a Variable-Resistor.

But I do not know how to connect /WAIT pin.
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Mon Mar 15, 2010 9:14 pm     Reply with quote

Try to load the EX_GLCD.C from the Examples directory, include the <SED1335.C> instead of <HDM64GS12.c>, change the pin setup to match your hardware in the sed1335.c, change this two segment in sed1335.c but you should make a backup first.
I don't remember why the original did not worked for me but this one works !
I'm using SED1335, noticed on the 13700 code post you are using, some user claim its not working at all.
1335 and 13700 very similar, I would try to adapt the 1335 driver to the 13700, read the data-sheet, it will explain how to use the wait pin.
http://www.lcd-module.de/eng/pdf/zubehoer/s1d13700.pdf
Code:

// Purpose:    Write a byte of data
// Inputs:     The byte of data to write
void glcd_sendByte(byte data)
{
   output_d((data));
   output_high(GLCD_RD);
   output_low(GLCD_CS);
   delay_cycles(1);
   output_low(GLCD_WR);
   delay_cycles(1);
   output_high(GLCD_WR);
}

and

Code:
// Purpose:    Read a byte of data
// Outputs:    The byte of data
int8 glcd_readByte()
{
   byte data;
   output_high(GLCD_A0);
   output_high(GLCD_WR);
   output_low(GLCD_CS);
    delay_cycles(1);
   output_low(GLCD_RD);
   delay_cycles(1);
   data = input_d();
   delay_cycles(1);
   output_high(GLCD_RD);
   return data;
}
Msayed



Joined: 05 Mar 2010
Posts: 6

View user's profile Send private message

PostPosted: Fri Mar 19, 2010 12:41 pm     Reply with quote

Hi,
I did what you told me before
1-
I set my hardware connection and change the two functions at SED1335
http://www.2shared.com/file/12221445/96749f9b/SED1335.html

2-
include the <SED1335.C> instead of <HDM64GS12.c>
, <16f877A.c> instead of <16f877.c> and delay(clock=10000000) instead of delay(clock=20000000)
http://www.2shared.com/file/12221491/24b725cf/EX_GLCD.html

I am keen to know your opinion and I am very thankful for your time.
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Fri Mar 19, 2010 7:46 pm     Reply with quote

So is your LCD has a built in neg voltage generator ?
This display probably need at least -20 to -25 volt.
You connected the pot between 3-18, do you have neg voltage on this pins ?
If you set the contrast to the max, is the LCD goes all black ?
My LCD for example has a built in neg voltage generator, it is a MAX749, before its start it needed to be set up as the default voltage is to low for the LCD to show anything.
modus83



Joined: 13 Apr 2010
Posts: 7

View user's profile Send private message

PostPosted: Tue Apr 13, 2010 1:46 am     Reply with quote

Hi!,

I have the same problem... I have Displaytech 240320G-TSdisplay and it doesn´t work fine. It don´t display anything!
The controller is S1D13700 and I have the upper code too.
I'm going to try with your code (SED1335 modified) and pray to it be ok!!

Laughing

This is the datasheet of the GLCD:
http://www.displaytech.com.hk/upload/product/attachment/1024-240320g%20series-v21.pdf

Thank you so much.

Edit: It dosn´t works! I don´t know what to do!!


Last edited by modus83 on Sun Apr 25, 2010 4:20 am; edited 1 time in total
Msayed



Joined: 05 Mar 2010
Posts: 6

View user's profile Send private message

PostPosted: Mon Apr 19, 2010 6:55 pm     Reply with quote

1-negative supply:
I think that I did not need it because this only mentioned at the back light and at the data sheet advises to put it to zero
here is the data sheet


2-pot at (3-18) there is no need, also at the data sheet page 8


Finally, sorry for being late cause of my exams.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group