240x64 T6963 with Arduino Uno R3

Hi,

I've tried to search the forum and the web for the answer, but no luck. I've spend days searching and tinkering, but still no luck.

I want to run a 240x64 with a t6963 Controller using the Arduino Uno R3. I am attempting to us u8GLib.
Based on their construct:
U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, 12, 13, 2, 3, 1); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16

So I have it wired as:

Arduino LCD
9 D0 12
8 D1 11
7 D2 13
6 D3 14

5 D4 15
4 D5 16
3 D6 17
2 D7 18

10 CS 19 cs = fs? Character selection?
11 A0 8 a0 = cd
12 WR 5
13 RD 6
1 RS 10

Here's the manufactor's data for the T6963:

I'm confused as to what CS, A0.

Can anyone shine some light?

First, see that the numbers on the constructor do not match your wiring.
per constructor, D0 should be at pin 8, whereas you did wire D1 at pin 8.
a0 is probably r/s or RS (register selelect) in your datasheet.
fs must be fixed to GND
Oliver

If i wire 8 to DB0, where how will I wire DB7? Counting down it lands on 1. I don't see a CS in data sheet, but I see an FS (font selection). Also, how how I handle power? I attached the data sheet in the original posting.

DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7
8 7 6 5 4 3 2 ?

A0(RS) WR RD CS(F/S? Font selection?)
? 9 10 GND?

VSS VDD Vo
GND 5V 10K Pet

Also, when I wire something to analog, how do I pass it as parameters to the constructor? I saw that it took numbers, so I assume I can't pass analog to it.

U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, 12, 13, 2, 3, 1);

This is the LCD Data Sheet

Pin Symbol Level Function
1 FG GND Frame Ground
2 Vss 0V GND(0V)
3 Vdd 5V Supply Voltage for Logic (+5V)
4 Vo -10V Supply Voltage for LCD
5 WR L Write Signal
6 RD L Read Signal
7 CE L Chip Enable Signal
8 C/D H/L L:Data H:Instruction Code
9 NC No Connection
10 /RST L Reset Signal,Active Low
11 DB0 H/L Data Bus Line
12 DB1 H/L Data Bus Line
13 DB2 H/L Data Bus Line
14 DB3 H/L Data Bus Line
15 DB4 H/L Data Bus Line
16 DB5 H/L Data Bus Line
17 DB6 H/L Data Bus Line
18 DB7 H/L Data Bus Line
19 FS H/L Font Selection L:8x8,H:6x8
20 NC Not Connected
21 LEDA +5V LED Backlight Anode
22 LEDK 0V LED Backlight Cathode

ok, i did respond to similar questions in some older threads. In fact i created a long description on how to setup a t6963 display in one of the threads. However, forum search is not working for me since the last forum update. Maybe you can try to search for this thread by ourself.
The constructor for u8glib just takes the pin numbers. And you can also use the analog pins. No problem.
A bigger problem might be the required voltage. Some -15V are required for the display. Some displaymodules include an internal negative voltage inverter, but most displays do not have this NIV. If your display does not have a -15V output, you need to create a -15V source externally.
Oliver

I tried searching, but no luck.

I found something that seemed correct, I tried it but failed.
http://forum.arduino.cc/index.php?topic=22624.0

A person said that he got it working using:
Data : bits 0->7 : digital pins 2->9

Ctrl : WR : analog pin 0
Ctrl : RD : analog pin 1
Ctrl : CE : analog pin 2
Ctrl : CD : analog pin 3
Ctrl : RESET : analog pin 4
Ctrl : FS : analog pin 5

U8GLIB_T6963_240X64 u8g(2, 3, 4, 5, 6, 7, 8, 9, CS, A0, WR, RD, RS);

But how to set up the constructor for u8G to take that?

So, based on what you've mention, going down from 8 on the Arduino, that leave one DB pin left. Where should I put this? In theory, this is what I think I should work:

