AN2417 Freescale Semiconductor / Motorola, AN2417 Datasheet - Page 15

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
The lower 11 bit address is the address of the compact flash address bus.
3.2 EIM Configuration
Chip Select 5 of External Interface Module will be connected to Compact Flash, configuration of CS5 is
needed before access to compact flash device.
3.3 GPIO Configuration
3.3.1 GPIO Configuration Procedure
The procedures to configure Port A/B/C/D pin i as GPIO data output are:
MOTOROLA
1. Set CSEN to enable Chip Select 5 (EIM_CS5L[0])
2. Configure DSZ to set the Data Bus Size as 16 bit on D0:D15 (EIM_CS5L[10:8])
3. Configure OEA for OE setup time (EIM_CS5L[31:28])
4. Configure EBC (EIM_CS5L[11]), WEA (EIM_CS5L[23:20]) for EB timing
5. Configure WSC for the number of wait states to access compact flash, or enable the
6. Set EIM_CS5H[63] to enable Compact Flash wait support of DTACK signal (when
DTACK function to support Compact Flash WAIT signal (EIM_CS5H[45:40])
DTACK is enabled)
*(P_U32) EIM_CS5H = 0x00000F00; // programmable wait state used, WSC = 0x0F
*(P_U32) EIM_CS5L = 0x00000501; // EBC = 0, assert EB for read and write cycle
// DSZ = 5, Data Bus configured as 16 bit on D[15:0]
// CSEN = 1, Enable CS5
Set bit i of Port A/B/C/D GPIO Data Direction Register (DDIR) to configure as output pin.
Set bit i of Port A/B/C/D GPIO In Use Register (GIUS)
The value of data register is selected as an output
Setting programmable wait state for access cycle length control is
preferred when the card is inserted into the card. The access cycle length
for accessing attribute memory is fixed. After reading the Card
Information Structure (CIS), EIM can be configured to enable DTACK for
wait signal support if wait signal is used as indicated in CIS.
0x 00 0XXX
0x 40 0XXX
0x 80 0XXX
Freescale Semiconductor, Inc.
For More Information On This Product,
Address
MC9328MX1/MXL Application Note
Engineering Draft / Preliminary
Go to: www.freescale.com
Table 11.
NOTE:
Memory Mode Access Attribute
Memory Space
Memory Mode Access
Common Memory Space
I/O Mode Access
Memory space
Programming Example
15

Related parts for AN2417