DSP2812我外扩的了RAM,但程序在RAM里跑的时候,运行起来速度很慢,请问,程序里主要有哪些设置以后才行?
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.
DSP2812我外扩的了RAM,但程序在RAM里跑的时候,运行起来速度很慢,请问,程序里主要有哪些设置以后才行?
需要对外扩RAM进行初始化,给你个参考代码:
void Sram_init( void)
{
XintfRegs.XTIMING6.bit.X2TIMING = 0;
XintfRegs.XTIMING6.bit.XRDLEAD = 1;
XintfRegs.XTIMING6.bit.XRDACTIVE = 1;
XintfRegs.XTIMING6.bit.XRDTRAIL = 0;
XintfRegs.XTIMING6.bit.XWRLEAD = 1;
XintfRegs.XTIMING6.bit.XWRACTIVE = 1;
XintfRegs.XTIMING6.bit.XWRTRAIL = 0;
XintfRegs.XINTCNF2.bit.CLKMODE = 0;
}