This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6743 DSP的EMIFA外接FPGA的双口RAM,DSP不能正确读写双口RAM,EMIFA的WE引脚是控制读写的吗?6743有没有R/W读写方向控制信号??



补充:6743有EMA_WE_DQM这个引脚吗?手册上说外接异步存储器有两种模式, Normal Mode、Select Strobe Mode ,这俩看不出有什么区别啊??

以下是我的DSP读写程序:不知道正确不,请指教

/*
 *  Core 6747 ' SDRAM.
 *  All by yanxu.
 */

#include "stdio.h"
#include "C6747.h"
#include "C6747_uart.h"

Uint32 temp[1000];

 

void main( void )
{
 /* 初始化6747核*/
   C6747_init();
 
    /* 调用SDRAM测试程序*/
   testallblock();

 
}


void testallblock(void)
{

    Uint32 i;
    Uint32 *DRAM_StartAdd;
 Uint32 *temp_add;
    Uint32 Length=100;
    DRAM_StartAdd = (Uint32 *)0x60000000;
   

 

   for(i=0;i<Length;i++)
 {
  temp_add = DRAM_StartAdd+i;
  *(temp_add) =i;
  asm(" NOP 1 ");
 }

 for(i=0;i<Length;i++)
 {
  temp[i]=*(DRAM_StartAdd+i);
  asm(" NOP 1 ");
 
 }
 


}

  • SS与Normal模式的区别在是用OE,还是CS锁地址,和数据,看一下时序图就知道了。

    上面的程序谈不上对不对。运行没问题,估计不是你想达到的目的,地址的增加不应该是1,因为定义的指针是32bit数据的。

    还有这个片选是指的什么片子?如果是nor flash,可不是这么写的。