CPLD replacement for ZX8301

Nagging hardware related question? Post here!
lliont
Trump Card
Posts: 240
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

Two commands for 16 color support in mode 8 are ready.

To enter the 16color mode: poke 98400,1

The first command is PLOT x,y,col sets the point at x,y to color col.
x,y take values 0..255, left down corner is 0,0 and col = 0..15

The second is COLSUBS x1,y1,x2,y2,col that replaces pixels with color col in the defined rectangle with the lighter version of the color
x1,y1,x2,y2 take values 0..255, left down corner is 0,0 and col = 0..7
x1,y1 is the left down corner and x2,y2 the right up corner

This is a test of plot command again in composite video & crt because although it does not produce the best picture it is convenient for me (it's on my desk :) ).
plot.png
qlmand.png


User avatar
Cristian
Aurora
Posts: 970
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: CPLD replacement for ZX8301

Post by Cristian »

Increasingly interesting...


lliont
Trump Card
Posts: 240
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

I made the pcb that has a 2 bit resistor dac and an AD724 video encoder.
The new composite video output is better and sharper but not perfect as it still has a little noise. The nice thing about it is that you don't have to add 3 resistors to the QL motherboard and can easily take it's output using the RF out RCA as video composite out.
The pcb also provides a scart output with the 16 color support.
The 2 bit/color dac gives some new color shades it is an improvement but small. It also gives a low and high brightness level output option to both standard video modes.

PCBPAL_F.png
PCBPAL_B.jpg
1674287116302.jpg
1674288959016.jpg
Using different bit weight for the 2 dac bits by changing resistor values can obtain different color differences between the dark and light colors to match one's taste.
Last edited by lliont on Sat Jan 21, 2023 10:03 am, edited 1 time in total.


lliont
Trump Card
Posts: 240
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

Composite video CRT:
Colsub.png
Composite video LCD:
lcd.jpg
The noise in the composite video signal was drastically reduced when instead of one 10uF electrolytic capacitor (C2) I used 2x 4.7uF ceramic multi-layer capacitors in parallel.


User avatar
Andrew
Aurora
Posts: 824
Joined: Tue Jul 17, 2018 9:10 pm

Re: CPLD replacement for ZX8301

Post by Andrew »

Why are the colors different between CRT and LCD?


lliont
Trump Card
Posts: 240
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

I suppose it has to do with the monitor/tv settings and probably with the camera.
Brightness setting was set higher in the crt.
With naked eye the the light yellow in the crt monitor looks very light yellow but in the photo it looks almost white.
Also this small lcd tv I use for tests is darker on top and brighter at the bottom of the screen.
Last edited by lliont on Sun Jan 22, 2023 6:37 pm, edited 1 time in total.


User avatar
Andrew
Aurora
Posts: 824
Joined: Tue Jul 17, 2018 9:10 pm

Re: CPLD replacement for ZX8301

Post by Andrew »

lliont wrote: Sun Jan 22, 2023 6:29 pm With naked eye the the light yellow in crt is very light yellow but in the photo it looks almost white.
I thought it was the standard color white!
Well, when will you produce a batch of replacement ULAs? I believe I'm not the only one who wants to buy one :D


User avatar
XorA
Site Admin
Posts: 1382
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: CPLD replacement for ZX8301

Post by XorA »

When does Derek start assembly of them :-D


lliont
Trump Card
Posts: 240
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

I think I'm near the final version.
I'll find out the cost to produce a bunch of assembled pcbs and we'll see.


User avatar
Andrew
Aurora
Posts: 824
Joined: Tue Jul 17, 2018 9:10 pm

Re: CPLD replacement for ZX8301

Post by Andrew »

Would it be too difficult to have 8 colors in mode 4?


Post Reply