bikashh
Full Member level 5
- Joined
- Nov 28, 2009
- Messages
- 264
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- india
- Activity points
- 3,132
Hello Friends,
I am doing a project around PIC32MX675F512L in which I need to communicate with external RAM(IDT71V016SA) connected parallel. I am using "PARALLEL MASTER PORT (PMP)" for communication.
But when reading into a buffer from external RAM, all the locations gets filled with the last value being written in the write process. I checked the hardware but everything seem OK.
My code is as below:
mPMPEnable();
mPMPOpen(CONTROL, MODE1, PORT, INTERRUPT);
PMADDR = 0;
for (i=0; i<10; i++)
{
PMPMasterWrite(i);
buffer1=PMPMasterRead();
PMADDR++;
}
// PMADDR = 0;
for (i=0; i<10; i++)
{
buffer1 = PMPMasterRead();
PMADDR++;
}
Thank you in advance
I am doing a project around PIC32MX675F512L in which I need to communicate with external RAM(IDT71V016SA) connected parallel. I am using "PARALLEL MASTER PORT (PMP)" for communication.
But when reading into a buffer from external RAM, all the locations gets filled with the last value being written in the write process. I checked the hardware but everything seem OK.
My code is as below:
mPMPEnable();
mPMPOpen(CONTROL, MODE1, PORT, INTERRUPT);
PMADDR = 0;
for (i=0; i<10; i++)
{
PMPMasterWrite(i);
buffer1=PMPMasterRead();
PMADDR++;
}
// PMADDR = 0;
for (i=0; i<10; i++)
{
buffer1 = PMPMasterRead();
PMADDR++;
}
Thank you in advance