Page 3 of 4

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 8:40 am
by waeV
LCD Module

I found this one on eBay, and I think it's the closest yet. This one actually lists the controller, so that's set. My next concern would be it's portrait orientation. Can it be hooked up to act as a landscape 320x240 screen?

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 11:04 am
by benryves
Looks terrifying to solder. ;) The controller looks pretty decent (I haven't read the datasheet fully, but it seems to support a number of different interfaces including the basic 8-bit direct transfer suitable for the Z80). Either way, does it matter that it's 240x320 instead of 320x240?

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 11:11 am
by waeV
Ok, again, I'll keep looking, but this looks like the choice I may go with.

It only matters if I end up getting something like this:
Image

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 11:47 am
by tr1p1ea
Turn it on its side and change up your graphics routines?

Thats pretty cheap tho, i might just get one :).

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 12:33 pm
by benryves
Well, you'll need to write the LCD driver yourself in any case. The LCD I'm using has bytes arranged vertically, like this:
Image
instead of this, on the TI:
Image
...which took a bit of getting used to!

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 12:38 pm
by tr1p1ea
Did you already mention the raycasting advantage that presents?

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 1:17 pm
by benryves

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 8:57 pm
by waeV
Well, you'll need to write the LCD driver yourself in any case.
What would that entail?

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 10:01 pm
by benryves
As in, when you draw something within the OS (be it text, a line, a bitmap or what have you) those graphics commands will have to end up affecting the output on the screen. Different LCD modules will have different methods of communication and different commands. For example, on the TI-83+ you have a single memory for the entire screen, can control the number of bits written to memory on each data write (6 or 8 ) and you can control how the "cursor" controlling where data is written to moves after each write (up, down, left or right). My LCD has two subregions (each 64x64 pixels) and you can write to the left one, the right one, or both on each command. Both versions of BBC BASIC (the one for the TI-83+ and for my own computer) share similar drawing code but have very different code to handle outputting data from the graphics buffer to the LCD.

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 10:17 pm
by waeV
So will this driver be inherent in the wiring? Or will it be software?

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 10:46 pm
by benryves
Software. You send commands to the controller chip to change what it displays on the LCD. What your software driver does depends on the format of these commands as documented in the datasheet.

Re: DIY Z80 Computing

Posted: Wed 10 Dec, 2008 11:09 pm
by waeV
Wouldn't that interfere with SymbOS / whatever I manage to get on there?

Re: DIY Z80 Computing

Posted: Thu 11 Dec, 2008 12:54 am
by benryves
I don't know how SymbOS talks to the hardware, sorry. You may have to source a clone of the video chip used in the MSX2/CPC/whatever hardware SymbOS targets if you can't write your own video driver.

BBC BASIC makes high-level calls to the host interface (eg PLOT, CLS, CLG, OSWRCH) to output graphics and text. I'm not sure how SymbOS operates but it may do something similar. I can't really tell you what to do - if SymbOS is closed source and designed for particular hardware, about the best you can do is build a direct clone of that hardware and hope for the best.

Re: DIY Z80 Computing

Posted: Thu 11 Dec, 2008 11:02 pm
by waeV
You may have to source a clone of the video chip used in the MSX2/CPC/whatever hardware SymbOS targets if you can't write your own video driver.
Hmm... but I wonder how that would interface with the LCD?

This seems like it's getting harder every minute. Maybe I'll try and just get a linux shell running instead, or that other OS you linked me to.

Re: DIY Z80 Computing

Posted: Fri 12 Dec, 2008 12:23 am
by benryves
That depends on the output of the particular video chip in use.

Unfortunately you do rather complicate issues if you have a piece of closed software designed specifically to run on a very small number of platforms, as the only way to run it is to replicate those platforms.