summaryrefslogtreecommitdiff
path: root/sdcard/spi_mode/write_single_block/README
blob: 9f936174f28fa6422ee6890033062ba441868f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
-------------------------------------------------------------------------------
SD card / SPI-mode / CMD24 (write single block)
-------------------------------------------------------------------------------

This set of example captures demonstrates CMD24 (write single block)
commands including their data phase.

Pierre Poulain provided these files in bug #1365 as public domain.


Logic analyzer setup
--------------------

  Probe    SD card
  ----------------
  0        CS#
  1        MOSI
  2        MISO
  3        CLK / SCK


Data
----

File data_transfer_start_snippet.sr was recorded in a live setup, and
contains the start of a write command -- but does not complete it which
is why the decoder won't annotate the operation.

File data_transfer_complete_simulated.sr contains a complete CMD24 start
as well as the communication of the R1 response, the data start token,
the payload data, and the data response. This capture was created by a
simulation.

File data_transfer_complete_real.sr is similar to the above, but is a
capture of a "real" transfer. The data (512 bytes) is all-zero, except for
the first 12 bytes which are ASCII "Sigrok rocks".