ADSP-BF50x Blackfin Processor Hardware Reference
21-43
Removable Storage Interface
9. Enable the data path state machine by writing to the
RSI_DATA_CONTROL
register with
DATA_BLK_LGTH
set to 9 for a
512-byte block.
DATA_EN
,
DATA_DIR
, and
DATA_DMA_EN
should also
be set to enable the data path state machine, set the transfer direc-
tion from card to controller and allow the DMA controller access
to the receive FIFO. All other fields of the
RSI_DATA_CONTROL
register should be zero.
10.Write the
READ_SINGLE_BLOCK
command to the
RSI_COMMAND
regis-
ter, configuring the command path state machine to expect a short
response by setting
CMD_RESP
and clearing
CMD_L_RESP
. The
response type is R1.
11.Unlike core accesses, it is safe to poll on
CMD_RESP_END
indication
within the
RSI_STATUS
register and clear the status bit once
detected via the
RSI_STATUSCL
register. The DMA controller
enabled in step 5 will ensure any data sent to the receive FIFO
prior to the
CMD_RESP_END
flag being set is received correctly.
12.Wait for the
DAT_BLK_END
flag to indicate that the data was received
correctly and passed the CRC check. The
DAT_END
flag may also be
set, depending on the value written to
RSI_DATA_LGTH
.
13.Clear the
DAT_BLK_END
and
DAT_END
flags via the
RSI_STATUSCL
register. Also clear the
DMA_DONE
bit of the
DMAx_IRQ_STATUS
register, if applicable.
Multiple Block Write Operation
Block write operations typically consist of 512 bytes of data per block.
If the card is found to support other block lengths or the default block
length as specified in the CID register is not 512, the block length of the
RSI must be configured accordingly. The block length of the card and the
block length of the RSI must be configured for the same block size at all
times. The block length of the RSI is configured via the
DATA_BLK_LGTH
field of the
RSI_DATA_CTL
register.
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...