MPC8536E-ANDROID Freescale Semiconductor, MPC8536E-ANDROID Datasheet - Page 1319

no-image

MPC8536E-ANDROID

Manufacturer Part Number
MPC8536E-ANDROID
Description
HARDWARE/SOFTWARE ANDROID OS
Manufacturer
Freescale Semiconductor
Series
PowerQUICC ™r
Type
MPUr

Specifications of MPC8536E-ANDROID

Contents
Board
For Use With/related Products
MPC8536
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
set CMDTYP, DPSEL, CICEN, CCCEN, RSTTYP, and DTDSEL according to the command index;
if (internal DMA is used) wCmd |= 0x1;
if (multi-block transfer) {
}
write_reg(CMDARG, <cmd_arg>); // configure the command argument
write_reg(XFERTYP, wCmd); // set XFERTYP register as wCmd value to issue the command
}
wait_for_response(cmd_index)
{
while (IRQSTAT[CC] is not set); // wait until command complete bit is set
read IRQSTAT register and check if any error bits about command are set;
if (any error bits are set) report error;
write 1 to clear IRQSTAT[CC] and all command error bits;
}
For the sake of simplicity, the function wait_for_response is implemented here by means of polling. For
an effective and formal way, the response is usually checked after the command complete interrupt is
received. By doing this, ensure the corresponding interrupt status bits are enabled.
For some scenarios, the response timeout is expected. For instance, after all cards respond to CMD3 and
go to the standby state, no response to the host when CMD2 is sent. The host driver should manage false
errors similar to this with caution.
20.6.2
When a card is inserted to the socket or the card was reset by the host, the host needs to validate the
operation voltage range, identify the cards, and request the cards to publish the relative card address (RCA)
or to set the RCA for the MMCs.
20.6.2.1
See
Freescale Semiconductor
Figure 20-25
// XFERTYP register bits
set XFERTYP[MSBSEL] bit;
if (finite block number) {
}
Card Identification Mode
Card Detect
for a flow diagram showing the detection of MMC and SD cards using the eSDHC.
set XFERTYP[BCEN] bit;
if (auto12 command is to use) set XFERTYP[AC12EN] bit;
MPC8536E PowerQUICC III Integrated Processor Reference Manual, Rev. 1
Enhanced Secure Digital Host Controller
20-45

Related parts for MPC8536E-ANDROID