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

Post by drewappling » Wed Dec 23, 2009 11:43 pm

Thanks for the help so far.

Have a Merry Christmas!!

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

Post by drewappling » Mon Dec 28, 2009 9:54 pm

Hello again,

Well... I received the 18F4620s this morning and have been attempting to setup the display(with no luck).

Here is what I have for code:
Device = 18F4620
Clock = 32
Config
OSC = intio67

#option GLCD_MODEL = T6963c '<<<********* Select Toshiba driver

#option GLCD_DATA = PORTD // data port
#option GLCD_CE = PORTB.0 // chip Enable
#option GLCD_RD = PORTB.1 // RD pin
#option GLCD_RW = PORTB.2 // RW pin
#option GLCD_CD = PORTB.3 // Command/Data High=Cmd , Low=Data
#option GLCD_RST = PORTB.4 // reset pin


Include "utils.bas"
Include "Graphics.bas"
Include "GLCD.bas"


SetAllDigital()

GLCD.Cls

GLCD.WriteAt(4,5,"Test")


I'm not seeing anything on the display, I've tried connecting to PortC as well with no luck.

Pin out of the GLCD:
(1) FG/Vee
(2) Vss
(3) Vdd
(4) Vo
(5) /WR PortB.2
(6) /RD PortB.1
(7) /CE PortB.0
(8) /CD PortB.3
(9) /RST PortB.4
(10 - 17) DB0 - DB7 Connected to PortD0 - 7
(18) FS H:6*8, L: 8*8
(19) LED B/L -
(20) LED B/L +

Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Wed Apr 21, 2010 11:39 am

Similar issue here just getting garbage out of the display

Code: Select all

Device = 18F6720
Clock  = 40
Config OSC=EC
#option GLCD_MODEL = T6963c   '<<<********* Select Toshiba driver
#option GLCD_MODE = 8080         // GLCD interface mode - 6800 or 8080 
#option GLCD_DATA = PORTD        // data port
#option GLCD_CE  = PORTE.2        // chip Enable
#option GLCD_RD  = PORTE.0        // RD pin
#option GLCD_RW  = PORTE.1        // RW pin 
#option GLCD_CD  = PORTE.3        // Command/Data   High=Cmd , Low=Data
#option GLCD_RST = PORTE.4       // reset pin


Include "utils.bas"
Include "Graphics.bas"
Include "GLCD.bas"

Include "FixedFont.bas"
Include "Arial.bas"
Include "Garamond.bas"
Include "Tahoma.bas"
Include "Verdana.bas"
Include "Times.bas"
'Include "SimSunFont.bas"   '<*** Unicode Chinese font bloc 

SetAllDigital()

GLCD.Cls	

'GLCD.WriteAt(4,5,"System Font")

'GLCD.SetFont(ArialBold)
'GLCD.WriteAt(4,11,"Arial Font")
'GLCD.SetFont(GaramondBold)
'GLCD.WriteAt(4,20,"Garamond Font")
'GLCD.SetFont(TahomaBold)
'GLCD.WriteAt(4,30,"Tahoma Font")
'GLCD.SetFont(VerdanaBold)
'GLCD.WriteAt(4,40,"Verdana Font")
'GLCD.SetFont(TimesNewRomanBold)
'GLCD.WriteAt(4,50,"Times New Roman")

'GLCD.WriteAt(4,68,"Full UNICODE Support in")
'GLCD.WriteAt(4,78,"SWordFish BASIC with")
'GLCD.SetFont(TahomaBold)
'GLCD.WriteAt(4,88,"GLCD Font Creator 2")

Line(160,1,200,40)
Circle(200,60,38)
Rectangle(160,10,220,80)

While true
Wend
similar results to drewlapping

display is a bolymin BG240128B2 series

anyone got any ideas controller is Toshiba branded T6963CFG
If you can read this you are too close

MattH
Registered User
Registered User
Posts: 51
Joined: Mon Jan 01, 2007 8:03 pm
Location: Allentown, PA

Post by MattH » Wed Apr 21, 2010 2:37 pm


Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Wed Apr 21, 2010 3:09 pm

Using external oscillator EC 40mhz have adjusted xdelay , size is correct 240*128 spent all day hunting for an issue.

