I have pushed a beta version of my SPI bus board and driver code to:
https://sourceforge.net/projects/spi-bus-z80-rc2014/
This drop includes a driver for the SPI bus board and a few lame support programs that
allow directory viewing and copying of files. The file code is based on FatFS, and is compiled
using z88dk.
These both will need a lot of work to be truly useful.
It is my hope that in time I can get the driver working with RomWBW, thus closing the loop
.... spinning rust, CF cards and SD cards.
My driver is probably not nearly ready for RomWBW yet.
I'd like to recognize J.B. Langsdon for the inspiration for this project and some of his code
can be found in the sdir.c program.
Notes about performance.
The spi bus spec says it will work at 20mhz or better. Not much need to worry about hitting that
limit with the Z80. The good news is, the Z80 supplies the data clock, and since I bit bang the
data, we are good and slow.
I have copied 2 mb files from the sd card to the cf card using scopy. This takes quite some time
to complete. No idea yet what the throughput is, but its low.
I suspect that some optimizations can be applied to the FatFS code that will make it smaller and
somewhat faster. My SPI.C driver is a combination of C and asm code that I optimized by looking
for low hanging water melons.
Well, I hope people find this to be useful.
jc