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.

C28345通过XINTF写数据

各位开发者:

    大家好。我现在使用C28345通过XINTF连接外部的FPGA读写数据,能够读入数据,在写数据时,反复的写从0-2000的数,发现写入256时,接收到数据为0,写512时,接收到的数据为256,写入768时,接收到的数据为512.XINTF的配置如下:

XintfRegs.XINTCNF2.bit.XTIMCLK = 0;
XintfRegs.XINTCNF2.bit.WRBUFF = 0;


XintfRegs.XTIMING6.bit.XWRLEAD = 3;
XintfRegs.XTIMING6.bit.XWRACTIVE = 6;
XintfRegs.XTIMING6.bit.XWRTRAIL = 3;


XintfRegs.XTIMING6.bit.XRDLEAD = 2;
XintfRegs.XTIMING6.bit.XRDACTIVE = 6;
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;

请教一下,这是什么原因??