

Hi Alan,I tried to match the pinout of P4 to match one of these breakout boards that seems common on ebay, but as you suggested it could also be wired to a micro SD card to SD card adapter.
There are a couple of outputs available from the latch that could be used for additional chip selects. I was short on space for diodes and pull up resistors and card detection inputs, but perhaps thats not needed for general spi use. I may try and connect them to unused connections on the P4 header which should be too difficult, although it would mean taking care when using a breakout board not to wire those connections.
I saw the spec for sd cards about running them initially at 400kHz, but there was no mention of that causing issues with Mitch's design so thought I'd probably give it a go. CTC via clk2 was the plan B.
On board clock was in case I had to drop the frequency, but that would also cause some timing issues and require adding NOPs. Also it was easy to fill the space below the sdcard sockets. X3 allows for sourcing clock from CLK2 on the bus, although that is commonly used for a second serial baud rate. I could maybe include option to take it from one of the user pins but didn't really want to trace it across the board when the ideal option is to run at the processor clock frequency.
I might drop the local clock if I can see a way to make better use of the space, move U3 or U7 into the space and increase the options for card detect or chip select to spi.Option for full size sd card socket would also be nice but the ones I've seen are smt with the pads under the socket and not easy to solder by hand.
Not sure I fully understood your comments on bit swapping or byte swapping. If you mean swapping the bits within a byte, as required using the z180 clocked serial interface then I don't think thats going to be needed. If you mean byte swapping due to endianness of data from blocks on an sdcard then I need to study the interface software a bit more to make sure its worth the effort to run at the higher clock speed.
--
You received this message because you are subscribed to the Google Groups "RC2014-Z80" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rc2014-z80+...@googlegroups.com.
To post to this group, send email to rc201...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/a7a586ab-0ee3-4148-b676-77c13dc15ec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/CAKD5ztYgYNYLSRsKKX%3DSuh2Tb3%3DesXb2Ou8NjaM1O_UOFO%2BmJA%40mail.gmail.com.
Are there any benchmarks I could use to compare the speed with what everyone gets from the compact flash module?
I'll probably try running at 12mhz first. Not so much for the speed but to check if my timing estimate was correct in showing that the circuit should run at 12mhz with 74ls series parts although cheating a bit here as I only have 74als10 or 7410 available to test.
Mark
To unsubscribe from this group and stop receiving emails from it, send an email to rc2014-z80+unsubscribe@googlegroups.com.
To post to this group, send email to rc201...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/a7a586ab-0ee3-4148-b676-77c13dc15ec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Scott Lawrence
yor...@gmail.com