tried 2 displays same garbage adjusted char width from 8 (32 char) to 6 (40char) seem different every time ,, connected from a milled PCB via a very short ICD lead (maybe 2") weird.
If you can read this you are too close

MattH
Registered User
Registered User
Posts: 51
Joined: Mon Jan 01, 2007 8:03 pm
Location: Allentown, PA

Post by MattH » Wed Apr 21, 2010 5:17 pm

I'm using the T6963 module for quite some time w/out any problems.
Also none of my displays has the option:
#option GLCD_MODE = 8080 // GLCD interface mode - 6800 or 8080

Here is my header for an BIGPIC (ME) development board:

Code: Select all

Device = 18F8722
Clock = 40
Config OSC = HSPLL

#option GLCD_MODEL = T6963c   '<<<********* Select Toshiba driver
#option GLCD_DATA = PORTH        // data port
#option GLCD_CE  = PORTJ.0        // chip Enable
#option GLCD_RD  = PORTJ.3        // RD pin
#option GLCD_RW  = PORTJ.2        // RW pin 
#option GLCD_CD  = PORTJ.1        // Command/Data   High=Cmd , Low=Data
#option GLCD_RST = PORTJ.4       // reset pin
The display I'm using is from Crystalfontz

Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Wed Apr 21, 2010 5:36 pm

Thanks for looking at it matt.
The option port 8080 I put in after i tried everything else and remed it out as soon as I saw it wasn't required.

My header is right for my board

Code: Select all

Device = 18F6720 
Clock  = 40 '40mhz external clock module
Config OSC=EC ' set OSC mode to External clock source

#option GLCD_MODEL = T6963c   '<<<********* Select Toshiba driver
#option GLCD_DATA = PORTD        // data port DB0>7 connected to RD0>7 on pic
#option GLCD_CE  = PORTE.2        // chip Enable
#option GLCD_RD  = PORTE.0        // RD pin
#option GLCD_RW  = PORTE.1        // RW pin
#option GLCD_CD  = PORTE.3        // Command/Data   High=Cmd , Low=Data
#option GLCD_RST = PORTE.4       // reset pin
so not sure what's going on display is bolymin not crystal fonts but the controller is an original Toshiba T6963CFG (not sure if the FG makes a difference) line and column drivers are AVANT's.

Only thing I can see as different in my wiring to octtals lib is MD2 is tied low (40 column mode high is 32) but I changed Const GLCD_FONT_WIDTH = 6 so should be right , but im getting different garbage every reset.

I will try slicing and dicing the IDC and tie the MD2 line high tomorrow and set Const GLCD_FONT_WIDTH = 6 back to 8 ,, see if that helps but i doubt it ; lol

Thanks for helping out tho , if your interested I can send the bolymin DS if you PM me an e-mail addy
If you can read this you are too close

MattH
Registered User
Registered User
Posts: 51
Joined: Mon Jan 01, 2007 8:03 pm
Location: Allentown, PA

Post by MattH » Wed Apr 21, 2010 5:57 pm

As far as I remember, GLCD_FONT_WIDTH = 6 should be set for "8"
(30 colums). The font libs are based on font width=8. Also check for an "FS"
Font select pin on your lcd. This should be hard wired to ground or VCC.
If you can, try to use a crystal (e.g. 10MHz) with PLL enabled instead of EC.

RKP
Registered User
Registered User
Posts: 82
Joined: Mon Oct 22, 2007 3:14 pm
Location: Maryland

Post by RKP » Wed Apr 21, 2010 6:42 pm

Raistlin,

Try adding this line:
MEMCOM = %10000000
after the SetAllDigital() line.

If it works, here is why. From the data sheet pg. 111 (Page 113 on PDF)

PORTD is multiplexed with the system bus as the
external memory interface; I/O port functions are only
available when the system bus is disabled, by setting
the EBDIS bit in the MEMCOM register
(MEMCON<7>). When operating as the external memory
interface, PORTD is the low-order byte of the
multiplexed address/data bus (AD7:AD0).

On reset, bit 7 of MEMCOM is reset to 0 :roll:
You need to set to 1 to disable that functionality.

Hope this make it work for you,
RKP :)

Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Wed Apr 21, 2010 7:39 pm

Hi thanks for the tips. FS (font select) is tied to VCC going by the data-sheet that's a 6*8 font low is 8*8 , will try slice and dice to gnd along with MD2 which is set low (40 column) will splice that high for 32.

Good catch on the memcon register thanks, didn't work but is an issue less to worry about , I knew it was multiplexed with the address data extended bus but didn't think it would be set by default :) my bad case of i should RTFM ; lol

I am still not 100% sure on what's going on as the garbage isn't predictable but my lines to my SIL connector are only 1" long and have a through hole plated gnd plane between them from the bottom copper pour. The length of the ribbon is only about 2" and all power lines are well decoupled , i'll plop the scope on it :).

I will try the slice n dice tomorrow (custom PCB so will have to do it on the ribbon) if that doesn't help i'm gonna need to pick through the data sheet and see what if anything the difference between T6963CFG and T6963C is or say balls to it and get in a crystalfontz ,, so expensive though its unfunny not good on a BOM.
If you can read this you are too close

Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Wed Apr 21, 2010 10:14 pm

what crystal fontz display you using
I am checking http://www.crystalfontz.com/product/CFAG240128L-TMI-TZ
if I order 10 in i get em cheaper than from taiwan atm
If you can read this you are too close

MattH
Registered User
Registered User
Posts: 51
Joined: Mon Jan 01, 2007 8:03 pm
Location: Allentown, PA

Post by MattH » Thu Apr 22, 2010 12:08 am

I have a CFAG240128LSTITZ

Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Thu Apr 22, 2010 6:04 am

Same screen by the looks but yours is STN and the cheaper one i quoted is TN not as flash but a nice chunk cheaper. Whats their delivery like ? from order to shipping.

Still not got chance to slice n dice , but comparing the datasheet it looks identical to the bolymin one I have , except MD2 and FS are brought out on the same pin
If you can read this you are too close

MattH
Registered User
Registered User
Posts: 51
Joined: Mon Jan 01, 2007 8:03 pm
Location: Allentown, PA

Post by MattH » Thu Apr 22, 2010 11:41 am

Whats their delivery like ? from order to shipping.
Less than a week incl. shipping from Cal to PA.

Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Thu Apr 22, 2010 8:45 pm

well no joy im afraid ,, i will scope it out but think i might order a couple of crystalfontz in the meantime

did all i mentioned still noting or garbage
If you can read this you are too close

Post Reply