15-14 Intel® PXA26x Processor Family Developer’s Manual
MultiMediaCard Controller
In a block data read, the following parameters must be specified:
The data transfer is a read.
The block length, if the block length is different from th e pr evious blo ck data tr ansf er or t his is
the first time that the parameter is being specified.
The number of blocks to be transferred.
The receive data time-out period.
The controller will mark the data transaction as timed out if data is n ot receiv ed b efore t he time-ou t
period. The delay for the time-out period is defined as:
The software is required to calculate this value and write the appropriate value into the
MMC_RDTO register.
15.3.2.3 Stream Data Write
The stream data write looks like the single block write except a stop transmission command is se nt
in parallel with the last six bytes of data.
After turning the clock on to start the command sequence, the software must start the proces s of
filling the MMC_TXFIFO and starting the clock as describe in Section15.3.2.1, “Block Data
Write”. The software must then wait for the MMC_I_REG[S TOP_CMD] interrupt. This interrupt
indicates that the MMC controller is ready for the stop transmission command. The software must
then stop the clock, write the registers for a stop transmission command, and then s tart the clock.
At this point, the softwar e must wait for the MMC_I_ REG[DATA_TRAN_DONE] and
MMC_I_REG[PRG_DONE] interrupts.
In a stream data write, the following parameters must be specified:
The data transfer is a write.
The data transfer is in stream mode
The block length, if the block length is different from th e pr evious blo ck data tr ansf er or t his is
the first time that the parameter is being specified.
The number of blocks to be transferred as 0xffff.
15.3.2.4 Stream Data READ
The stream data read looks like the single block read except a stop transmission command must be
sent after the data transfer.
After turning the clock on to start the command sequence, the software must start the proces s of
reading the MMC_RXFIFO as described in Section15.3.2.2, “Block Data Read”.
When it uses the DMA, the software must also configure the DMA to send an interrupt after all
data has been read. After the DMA interrupt or the program has read all of the data, the software
must send the stop transmission command. The MCC_ STAT[DATA_TRAN_DONE] bit is not set
until after software sends the stop transmission comman d.
In a stream data read, the following parameters must be specified:
Time-out Delay MMC_RDTO[READ_TO]
()128()×
107
---------------------------------- -------------------------------- ------------------------sec=