beautypg.com

Implementation using gpio (for ep931x), An266 – Cirrus Logic AN266 User Manual

Page 2

background image

AN266

2

AN266REV1

3. Implementation Using GPIO (for EP931x)

Alternatively, the general purpose I/O (GPIO) pins can be used to provide an easy way to control an ex-
ternal NAND flash memory device. EP93xx GPIO signals provide great flexibility in meeting the NAND
device timing requirements. However, this may not be the most efficient way to connect an EP931x to a
NAND flash memory device because it requires the use of many of the available GPIO pins.

The example below connects an EP931x to the SAMSUNG K9F2G08U0M. See “Read Flash ID” Sample
Code
on page 3 fo
r a code example for this particular approach.

Figure 2. Example of Implementation Using GPIO Ports B and C

GPIO Port C[0]

I/O0

I/O7

WE

RE

ALE

CLE

R/B

CE

K9F2G08U0M

EP931x

GPIO Port C[7]

GPIO Port B[1]

GPIO Port B[2]

GPIO Port B[3]

GPIO Port B[4]

GPIO Port B[5]

GPIO Port B[6]