can any one help me with a small project using external memory interface?
Thnx in advance :)
There is an example project illustrating EMIF. Here the data written to external memory is read back using a DMA and compared.
neha can you give details about aim of your project?
basically what you want to do after interfacing external memory and which type of memory and memory interface are you aiming(like sd card etc)
Attached another simple project with asynchronous EMIF sans DMA. Address width - 8bits and data width - 8 bit.
Problem with attaching the project.
Attaching top design and main files.
#define INIT_VALUE (0xf0u)
#define PACKET (0x50u)
#define FALSE (0x0u)
#define TRUE (0x1u)
#define SRC_ADDRESS (0x00000000u)
#define RET_ADDRESS (0x00000200u)
uint8 sent[PACKET] _at_ SRC_ADDRESS; /* Array of data which will be store in the memory */
uint8 ret[PACKET] _at_ RET_ADDRESS; /* Array of data which will be read from the memory */
/* Initialize Error_Pin*/
/* Initialize Pass_Pin*/
/* Emif component start API */
/* Write data in to the external memory*/
sent = INIT_VALUE;
for (i=(0u); i <= PACKET; i++)
sent[i+1] = sent[i] + (1u);
addr = CYDEV_EXTMEM_BASE + i;
/* Read data from the external memory*/
for (i=(0u); i < PACKET; i++)
ret[i] = CY_GET_XTND_REG8(addr);
/* Compare Write to and Read from external memory values */
/* Set ERROR flag if compared data not equal */
Neha,I'm curious about what memory chip (Part name/number) you are trying to interface with the PSoC3/5.Which chip is it?
I had my best experiences with uploading a project here with the following steps:
Build -> Clean Project
File -> Create Workspace Bundle(minimal)
Then upload the resulting .Zip archieve here in this forum.
thnx Srim...i got the knack of it...will post the development as a small project :)
and Bob thnx fr 'zippin' info
may i know what type of memory chip (Part name/number) can be interfaced with the PSoC3/5.Which chip is it?