- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
can any one help me with a small project using external memory interface?
Thnx in advance 🙂
Neha.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Neha,
There is an example project illustrating EMIF. Here the data written to external memory is read back using a DMA and compared.
Thanks,
srim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Attached another simple project with asynchronous EMIF sans DMA. Address width - 8bits and data width - 8 bit.
Thanks,
srim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem with attaching the project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Attaching top design and main files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
#include <device.h>
#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 */
uint8 result=(0u);
uint8 i;
void *addr;
uint8 error=0;
void main()
{
/* Initialize Error_Pin*/
Error_Pin_Write(FALSE);
/* Initialize Pass_Pin*/
Pass_Pin_Write(FALSE);
/* Emif component start API */
EMIF_1_Start();
/* Write data in to the external memory*/
sent[0] = INIT_VALUE;
for (i=(0u); i <= PACKET; i++)
{
sent[i+1] = sent + (1u);
addr = CYDEV_EXTMEM_BASE + i;
CY_SET_XTND_REG8(addr, sent);
}
/* Read data from the external memory*/
for (i=(0u); i < PACKET; i++)
{
addr = CYDEV_EXTMEM_BASE + i;
ret = CY_GET_XTND_REG8(addr);
}
/* Compare Write to and Read from external memory values */
for (i=(0u); i < PACKET; i++)
{
if(sent==ret)
error=0;
else
error++;
}
/* Set ERROR flag if compared data not equal */
if(error)
Error_Pin_Write(1);
else
Pass_Pin_Write(1);
while(1);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Neha,I'm curious about what memory chip (Part name/number) you are trying to interface with the PSoC3/5.Which chip is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had my best experiences with uploading a project here with the following steps:
From Creator:
Build -> Clean Project
File -> Create Workspace Bundle(minimal)
Then upload the resulting .Zip archieve here in this forum.
Happy zipping
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thnx Srim...i got the knack of it...will post the development as a small project 🙂
and Bob thnx fr 'zippin' info
Regards
Neha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
may i know what type of memory chip (Part name/number) can be interfaced with the PSoC3/5.Which chip is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
One of Asynchronous SRAM which can be interfaced with PSoC 3 is CY7C1061AV33.
Regards, Aniruddha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Thanks
Is it required to remove C18(CMOD) capacitor from the PSoC3 Module to use EMIF everytime?
EMIF_Example advises that