My first wire wrap: Wilf's AT keyboard interface

Discussions about Sinclair ZX80 and ZX81 Hardware
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: My first wire wrap: Wilf's AT keyboard interface

Post by gammaray »

Just thinking through this puzzle...

If RAMTOP was 24xxx with external /RAMCS for an 8K RAM then you would see activity on A13?

The keyboard only uses this for "YUIOP" which is keyboard matrix 5 of 8 x 1,2,3,4 or 5.

So it would always be LOW except for keyboard routine when HIGH and all but one of A8,9,10,11,12,14,15 go LOW to pull down KBD0-4.

That means that the EPROM A5 is grounded not HI-Z and A13 always reads low?

Is there a short to ground?
Last edited by gammaray on Mon Feb 12, 2018 2:08 am, edited 1 time in total.
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: My first wire wrap: Wilf's AT keyboard interface

Post by gammaray »

I think I have learned at lot at SinclairZXworld!
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
User avatar
1024MAK
Posts: 5102
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: My first wire wrap: Wilf's AT keyboard interface

Post by 1024MAK »

The keyboard uses the Z80's I/O instructions. It is documented (but only in some of the Z80 documentation) that when an I/O instruction puts an address on address bus lines A0 to A7, it also puts a value on address lines A8 to A15.

What is put on these depends on the instruction. For example: IN A,(C) actually puts the contents of the B register on A8 to A15. So the address used with I/O instructions are actually 16 bit values. Sinclair used A8 to A15 to form part of the lines going to the keyboard (remember, the keyboard is a matrix).

So it would be the Z80 running the keyboard routine in ROM that would result in the Z80 driving A13.

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
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: My first wire wrap: Wilf's AT keyboard interface

Post by gammaray »

There is a smudge on perfboard at A13. Could that be copper residue causing grounding?
at key project short.jpg
at key project short.jpg (29.29 KiB) Viewed 2781 times
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: My first wire wrap: Wilf's AT keyboard interface

Post by gammaray »

This looks suspicious to the left of the yellow A5-A13 connection.

But I have never done wirewrap.
close wirewrap.jpg
close wirewrap.jpg (28.97 KiB) Viewed 2781 times
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: My first wire wrap: Wilf's AT keyboard interface

Post by gammaray »

On your schematic Is /WE the same as programming voltage? Vpp? Should it be low instead...
27C256.gif
27C256.gif (4.8 KiB) Viewed 2776 times
I didn't realize there were so many balls on the table.
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: My first wire wrap: Wilf's AT keyboard interface

Post by mrtinb »

gammaray wrote: Mon Feb 12, 2018 1:31 am This looks suspicious to the left of the yellow A5-A13 connection.
I'll look into that
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: My first wire wrap: Wilf's AT keyboard interface

Post by mrtinb »

gammaray wrote: Mon Feb 12, 2018 3:19 am On your schematic Is /WE the same as programming voltage? Vpp? Should it be low instead...27C256.gif

I didn't realize there were so many balls on the table.
The text drawing is the original one from Wilf Rigter that uses an EPROM. I've modified it to use an EEPROM seen the the schematic in former post.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: My first wire wrap: Wilf's AT keyboard interface

Post by mrtinb »

Currently I think the problem lies with the "diode OR gate" where both A0, RD and IOREQ has to be low, for OE on EEPROM goes low.

It needs a little more time and a clear mind. Today that is FALSE. ;-)
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: My first wire wrap: Wilf's AT keyboard interface

Post by gammaray »

I hope I am not hindering that
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
Post Reply