Propeller VGA text in C
Sapphire
Posts: 496
I'm doing a project to replace a monitoring system that currently uses a PC-based VGA text display to show the status of hundreds of devices in the system. Different colors are used to show the current status in a VGA text screen format, as shown below. Because the original application is written in C, I would like to port as much of it over to the propeller in C to maintain its functionality. What I'm having trouble determining is if the propeller can generate the 80x25 character VGA text screen. The vgatext library only allows a 30x14 character screen, and that would not be sufficient for this application. Only the basic 8 colors are used, so high-res color is not important, but the amount of text to display is. Can anyone tell me if 80x25 character VGA text is possible on a propeller in C, and if there are any existing functions for doing so? Thanks!
http://forums.parallax.com/attachment.php?attachmentid=110911&d=1410385799
http://forums.parallax.com/attachment.php?attachmentid=110911&d=1410385799
Comments
I should have mentioned that. It's 640x480 resolution. That's a 16 color mode, but we only use the first 8 colors. It's currently running on a Dell LCD monitor from a VGA graphics card. Would the Prop's VGA signals differ enough to confuse the monitor? It doesn't have to be 640x480 though if another resolution could provide the 80x25 text. That's critical piece.
Sure would appreciate any drivers you have for this, as I'd really like to try using a Prop to replace the PC for this application.
I don't have anything ready to go but can look into it.
I stand corrected. It's 720x400 with 9x16 characters. Sorry for the confusion on that!
But character size is not so critical here, as long as I can fit 2000 of them on the screen
Actually, that is not much of a concern for me although I prefer the VGA-text standard: 8-bits for character, 4-bits FG color, 3-bit BG color and 1-bit blink (we do use blinking text). They are interleaved, but it seems in a Prop driver that shouldn't matter if I'm going to use C functions to set the character and attributes. They could be two blocks of memory, all characters contiguous and all attributes contiguous.
Today I did reconfirm on the actual monitor it is 720x400 resolution.
That looks super! Wow, great job. The font is okay too.
What do I need to test it here?
The Propeller VGA output is dependent of a network of resistors for its output to get excellent color fidelity.
Early Parallax devices were a bit off on the values, so there was a big discussion about tweaking the resistor values to get a better match to the 75 ohm impedance and and to have the DAC output get a nice set of colors.
If you have difficulty with getting good differentiation between 8 VGA colors, this problem may still exist. I don't really Parallax ever acknowledging a production change. The quick fix is to add thee 130ohm smds to an existing board in key locations below the VGA connector.
Here is the link to the 2011 discussion. http://forums.parallax.com/showthread.php/135385-Better-VGA-DAC-resistors
This one just enables both text cursors (underline/block, blink mode). The frontend is still missing the usual UI object.