RC2014 SPI/SD Module

809 views
Skip to first unread message

Mitch Lalovie

unread,
Apr 17, 2017, 7:44:13 AM4/17/17
to RC2014-Z80
Hello All.

Please find attached schematic of the first revision of SD/SPI module for the RC2014,
work on this module started as an idea for using SD card for mass storage instead
of CF card, reason would be availability and/or cost.
In the next few posts I am going to attach CP/M version that runs
using this module, I am still doing few last tests and hunting down possible bugs.
Basic concept for this module came from:

http://www.ecstaticlyrics.com


Questions or suggestions are welcome, it may take few days for me to answer those.

Please stay tuned,

Regards,


MITCH.
SD_interface_V1.0.pdf

Mitch Lalovie

unread,
Apr 26, 2017, 8:40:33 PM4/26/17
to RC2014-Z80
Hello All.

Please find attached CP/M HEX files for the RC2014 which uses SD card as a mass storage.
Following is required:
RC 2014 needs full 64K RAM and some means of
preloading monim1.bin in RAM.
CP/M bios expects to see SD adapter from the previous post.

Install, see: http://searle.hostei.com/grant/cpm/index.html#InstallingCPM

This version is for ACIA and Z80 in IM1,
version for ACIA and Z80 in IM2 is on it's way.

Due to the size of the SD card code I was not able to fit all code in
upper 12K and have all 16 drives,
as a result of that  14 drives are available to CP/M, small setback.

Other than that just one tip on the SD/SPI card adapter,
I have used SD card module (MH) from Amazon,
https://www.amazon.ca/gp/product/B015359XVS/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1
those are 2 dollars a piece, please do not use bare SD card, it might get damaged.

One other note, SD code should, work with type 2 and type 3 (hc) cards,
it does not work with old MMC cards.  
Also it will not touch the first block on the SD device,
the idea behind it is that you create RAW(unformatted partition)
as first partition, size of 128MB or so, just to be safe and
second partition as FAT16/32,  so the card can be used for other
purposes when not in use with RC2014.

Questions and/or comments are welcome.


Happy computing!!

Regards,

MITCH.
RC2014_SD_CPM_IM1.zip

Sir Isaac

unread,
Apr 26, 2017, 8:57:04 PM4/26/17
to RC2014-Z80
Amazing work.
I'll be adding this to my seemingly endless list of RC2014 hardware build projects.

Just curious when you say:
This version is for ACIA and Z80 in IM1,
version for ACIA and Z80 in IM2 is on it's way.


Are you patching your own files and going to host them on a git hub page or something?
Also is support for the SIO/2 board possible?
Thanks so much for sharing.  :-)

Mitch Lalovie

unread,
Apr 27, 2017, 5:33:53 AM4/27/17
to RC2014-Z80
Hello Sir Isaac.

SIO/2 card and SD storage is very much possible,
as you might have noticed it it still asks you to press space to
determine on which channell console is attached.
I am going to add that to the list,
there is just one small issue, I would not be able to test it.

Up to this point I was not considering GIT HUB, however if there is
enough interest I would consider it.

I am using Grant's sources and uz80as, it is almost like TASM, and it does run well under LINUX,
and sources need very little modifications to compile.

Stay tuned.


Regards,


MITCH.

Devin Kilminster

unread,
Apr 28, 2017, 2:43:32 AM4/28/17
to RC2014-Z80
Hi,

I've really been wanting SD card storage, so I'm quite likely to build one of these, or something similar.

Have you made the source code for your BIOS (or even just your SD/SPI routines) accessible online somewhere?


Thanks,
Devin.


On Thursday, April 27, 2017 at 12:40:33 PM UTC+12, Mitch Lalovie wrote:
Hello All.

Mitch Lalovie

unread,
Apr 30, 2017, 8:07:54 AM4/30/17
to RC2014-Z80
Hello Devin.

I have not posted SD/SPI routines alone yet.
There is plan for that.
To initialize SD card it takes a few lines of code and I have two versions
of which one is register oriented (needs more stack space) an the other is file (RAM) oriented (needs less stack space).
I am going to post those somewhere on github as so0n as I clean sources and put some comments in the code.

Please stay tuned.



MITCH. 

Mitch Lalovie

unread,
Apr 30, 2017, 8:16:09 AM4/30/17
to RC2014-Z80
Hello All.


This CP/M version runs in IM2 with ACIA, DDT should work as expected, no locking,
It does however requires one small addition to the board, please see attached.
With that module we are passively injecting jump address which SIO chip would place in the case of interrupt in IM2.

Questions or comments are welcome.

On Monday, April 17, 2017 at 8:44:13 AM UTC-3, Mitch Lalovie wrote:
RC2014_SD_CPM_IM2.zip
IM2_ACIA_IRQ_BOARD_V1.0.pdf

Mitch Lalovie

unread,
Apr 30, 2017, 6:00:01 PM4/30/17
to RC2014-Z80
Hello Devin.

Please see:

https://github.com/Galaksija/RC2014_SPI_SD


MITCH.

Devin Kilminster

unread,
Apr 30, 2017, 11:05:28 PM4/30/17
to RC2014-Z80
Thanks, that's really helpful.


Devin.

On Sunday, April 30, 2017 at 10:00:01 PM UTC, Mitch Lalovie wrote:

Mitch Lalovie

unread,
May 7, 2017, 7:55:24 AM5/7/17
to RC2014-Z80

Hello Sir Isaac.

Please find attached SIO/2 CP/M files.
No testing was done since I do not have SIO/2 board..
I did not comment out Grant's ROM on/off code so it should work
one way or the other provided that mods are OK..

Regards,


MITCH.
RC2014_CPM_SIO.zip

Sir Isaac

unread,
May 7, 2017, 11:44:03 AM5/7/17
to RC2014-Z80
Awesome,
I'm just waiting on some new SIO chips to arrive and i'll test it out.
Thanks for sharing :-)
Reply all
Reply to author
Forward
0 new messages