AN2417 Freescale Semiconductor / Motorola, AN2417 Datasheet - Page 17

no-image

AN2417

Manufacturer Part Number
AN2417
Description
PCMCIA and Compact Flash Interface for the MC9328MX1 and MC9328MXL Application Processors Application Note
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
After 1 ms of card insertion, a reset pulse should be sent to the card. with a minimum duration of 10us.
After sending the reset pulse, the program should poll for ready signal. When the ready signal is high, the
card is ready for access.
The following diagram shows the power up sequence:
MOTOROLA
delay(1500); //delay 1ms after Card Inserted
*(P_U32) PTB_DR |= 0x1<<17; // Set Reset Pin High
delay(15); // Pulse Width at least 1us
*(P_U32) PTB_DR &=~(0x1<<17); //Set Reset Pin Low
void delay(U16 delaytime)
{
U16 i=0;
for (i=0; i<delaytime; i++) {
}
return;
}
if ( ~( (*(P_U32) PTA_SSR) | 0xFFFBFFFF) ) { //poll for Card Ready, Quit loop when PA18 = 1
printf("Card Initialization ... Busy\n");
}
while ( ~((*(P_U32) PTB_SSR)|0xFFFFBFFF) ) {//poll for Card Ready, Quit loop when PA18 = 1
}
printf("Card is Ready\n\n");
Card Detect
Reset Pulse
Vcc
Ready
The delay time may vary depends on how the delay function is
implemented and the CPU clock. In above example, system clock is
running at 48MHz and implementation of delay loop is:
1ms
Freescale Semiconductor, Inc.
For More Information On This Product,
MC9328MX1/MXL Application Note
1us
Engineering Draft / Preliminary
Go to: www.freescale.com
Figure 6.
NOTE:
Programming Example
17

Related parts for AN2417