4bpp driver available?
Proptest
Posts: 10
in Propeller 1
Has anyone mechanized a 4bit-per-pixel driver with arbitrary (well, the usual 96-color) pick-from-palette? I found the NTSC4x driver by Eric Ball, but it looks like the palette is somewhat fixed. I have seen how the DMA hardware supports 1bpp and 2bpp, and that other driver (also by E. Ball) that uses 2bpp and varies the color field to obtain 8bpp. I'm trying to obtain a tinted grayscale image capability (actually, greenscale, to emulate a cathode ray oscilloscope display). 4bits per pixel would give me as many gray levels as I can get from the 3-bit resistor DAC and a few more colors for display background and miscellaneous markup.
Comments
Jim Bagley made one, but it was moderate resolution. 128 pixels or so horizontal.
Now, Eric's 8bpp and the basic 2bpp driver are easy enough to work with so far. Are there any pre-built examples using 1bpp ?
Any of them can be modified fairly quickly though. All that is needed is to adjust the number of waitvids per line / tile, or whatever to account for double the number of pixels per byte. All else stays the same, VSCL, etc...
The other thing that will need to be done is to switch from 4 color to 2 color for the graphics area, and back to 4 color for the sync / signal area.
I think TV.spin has a 2 color option as well.
I did the 80 column 2 color driver. It's complicated, due to the effort needed to get character attributes, but the 2 color code in that makes sense.
If the OP has a target driver, maybe it's not too tough to suggest some modifications to it.
http://propellerpowered.com/forum/index.php?topic=415.0