The reason native hi-res is only possible on the 1k zx81??

Discussions about Sinclair ZX80 and ZX81 Hardware
Post Reply
Freya
Posts: 16
Joined: Tue Feb 14, 2023 7:45 pm

The reason native hi-res is only possible on the 1k zx81??

Post by Freya »

I've heard conflicting things about this and wondered if anyone can tell me about hi-re graphics on the 1k zx81.

I heard it is because the 1k is static ram and the 16k ram pack uses dynamic ram?
What truth is there to this?
Is it something the ula is doing?
Some people install 32k in the zx81 as static ram but it still seems like it doesn't work?

I also heard it is to do with where the ULA looks for chars. It looks in the lower 16k of memory only?

I've not got a clear answer on this at all.
Can anyone help explain? :)
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: The reason native hi-res is only possible on the 1k zx81??

Post by 1024MAK »

It has absolutely nothing to do with the type of RAM technology used. As far as the system is concerned, it can’t tell the difference between SRAM and DRAM. So either type can be used for both normal use, or for storing a hi-res display.

The important point, is that for a true hi-res display, the RAM (either SRAM or DRAM) must be able to respond to normal reads AND respond to the Z80 refresh signal as if it’s a memory read. It’s tied into how the display system works.

The other point, is that some modern SRAM chips are too fast at responding to the control signals, and hence this messes up the timing.

The Sinclair 16K RAM pack (which uses DRAM chips) can be modified to make it hi-res compatible.

I hope this answers the first part your question.

The second part, the ULA basically steals the display data from the Z80, and feeds it a NOP (no operation) code. The Z80 then executes this and moves on to the next byte of display data. Meanwhile, the ULA has grabbed the data that the Z80 got from memory, and now converts it to a serial stream of data, which is the pixel data that goes to the video output, and hence to the screen.

The ZX81 memory map is divided into four.
  • The first (lower) 16K part, is the ROM (as it’s only 8K, you get a echo of the first 8K in the second 8K, this is due to partial decoding).
  • The second 16K part, is the normal RAM area. If a 16K RAM pack is fitted, it’s simple. If no RAM pack is fitted, there is still 16K of RAM as far as the Z80 is concerned. But the same 1K (for a ZX81) is duplicated/echoed fifteen times.
  • The third 16K is more echoes of the ROM.
  • The fourth, is more echoes of the RAM. However, it’s important to note that the hardware (the ULA) detects this, and hence ambushes the Z80 so that the display can be generated.
Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
Mustermann
Posts: 43
Joined: Sun Dec 22, 2019 12:09 pm
Location: Augsburg, Germany

Re: The reason native hi-res is only possible on the 1k zx81??

Post by Mustermann »

1024MAK wrote: Fri Feb 17, 2023 2:47 am
The other point, is that some modern SRAM chips are too fast at responding to the control signals, and hence this messes up the timing.

Mark
This can be fixed by delaying /RAMCS using a capacitor,
viewtopic.php?f=7&t=2120
adding some non inverting gates between /RAMCS and RAM chip or
rebuilding /RAMSC from addresslines, /MREQ and /RFSH (e.g. Wilf Rigters 64k RAM)
ZX81 issue 1 near to original state
ZX81 issue 1 56k internal ram with battery backup, UDG, CHR$128 and WRX enabled
Minstrel 3 ZX81 clone 64k with battery backup, UDG, CHR$128 and WRX enabled
Freya
Posts: 16
Joined: Tue Feb 14, 2023 7:45 pm

Re: The reason native hi-res is only possible on the 1k zx81??

Post by Freya »

Thanks 1024mak!

So a 32k internal zx81 ram upgrade can use all the different hi-res modes?
That's great news!

The ram upgrade disables the original 1k tho...
Could that be moved to the first bank of memory above the 8k rom so it could still be used?

