AnsweredAssumed Answered

Writing to Asynchrone memory

Question asked by Tommy on Dec 23, 2009
Latest reply on Mar 6, 2010 by PrasanthR

Hi ADI Support,

 

I have a problem writing and reading to the Asynch Mem bank  3. I have connected there a controller using CS#(ASM3 Select), WR#, RD# and D/C# are address lines.

 

I am using the following code. The first line writes a command to the controller and the second part of the code is reading from the asyn memory bank3 from the controller. This gives me always an error in reading back the result. I have noticed that the write command cycle is places inbetween the read cycle on the memory bus of the asynchronous interface. I can see this with an logic analyser that I got the write inbetween the read from the controller. Any suggestion what can cause this.

 

Here is a part of my code.

*pcmd_port=command; 

for(loop=0;loop<data_len;loop++)

  *data++=*pdata_port++;
}

 

Thanks for support

Regards

Thomas

Outcomes