ZX-MMC2 ("the ZXPand") Update log

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

ZX-MMC2 ("the ZXPand") Update log

Post by sirmorris »

Thanks to all the work I put into the Atom MMC board, the ZX sibling is coming along nicely.

I'm using an essentially unmodified version of the PIC firmware that I developed for the Atom interface. It's written in C and is structured in such a way that the business end of things can be lifted out and driven by an emulator instead of actual interface hardware. This is invaluable for debugging client code - especially when a stupid error might mean a 2 minute delay while a tape loads...

Anyway, they say a picture speaks a thousand words so here's my 1K ...
0000.png
0000.png (1.86 KiB) Viewed 39681 times
This directory listing is the output of the following code running under the MESS emulator with my interface firmware jammed in at the appropriate point:

Code: Select all

   ; init directory reader
   ;
   ld    b,2               ; directory control
	ld    l,0               ; 0 = reset directory reader
	ld    c,7
	out   (c),l

	call  response
   call  expect_3f         ; error if != $3f

getdirent:
   ld    b,2               ; directory control
	ld    l,1               ; 1 = get next directory entry
	ld    c,7
	out   (c),l

	call  response
   cp    $3f
   jr    z,gotentry        ; $3f = continue
   cp    $40
   jr    z,alldone         ; $40 = finished

   call  expect_3f         ; error if != $3f

alldone:
   ret

gotentry:
   ld    b,6               ; acquire data control
	ld    l,$3f             ; 3f = reset data reader
	ld    c,7
	out   (c),l
   jr    readentry

printchar:
   rst   10h

readentry:
	in    a,(c)             ; collect a character from the filename
   jr    nz,printchar

   ld    a,$76             ; print a newline
   rst   10h

   jr    getdirent

response:
   ; mustn't change BC contents
   ld    l,0               ; delay loop setting

rsp_delay:
   dec   l
   jr    nz,rsp_delay

	in    a,(c)             ; get response code
   jp    m,rsp_delay       ; and loop whilst negative

   ret

expect_3f
   cp    $3f
   jr    nz,exp_itsbad

   ret

exp_itsbad:
   sub   $41-10
   rst   08h
 
Back in the physical world - the interface hardware is pretty much complete on the breadboard right now. Sorry about the crappy quality. The thing on the right underneath the blue & yellow wires is the micro controller. Below that is the MMC socket & level translation hardware. The three chips on hte left are the IO address decoding & latch.
ratty.jpg
ratty.jpg (230.61 KiB) Viewed 39683 times
It's important to have code working in the emulator. It means that when I run this program on the actual hardware tomorrow I can concentrate on working out where the hardware needs tweaking instead of battling against 2 unknowns...
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZX-MMC2 Update log

Post by sirmorris »

There could be only 1
There could be only 1
0002.png (753 Bytes) Viewed 39650 times
Loaded from SD card 11:59am 16/06/2010.

Oh yes.
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: ZX-MMC2 Update log

Post by RWAP »

Is that on real ZX81 hardware I wonder!

It is a magnificent achievement however - I can't wait for the real thing
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZX-MMC2 Update log

Post by sirmorris »

Sorry you had to wait so long :) But the wait was unavoidable. And it has meant that the development of this board will be much quicker ;)

The previous shot was emulated, but the code will work on the real hardware as soon as I've added the memory to the prototype. It's limited to 1K at the moment.

Here's a little evidence to back up the last statement:
real.jpg
real.jpg (185.48 KiB) Viewed 39640 times
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: ZX-MMC2 Update log

Post by RWAP »

If this product had been available 20 years ago, you could have been a millionaire!
User avatar
KnightFire
Posts: 25
Joined: Wed May 19, 2010 9:50 pm
Location: Canada

Re: ZX-MMC2 Update log

Post by KnightFire »

Yes, truly remarkable!
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZX-MMC2 Update log

Post by sirmorris »

I've decided to take the breadboard to Bletchley with me.

See you all there? :)
Moggy
Posts: 3267
Joined: Wed Jun 18, 2008 2:00 pm

Re: ZX-MMC2 Update log

Post by Moggy »

sirmorris wrote:I've decided to take the breadboard to Bletchley with me.

See you all there? :)

At the risk of showing My age, two of my closest friends were Bletchley operatives She a Bombe operator the other (who She later married) went on to GCHQ so His work is still a bit need to know. To My eternal shame I've never been despite many requests to accompany Them.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZX-MMC2 Update log

Post by sirmorris »

I saw the Bombe room! It was a most surprising weekend in many respects. The contrast between the importance of the place and the neglect/decay evident in the infrastructure was one of them... Let's hope that things change and some funding goes their way.

I met some lovely people one of whom pointed me in the direction of an affordable PCB prototyping service ...
Thank you for shopping at PCB Train please find the details of your order below:

CUSTOMER: eightybits (#5607)

Date: 23rd Jun 2010 09:51:08
Order No: 7189

....

Many Thanks
PCB Train
http://www.pcbtrain.co.uk/
** eightybits is my W.I.P web presence
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZX-MMC2 Update log

Post by sirmorris »

DSCF3838.JPG
DSCF3838.JPG (202.02 KiB) Viewed 39453 times
Post Reply