Using WAIT signal?

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
User avatar
mrtinb
Posts: 1911
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Using WAIT signal?

Post by mrtinb »

Hi!

If I'm creating a new circuit to connect to the ZX81 is it possible to:
  1. Pull the WAIT signal LOW
  2. Update the RAM of the ZX81
  3. Release the WAIT signal
and then the RAM is updated by the external circuit.

Is that possible?
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
Paul
Posts: 1517
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: Using WAIT signal?

Post by Paul »

That's not what /wait is intended for.
I don't know what happens to all the other z80 control lines.
If you try a /busreq and wait for busack then z80 goes into tristate and you can acces the ram in any way you like for as long as you like.
Of course the screen will not be updated by the zeddy.
That is the intended way.
In theory, there is no difference between theory and practice. But, in practice, there is.
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Using WAIT signal?

Post by 1024MAK »

The purpose of the /WAIT signal, is to extend the time briefly for slow I/O devices or slow memory to respond before the Z80 (reads data and) continues the next machine (instruction) cycle.

Duing a /WAIT, the Z80 maintains the address, control and data bus in state that was current (prior to the /WAIT signal being detected by the Z80).

It is not intended to be used for other devices to control the memory in the system.

As Paul says, if you want an external device to access the system memory, the /BUSREQ control signal is what you want. However, IIRC, the ULA knows nothing of this, so the external device has to be careful that it does not cause the ULA to think that video memory is being accessed. This would only be a problem if the /M1 line is low. Otherwise you don't need to worry about it.

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.
User avatar
mrtinb
Posts: 1911
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Using WAIT signal?

Post by mrtinb »

Thank you Paul and Mark for your great response.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Post Reply