how can i connect glcd to arduino mega

please help :frowning:
i have a graphic lcd i want to connect it to arduino mega but i have a problem with it, it has no cs1 and cs2 pins

only this pins:

1- GND
2- VCC
3- V0
4- RS
5- R/W
6- E
7- DB0
8- DB1
9- DB2
10- DB3
11- DB4
12- DB5
13- DB6
14- DB7
15- PSB
16- NC
17- RST
18- Vout
19- BLA
20- BLK

can any one give me a schematic to haw can i connect those pins to arduino mega
many thanks to all

you can connect it to mega either in serial mode(few wires) or parallel mode(more wires need)

measure resistance between Vdd and PSB and post it here

KASSIMSAMJI:
you can connect it to mega either in serial mode(few wires) or parallel mode(more wires need)

measure resistance between Vdd and PSB and post it here

thanks for answering
i want to connect all glcd pins to arduino mega

ali8877:
thanks for answering
i want to connect all glcd pins to arduino mega

that's parallel mode then, CS1=pin15 =psb and CS2=pin16=NC

i have same lcd connected in serial mode , and works pretty fine

KASSIMSAMJI:
that's parallel mode then, CS1=pin15 =psb and CS2=pin16=NC

i have same lcd connected in serial mode , and works pretty fine

many thanks for you

can you have a look on those pins

1- GND
2- VCC +5v
3- V0 +5v
4- RS what pin of arduino
5- R/W pin 35
6- E pin 37
7- DB0 pin 22
8- DB1 pin 23
9- DB2 pin 24
10- DB3 pin 25
11- DB4 pin 26
12- DB5 pin 27
13- DB6 pin 28
14- DB7 pin 29
15- PSB pin 33
16- NC pin 34
17- RST +5v
18- Vout GND
19- BLA
20- BLK

is it correct ?
Thank you and sorry if i bothered you

This is a ST7920 based display and not a KS0108 display.

Connecting Vout to GND may probably damage the voltage converter. If contrast setup is not used, you should leave pin Vout open.
PSB pin is an input pin, which has to be fixed to +5V (Parallel Mode) or GND (Serial Mode).
If you want parallel mode, you need to connect PSB pin to +5V.

Which library do you want to use? Bill's openGLCD probably will not work (unless ST7920 support got added recently).

Oliver

olikraus:
This is a ST7920 based display and not a KS0108 display.

Connecting Vout to GND may probably damage the voltage converter. If contrast setup is not used, you should leave pin Vout open.
PSB pin is an input pin, which has to be fixed to +5V (Parallel Mode) or GND (Serial Mode).
If you want parallel mode, you need to connect PSB pin to +5V.

Which library do you want to use? Bill's openGLCD probably will not work (unless ST7920 support got added recently).

Oliver

i connected it in a serial mode and it's works great
many thanks for you