English
Language : 

K60P100M100SF2RM Datasheet, PDF (1576/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Memory map and register definition
SDHC_CMDARG field descriptions
Field
31–0
CMDARG
Command Argument
Description
The SD/MMC command argument is specified as bits 39-8 of the command format in the SD or MMC
specification.This register is write protected when the PRSSTAT[CDIHB0] bit is set.
52.4.4 Transfer Type Register (SDHC_XFERTYP)
This register is used to control the operation of data transfers. The host driver shall set
this register before issuing a command followed by a data transfer, or before issuing a
resume command. To prevent data loss, the SDHC prevents writing to the bits, that are
involved in the data transfer of this register, when data transfer is active. These bits are
DPSEL, MBSEL, DTDSEL, AC12EN, BCEN and DMAEN.
The host driver shall check the PRSSTAT[CDIHB] and the PRSSTAT[CIHB] before
writing to this register. When the PRSSTAT[CDIHB] is set, any attempt to send a
command with data by writing to this register is ignored; when the PRSSTAT[CIHB] bit
is set, any write to this register is ignored.
On sending commands with data transfer invovled, it is mandatory that the block size is
non-zero. Besides, block count must also be non-zero, or indicated as single block
transfer (bit 5 of this register is ‘0’ when written), or block count is disabled (bit 1 of this
register is ‘0’ when written), otherwise SDHC will ignore the sending of this command
and do nothing. For write command, with all above restrictions, it is also mandatory that
the write protect switch is not active (WPSPL bit of Present State Register is ‘1),
otherwise SDHC will also ignore the command.
If the commands with data transfer does not receive the response in 64 clock cycles, i.e.,
response time-out, SDHC will regard the external device does not accept the command
and abort the data transfer. In this scenario, the driver should issue the command again to
re-try the transfer. It is also possible that for some reason the card responds the command
but SDHC does not receive the response, and if it is internal DMA (either simple DMA
or ADMA) read operation, the external system memory is over-written by the internal
DMA with data sent back from the card.
The following table shows the summary of how register settings determine the type of
data transfer.
Table 52-7. Transfer Type Register Setting for Various Transfer Types
Multi/Single block select
0
Block count enable
Don't care
Block count
Don't care
Function
Single transfer
Table continues on the next page...
1576
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.