The other slightly related thing I've heard people say is that the 16k ram pack is only really a 15k ram pack.
Is that because the original 1k is still active (masking out 1k) or is it because you only get 15k more than you had before?
(I thought it was a strange thing to say and they didn't really explain what they meant at all! ;)
User avatar
mrtinb
Posts: 1910
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: The reason native hi-res is only possible on the 1k zx81??

Post by mrtinb »

Freya wrote: Fri Feb 17, 2023 11:56 am Is that because the original 1k is still active (masking out 1k) or is it because you only get 15k more than you had before?
It's because you only get 15k more than before. The internal 1k IC is disabled, when you connect the external 16k RAM.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Mustermann
Posts: 43
Joined: Sun Dec 22, 2019 12:09 pm
Location: Augsburg, Germany

Re: The reason native hi-res is only possible on the 1k zx81??

Post by Mustermann »

With some additional logic internal 1k can be mapped at 8k-16k.

I also heard that one of the printer interfaces uses internal 1k to patch ROM.
ZX81 issue 1 near to original state
ZX81 issue 1 56k internal ram with battery backup, UDG, CHR$128 and WRX enabled
Minstrel 3 ZX81 clone 64k with battery backup, UDG, CHR$128 and WRX enabled
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: The reason native hi-res is only possible on the 1k zx81??

Post by 1024MAK »

Freya wrote: Fri Feb 17, 2023 11:56 am So a 32k internal zx81 ram upgrade can use all the different hi-res modes?
Yes. Actually, a 32K byte SRAM chip providing 16K bytes of RAM. Although there are more complex schemes that make use of the rest of the chip. The extra 16K (above the ‘normal’ 16K) is not used for hi-res though.
Freya wrote: Fri Feb 17, 2023 11:56 am The ram upgrade disables the original 1k tho...
Could that be moved to the first bank of memory above the 8k rom so it could still be used?
External 16K byte, 32K byte and 64K byte RAM packs disable the internal RAM chip(s). See below.
An internal RAM upgrade means removing the existing SRAM chip(s) and fitting a larger capacity SRAM chip.
Freya wrote: Fri Feb 17, 2023 11:56 am The other slightly related thing I've heard people say is that the 16k ram pack is only really a 15k ram pack.
These people obviously don’t understand, as this is complete rubbish.
Freya wrote: Fri Feb 17, 2023 11:56 amIs that because the original 1k is still active (masking out 1k) or is it because you only get 15k more than you had before?
With an external RAM pack of 16K bytes or more, the internal RAM chip(s) are disabled. The system can no longer access or see the internal RAM, as it is always deselected.

Some (not many) external expansions/interfaces can use it by remapping it elsewhere in the Z80 memory map.

The reason that RAM packs are available in 16K, 32K and 64K sizes is simple. DRAM chips at the time were available in these sizes…

There is no such thing as a 15K DRAM chip…

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
Mustermann
Posts: 43
Joined: Sun Dec 22, 2019 12:09 pm
Location: Augsburg, Germany

Re: The reason native hi-res is only possible on the 1k zx81??

Post by Mustermann »

Freya wrote: Fri Feb 17, 2023 11:56 am So a 32k internal zx81 ram upgrade can use all the different hi-res modes?
There is UDG and CHR$128 HRG. Most of the internal and external memory expansions do not support that.

External a UDG4ZXPAND module is needed in addition to memory expansion.
Internal there is quicksilva UDG board.
ZX81 issue 1 near to original state
ZX81 issue 1 56k internal ram with battery backup, UDG, CHR$128 and WRX enabled
Minstrel 3 ZX81 clone 64k with battery backup, UDG, CHR$128 and WRX enabled
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: The reason native hi-res is only possible on the 1k zx81??

Post by dr beep »

Mustermann wrote: Fri Feb 17, 2023 10:51 pm
Freya wrote: Fri Feb 17, 2023 11:56 am So a 32k internal zx81 ram upgrade can use all the different hi-res modes?
There is UDG and CHR$128 HRG. Most of the internal and external memory expansions do not support that.

External a UDG4ZXPAND module is needed in addition to memory expansion.
Internal there is quicksilva UDG board.
And Chroma replaces the full characterset.
Also different method.
Post Reply