DB0 Di8
DB1 Di9
DB2 Di10
DB3 Di11
DB4 Di4
DB5 Di5
DB6 Di6
DB7 Di7

-10V
5V
GND

A0 A0
CS A4 Datasheet doesn't show CS, and you said should be fixed to ground.
WR A1
RD A2
RS A3

Based on this constructor:
// 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16

So should my constructor be:
U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, a0, a1, a2, a3, a4);

U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, a0, a1, a2, a3, a4);

Yes, but you need uppercase A, like A0, A1, etc.
The forum search does not work at all at the moment, so finding my old post seems tto be impossible :frowning:

Oliver

Here are some of my old posts (still a nightmare to find them and still i did not found my wiring instructions):
http://forum.arduino.cc/index.php?topic=259957.0
http://forum.arduino.cc/index.php?topic=242095.0
http://forum.arduino.cc/index.php?topic=203519.msg1688787#msg1688787

Hi Oliver
Im trying to use a MSG24064c display (has a 256 K ram chip) with the uno, The display uses a T6963CFG controller. Ive wired it all up as per t6963, and using the constructer for uno and the t6963 in the u8glib file downloaded hello world, the display flickers for a mo then nothing, at all contrast settings. Any ideas?
thanks,
Duncan
controller-Arduino
2-gnd
3-5v
4 -contrast adj (to potentiometer wiper, either end of potentiometer to pin 9 and gnd)
5(WR)-A3
6(RD)-A4
7(CE)-A0
8(C/D)-A1
9(-volts out to potentiometer)
10 (reset)-A2
11,,18(DB0,,DB7)-8,9,10,11,4,5,6,7,
19 (FS)-gnd

Hi

Do you have any Datasheet for this display?
What is the voltage at pin 4 and 9? It should between -10 and -15 with respect to GND.

Oliver

Thanks for getting back, I suspect it something stupid, but pin 9 to gnd -16.4v potentiometer feeds this back to pin 4 at -8v at present, can adjust obviously.

datasheet at Home | GMS – Display Systems

Im running all power from arduino, 3.3v is powering backlight leds.

I can adjust contrast to give me a darker block of pixels through to white.

ok, fine. What is your u8glib constructor? You named the wiring, but maybe a picture of the setup might be nice also for crosscheck.

Oliver

constructer: U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, A0, A1, A2, A3, A4); -cut and pasted

3 spare wires are 1 frame ground, pin 9 (-ve V supply) both coiled and 20 NC.cut short

The constructor is:
U8GLIB_T6963_240X64(d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd [, reset])
however you wrote this:
5(WR)-A3
6(RD)-A4
7(CE)-A0
8(C/D)-A1
9(-volts out to potentiometer)
10 (reset)-A2

so it should be:
U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, A0, A1, A3, A4, A2);

Oliver

OK, seeing the logic here, tried that, got a brief change of contrast, and a white line, then back to before. I think we are on the right track though...

Should I re-wire
10 (reset) -A4
5(WR)-A2
6(RD) -A3

All your help very appreciated!

update: So unable to wait (no patience me I gotta try it (lol) , I rewired anyway and got the same...:frowning:
Interestingly..if I then tried your constructor which now should be wrong, the display contrast and white line become permanent! (till next download) I'm using hello world sketch btw.

update: Question; is a0 register select same as command/ data read/write (C/D) ?

I did not understand why you want to rewire something. Just wire it in any way and tell u8glib how the display is connected to your Board.

Yes. register select is identical to a0 or command/data line. There are different names in the datasheets.

Oliver

Just as easy as editing all the sketch files I've altered, and it standardizes with anyone else which should make troubleshooting easier. (I say should!)
Would you agree it should be OK now
If I press reset on the arduino, then I get the same effect; a brief "white line and change of contrast to darker blue"
checked my wiring (3rd time) and OK.

Hmm... Yes it should be ok now.
At this time i usually activate my scope to trace all signal lines.

Oliver

I don't have a scope, but Ive tested all leads for continuity, guess the displays dead.