现在使用C6748,EMIFA数据总线为16位,将FPGA挂载到EMIFA的CS4的空间上,,我怎么给FPGA给一个32位数呢?
#define CS4_ADRS 0x64000000
void main(void)
{
*((UINT16 *)CS4_ADRS+0x022A) = 0x11111111;
}
直接像上面的测试程序可以吗?
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.
现在使用C6748,EMIFA数据总线为16位,将FPGA挂载到EMIFA的CS4的空间上,,我怎么给FPGA给一个32位数呢?
#define CS4_ADRS 0x64000000
void main(void)
{
*((UINT16 *)CS4_ADRS+0x022A) = 0x11111111;
}
直接像上面的测试程序可以吗?
嗯,都是16位的。我在C6747上的操作如下:
*((unsigned volatile int*)CH1_CODE_NCO_FREQ6)=0Xaaaa1111; 完全可以给到一个地址上一个32位数,而且在数据总线上也可以看到高16,低16位数据轮流发送;
而现在C6748只能给一个16位的数,如果想发送32位数,必须分两次,比如:
*((unsigned volatile int*)CH1_CODE_NCO_FREQ6)=0Xaaaa;
*((unsigned volatile int*)CH1_CODE_NCO_FREQ6)=0X1111;
这是为什么?????