PDA

View Full Version : Serial GLCD, how?



mindthomas
- 14th April 2008, 14:30
How can you display a image or text on a GLCD (parallel), with PBP?
And is it easier if you use a serial converter - this one:
http://www.mikroe.com/en/tools/glcd/serial/128x64/

Anyone who has some codesnippets for the Serial Interface?

Best Regards
Thomas Jespersen

duncan303
- 14th April 2008, 15:03
Hi

I haven't been following your threads closely but thought you might like to take a look at these units from 4dsystems

www.4dsystems.com.au/prod.php?id=10

mix and match they are very easy to use... good support etc

worth a look maybe

Duncan

mindthomas
- 14th April 2008, 15:10
Hi

I haven't been following your threads closely but thought you might like to take a look at these units from 4dsystems

www.4dsystems.com.au/prod.php?id=10

mix and match they are very easy to use... good support etc

worth a look maybe

Duncan
It's because i have bought a 128x64 GLCD KS0108 with TouchScreen: http://www.mikroe.com/en/tools/components/
But now i don't know how to write to the Display!

duncan303
- 14th April 2008, 16:35
whoooaa

I cut and pasted this


128x64 GLCD KS0108

into google uk home

and got this back as the very first hit


www.picbasic.co.uk/forum/showthread.php?t=2879

any use to you?

Trying to help

Duncan

can cats speed type reliably?

mindthomas
- 15th April 2008, 06:12
[QUOTE=duncan303;54401]whoooaa

I cut and pasted this



into google uk home

and got this back as the very first hit


www.picbasic.co.uk/forum/showthread.php?t=2879

any use to you?



Duncan

can cats speed type reliably?

Thanks, but it's for paralell GLCD's, as i have bought a serial connerter, it's that i'm asking about.
But else, thanks!!

mister_e
- 15th April 2008, 06:20
I think what Duncan's wanted to show you, is what you'll find at the bottom of the page... a PBP code example. They also explain few things as well.

http://www.compsys1.com/workbench/On_top_of_the_Bench/KS0108/ks0108_controller.html

OOOPs sorry... saw you asked for the serial code example... damn... http://www.mister-e.org/Pics/Mecontent08

mindthomas
- 15th April 2008, 14:32
I think what Duncan's wanted to show you, is what you'll find at the bottom of the page... a PBP code example. They also explain few things as well.

http://www.compsys1.com/workbench/On_top_of_the_Bench/KS0108/ks0108_controller.html

OOOPs sorry... saw you asked for the serial code example... damn... http://www.mister-e.org/Pics/Mecontent08

Ohh yes.
But aren't there anyone who knows the control commands for a MCP23S17 Serial->Parallel chip?

skimask
- 15th April 2008, 14:43
But aren't there anyone who knows the control commands for a MCP23S17 Serial->Parallel chip?

http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf

1st Google hit...

mister_e
- 15th April 2008, 15:49
This device can be used in SPI mode. Page 8 of the above PDF show you how to process with.

Nice starter, is to compare a working code example and modify it for your need. The following is for 93LC56A EEPROMs

http://www.melabs.com/resources/samples/x1/pbp/mwx.bas

First i would suggest you to begin with parallel mode, then once you exactly know how your GLCD work, add the serial interface in between (after having done some tests with)

mindthomas
- 15th April 2008, 16:39
http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf

1st Google hit...
Thanks. But how to control a display with that!
But to you Mister_E - Yes, i will try parallel first, but how could i port that to serial?

Thanks for all your answers until now.

skimask
- 15th April 2008, 16:51
Thanks. But how to control a display with that!

Small steps...That's how you control a display with that.

From what I've read, you're trying to build a working Particle Accelerator with duct tape, 2x4's, a shovel, and 3 pounds of cat litter....and make it work on the first try......

Small steps....
Build something, get it working, build something onto that, get that working, integrate the two, and so on and so on...

mister_e
- 15th April 2008, 17:03
Yes, i will try parallel first, but how could i port that to serial?
Well, let's see. Once you have the parallel thing working, you'll know how the timing is implemented, and how the holly blue beast work... then it's just a matter to change some PORT read/write lines to SHIFTIN/SHIFTOUT statements.

Be warned... the GLCD refreshing will be slower... or way slower. I never tried any serial thingy until now.

New Compiler? Well i thought it was you here (http://www.picbasic.org/forum/showpost.php?p=61268&postcount=1) ;)

No problem at all, i was just kidding a little bit!

Acetronics2
- 15th April 2008, 17:18
Hi, Steve

Don't you think MkB could have the looked-for code snippet ... ???

Regards from France

Alain

mister_e
- 15th April 2008, 17:20
Well that have it online on the product page.
http://www.mikroe.com/zip/adapters/serial_128x64_board_examples.zip

Unless you're using their compiler, it's not going to help huh?

Acetronics2
- 15th April 2008, 17:35
I had a look to what could be done ...

But, as "minimal" code exceeds 2k ... license is needed just to watch the assembler, as their libraries are not 'readable' ...

LOL !

Our friend will have to code serially every GLCD Command ... and then write the full GLCD "user" sequence.
Good hair pulling sequence in sight !!!

Do you begin to understand how the 1 Page PbP + Custom libraries limit is a problem ???
Everything is to do by one's own ... here.

Alain

mindthomas
- 16th April 2008, 06:42
I had a look to what could be done ...

But, as "minimal" code exceeds 2k ... license is needed just to watch the assembler, as their libraries are not 'readable' ...

LOL !

Our friend will have to code serially every GLCD Command ... and then write the full GLCD "user" sequence.
Good hair pulling sequence in sight !!!

Do you begin to understand how the 1 Page PbP + Custom libraries limit is a problem ???
Everything is to do by one's own ... here.

Alain
Do you have a code, cause i have a licensed version of Pic Basic Pro??

Acetronics2
- 16th April 2008, 08:57
Thomas

You should be DUMB and BLIND ... no such code available "already cooked' aboard this forum ... we might know it !!!

Alain

duncan303
- 16th April 2008, 12:10
Do you have a code, cause i have a licensed version of Pic Basic Pro??

All the guys trying to help you out are doing so out of pure kindness and generosity, you might be (are) misinterpreting this.

The forum appears to have no association with MeLabs, if you have any feeling that you should be supported and have your code written for you, simply because you have purchased PBP then you should maybe think about emailing MeLabs and taking this matter up with them directly.

I sense that you are maybe a very young chap who wants to get a piece of kit going urgently so that you can place a demo on youtube, well there is nothing wrong with that at all. Any young person wanting to get into electronics has to be music to anybody's ears, and should be encouraged.

However.............................unless you manage to find either a benefactor/mentor, or you pay somebody, or (best choice) take it very slow and learn how to do it gradually yourself.....

its looking very much like your project simply just ain't going to happen mate.



________________________

skimask
- 16th April 2008, 13:39
All the guys trying to help you out are doing so out of pure kindness and generosity, you might be (are) misinterpreting this........
its looking very much like your project simply just ain't going to happen mate.
You have quite possibly found the very nicest way of saying what I've been thinking....
But I surely wasn't going to say it like you did in such a polite tone! :D (Actually I was going to say it, but you beat me to it!)
Maybe the title of the thread should've been...."Serial GLCD, gimme?"

mindthomas
- 16th April 2008, 15:00
I understand. I will try the Parallel first from Compsys and then build it to my own requirements!
Then i could ask in the future about Serial Interface...

Thanks!