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.

[参考译文] MSP430G2452:SPI ccsv10编译器错误

Guru**** 665180 points
Other Parts Discussed in Thread: MSP430G2553, MSP430G2452, MSP430G2453
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1075042/msp430g2452-spi-ccsv10-compiler-error

部件号:MSP430G2452
《线程》中讨论的其他部件:MSP430G2553MSP430G2453

您好,

我在 MSP430G2553中使用了 SPI。 这在硬件上也起了作用。

然后,我在 CCSV10中将 CIP 切换到 MSP430G2452。 CCS 现在在 SPI 编程方面显示了许多错误,因为编译器(如 B USITXBUF)不知道。

如果我切换到 MSP430G2453,则没有错误消息。

然后我查看了 MSP430g2452.h 和 MSP430g2453.h 文件

MSP430g2452. h 中未定义 USITXBUF,因此编译器无法翻译此内容。

USITXBUF 在 MSP430g2453.h 中定义

根据数据表,MSP430G2452具有 SPI。

为什么 MSP430g2452.h 中定义的 SPI 与 MSP430g2453.h 文件中定义的 SPI 不同?

为什么该转换适用于 MSP430g2453,而不适用于带有 CCV10的 MSP430g245。

此致