t6963c GLCD module

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

t6963c GLCD module

Post by drewappling » Mon Dec 21, 2009 10:05 pm

Hello Everyone,
I am having problems displaying on a 128x64 glcd screen that utilizes the t6963c controller. I'm using the module that octal posted on the wiki and test code as well. My connection is as follows:
RW(WR) - PortC.0
CE - PortC.1
RD - PortC.2
CD - PortC.4
RST - PortC.5
Data - PortD

I'm using an 18f45550 running at 48MHz
For some reason the display does not show anything.
I'm able to adjust the contrast but no text is displayed.

Here is the display http://www.crystalfontz.com/product/CFAG12864D-STI-TZ

Thanks in advance for any help given.
Drew

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Mon Dec 21, 2009 10:27 pm

Well... I found one of my problems, I was not properly initializing the clock.

I'm able to get the display to partially work, now I am just seeing what looks to be random characters that flash across the screen, this goes on for a few seconds then the screen goes blank.

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Mon Dec 21, 2009 11:04 pm

Here are a few photos of the issue.
Image
Image

User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

Post by octal » Tue Dec 22, 2009 11:27 am

Just a little question:
In the module T6963C source codes, did you changed the constants:

Code: Select all

Public Const
   GLCDWidth = 240,
   GLCDHeight = 128

to the real width/height of your display? since you are using a 128x64 disp, these constants should become:

Code: Select all

Public Const
   GLCDWidth = 128,
   GLCDHeight = 64
if you dont do it correctly data will be overwritten in memory !

Let me know the result :)

Regards
octal

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Tue Dec 22, 2009 4:15 pm

Yes I did, I also started commenting out all lines displaying text and graphics and turning them on one at a time and changing from 48 to 8 Mhz and removing the crystal and still no go.

I'll stop by Crystalfontz today to pick up a new screen and see if I ruined the one I'm testing.

Thanks,
Drew

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Tue Dec 22, 2009 4:38 pm

Do you have a non-USB device such as a PIC18F4620? If yes, try one - the USB devices are quite different (especially the oscillator module) and can be tricky to use. I have used octal's driver (and his excellent font converter) with 240x128 and 240x64 T6963C GLCD's and they work fine. Here is an example of the 240x64:

Image

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Tue Dec 22, 2009 4:47 pm

unfortunately the only device I have at the moment is a few 18f4550s.
I'll try your suggestion and order a few non-usb devices.

Drew

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Tue Dec 22, 2009 4:57 pm

Also, if you are going to get another display, I would highly recommend getting one that uses KS0108 controller. They are available in 128x64 and 192x64 and the SF driver for it is excellent and works really well. This is a project I did with a 128x64 using SF. It also has 24 touch buttons and a bunch of other stuff. BTW, say hi to Tim and Brent at Crystalfontz for me.

Image

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Tue Dec 22, 2009 5:01 pm

Will do, we manufacture the metal brackets for mounting their screens in computer towers.
BTW, what name do they know you by?

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Tue Dec 22, 2009 5:16 pm

I sent you a PM.

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Tue Dec 22, 2009 7:59 pm

I tried a new screen and still no go. Could it be interference across the jumper wires?

I also purchased a KS1080 model number CFAG12864B-TMI-VN, does anyone have a wiring diagram for this?

User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

Post by octal » Wed Dec 23, 2009 2:19 pm

Just to check something,
did you tried to control the GLCD (T6963C one) with the PortB pins instead of PortC pins ?

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Wed Dec 23, 2009 3:56 pm

No I didnt, I'll try that now.

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Wed Dec 23, 2009 6:33 pm

Taking octals advice I switched from PortC to PortB, there seems to be some improvement as I am seeing actual characters along with random lines on the screen.

One idea that I had this morning is that I should try using the internal oscillator but after reading more into the PIC18F4550 Datasheet I found that PLL is only available for an external clock source.... Alas, I decided to take rmteo's advice and order a few PIC18F4620s from Microchip, I should be seeing them early next week.

The main reason for a T6963C display is for the larger displays, I'm attempting to prototype with the 128x64 display but am going to use a 160x128 5"x4" display for the end product http://www.crystalfontz.com/product/CFAG160128E-STI-TZ

I'll keep troubleshooting with the PIC18F4550 until the new ones arrive.

Thanks for all of the help Octal and rmteo, I may be posting with more questions soon.

Drew

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Wed Dec 23, 2009 6:53 pm

The example in my previous post is actually a 240x128 T6963C (and not 240x64) - a size that Crystalfontz also sells. I have used their 160x128, it worked but there a few hardware quirks - we will discuss when you are ready. I highly recommend that you look at their 240x128 instead.

Post Reply