update SPI commands and interaction protocols authored by Mona Angelina Raphaela Schappert's avatar Mona Angelina Raphaela Schappert
......@@ -22,16 +22,18 @@ Before we can interact with our device we need to place the SD card into SPI mod
0. Set `MOSI` and `CS` to high and toggle `SD_CLK` for 74 or more clock cycles. Then set `CS` to low.
1. Run `CMD0` with argument `0x0` and CRC `0x95`. Expected response: `0x01`
2. Run `CMD8` with argument `0x000001AA` and CRC `0x87`. Expected response: `0x01`, and a subsequent echo of the argument.
3. Check voltage and check pattern.
TODO: 0x1AA seems to be a common value, others also possible, investigate best practices.
### Reads:
TODO
1. Run `CMD17` with argument `DATA_ADRESS`. Expected response: `0x00`. We then receive data block start byte `0xFE` followed by the actual data.
### Writes:
TODO
1. Run `CMD24` with argument `DATA_ADRESS`. Expected response: `0x00`. We then send data block start byte `0xFE` followed by the actual data in byte blocks of 512 bit in total. We then receive data send end byte `0x05`.
2. Wait for end of BUSY state.
## Schematics
......
......