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.

[参考译文] MSP430G2553:查找使用 SPI 与传感器通信的示例代码。 基本上是发送命令、接收测量。 一个小的 SPI Rx/TX 库会很好。

Guru**** 2551110 points
Other Parts Discussed in Thread: MSP430G2553, ENERGIA

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/590918/msp430g2553-looking-for-example-code-to-use-spi-to-communicate-with-sensor-basically-send-command-receive-measurement-a-little-spi-rx-tx-library-would-be-great

器件型号:MSP430G2553
主题中讨论的其他器件: Energia

正在寻找使用 SPI 与传感器通信的示例代码。 基本上是发送命令、接收测量。 一个小的 SPI Rx/TX 库会很好。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、请再次访问 :e2e.ti.com/.../590466

    遗憾的是、TI 不会为 MSP430G2553提供直接的 CCS SPI 库。 Driverlib 支持 F5xx/6xx、I2XX 和 FRAM 器件、但 G2超值系列中没有任何内容。 Energia 具有 SPI 库、因此可以将示例移植到 CCS 中。 社区还提供了一些可在线找到的库。 否则、您需要从提供的 C 代码示例开始创建自己的代码。

    此致、
    Ryan