本帖最后由 nb533 于 2013-1-21 10:23 编辑
向28335外部存储器xintf写数据,和xintf那一片相关的存储区全都是一样的数,而且高八位没法写,求解决
#include "DSP2833x_Device.h"
#include "DSP2833x_Examples.h"
Uint16 *p=(Uint16 *)0x10FC00;
void init_zone6(void)
{
SysCtrlRegs.PCLKCR3.bit.XINTFENCLK = 1;
InitXintf16Gpio();
EALLOW;
XintfRegs.XINTCNF2.bit.XTIMCLK = 0;
XintfRegs.XINTCNF2.bit.WRBUFF = 3;
XintfRegs.XINTCNF2.bit.CLKOFF = 0;
XintfRegs.XINTCNF2.bit.CLKMODE = 0;
XintfRegs.XTIMING6.bit.XWRLEAD = 1;
XintfRegs.XTIMING6.bit.XWRACTIVE = 2;
XintfRegs.XTIMING6.bit.XWRTRAIL = 1;
XintfRegs.XTIMING6.bit.XRDLEAD = 1;
XintfRegs.XTIMING6.bit.XRDACTIVE = 3;
XintfRegs.XTIMING6.bit.XRDTRAIL = 0;
XintfRegs.XTIMING6.bit.X2TIMING = 0;
XintfRegs.XTIMING6.bit.USEREADY = 0;
XintfRegs.XTIMING6.bit.READYMODE = 0;
XintfRegs.XTIMING6.bit.XSIZE = 3;
EDIS;
asm(" RPT #7 || NOP");
}
void main(void){
DINT;
IER=0x0000;
IFR=0x0000;
init_zone6();
InitSysCtrl();
InitPieVectTable();
*p=0x1124
}
图片见下一楼
|