View previous topic :: View next topic |
Author |
Message |
Msayed
Joined: 05 Mar 2010 Posts: 6
|
Need GLCD LM2088 library |
Posted: Fri Mar 05, 2010 3:21 am |
|
|
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 |
|
|
dezso
Joined: 04 Mar 2010 Posts: 102
|
|
Posted: Sun Mar 07, 2010 9:19 pm |
|
|
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
|
|
Posted: Tue Mar 09, 2010 2:51 pm |
|
|
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
|
|
Posted: Sun Mar 14, 2010 6:45 pm |
|
|
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
|
|
Posted: Sun Mar 14, 2010 10:55 pm |
|
|
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
|
|
Posted: Mon Mar 15, 2010 7:35 pm |
|
|
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
|
|
Posted: Mon Mar 15, 2010 9:14 pm |
|
|
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
|
|
|
dezso
Joined: 04 Mar 2010 Posts: 102
|
|
Posted: Fri Mar 19, 2010 7:46 pm |
|
|
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
|
|
Posted: Tue Apr 13, 2010 1:46 am |
|
|
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!!
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
|
|
Posted: Mon Apr 19, 2010 6:55 pm |
|
|
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. |
|
|
|