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.

如何通过XINTF读取外部设备的数据(C程序编写)

Other Parts Discussed in Thread: TMS320F28335

XINTF的时序配置已通过看文档《TMS320x2833x 2823x DSC External Interface(XINTF) Reference Guide》明白,但不知道具体怎么编程读写数。

采用的芯片为TMS320F28335。

假设所要读取的数据的格式为16位二进制补码(整数),地址0x004000,对应XINTF的zone 0的第一个地址;
假设XINTF的时序配置完成且正确。

看到一些程序里采用类似如下的形式读入:
int16 a;
unsigned int * Data1 = (unsigned int *)0x004000;
a = * Data1;
即地址指针为指向无符号整型
这样写有没有问题?


是否可以这样写:
int16 a;
int16 * Data1 = (int16 *)0x004000;
a = * Data1;
也就是说地址指针为指向有符号整型

TI公司有没有提供规范的写法?