Close

First conversation with SDCard

A project log for Gigatron I/O and RAM expander

Adding four SPI ports and up to 128K of banked RAM using nothing more than 4 TTL chips and some wizardry.

marcel-van-kervinckMarcel van Kervinck 09/01/2019 at 13:040 Comments

First messages exchanged with a physical memory card. "Reset" (aka CMD0) puts the card in SPI mode. "Version" (aka CMD8) is the canonical method to check if the card is ok. The reply bytes come from the card and are the expected value (0x01).

A few hours later we can correctly initialise the card and detect the card type:

Update: And here's the root directory. It takes a bit of 32-bit arithmetic to locate it correctly. You can see the volume label in the first slot. It reads "GIGATRON".

Update 2: and here is a proper listing:

Discussions