128x64 lcd with a t6963?

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I cant figure out how to init this thing. Seems like the 'graphic area' param is the number of bytes per line. 128 pix /8 =16, but I try to draw a 128x64 box with an X thru it from corner to corner, and it all draws in the left 3/4s of the lcd, and leaves about 40 pix blank over on the right. When I fill the screen with vertical lines, I see the extra section on the right filling in I got a bunch of these thngs at skycraft real cheap. I wonder if they have some wierdness about them that caused them to wind up in the surplus place? (Naturally, sw guy immediately suspects a hw problem...) Very humbling. It will undoubtedly turn out to be the typical hw problem... I usually find a loose nut behind the keyboard....

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob, I had this trouble once a long time ago. It turned out to be a font size hardware setting with the Graphics LCD I was using. Once I fixed the problem I could draw anywhere on the screen I chose at any location I chose as well. Don't forget, font size 8x8 or 5x8 effects display memory settings. So drawing on the screen will be different.
Of course this may not be your problem. Maybe it's a software setup problem?
Hope this helps.
Pete :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Don't forget, font size 8x8 or 5x8 effects display memory settings. So drawing on the screen will be different.

Pete, since i'm currently playing with the exact same device, i'm also interested in any issues around such a display. How would the font setting, which only applies to text data, affect the display of graphical data?

-- Thilo

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If I remember well, acelink1 is true, it's a question of column width. It can be 6 or 8 pixel wide. You can configure it by pulling high or low pins off the screen. There is a pin for text width and also a pin for graphic width (32 or 40 column) called MD2 on mine for graphics, and FS for the text.

Hope it helps :-)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have this:
http://www.densitron.com/editor/pdfs/t6963appnotes1995.pdf

Looks like the Graphic Area Set (GA) command takes the number of columns (so not bytes in case the selected font is 6x8).

/Lars

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Example program can be found from
http://www.metsys.fi/ana, text is finnish but program example is codevision-c
example:http://www.metsys.fi/ana/image/m...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

acelink1 wins the prize! I had left the 'font select' pin floating hi on the end of the connector. (basically I didnt have enough pins). My test pattern box filled the screen when I grounded it. Seems like it throws away every 4th pixel in the 6 char wide mode. This explains why some boxes were missing a side and why my nice diagonal line from corner to corner was little 4 pix segments AT THE WRONG ANGLE. I swear I had used that same bresenham line draw in another project and it worked fine! So the lesson is, in text mode, you can cram a few more chars on a row by putting it in 6x8 char mode, but it basically wrecks graphics in that mode.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
So the lesson is, in text mode, you can cram a few more chars on a row by putting it in 6x8 char mode, but it basically wrecks graphics in that mode.

A harsh lesson there, is it not just a matter of configuration (probably the Graphic Area Set command I wrote about previously)?

/Lars