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.

[参考译文] CCS/TM4C123GH6PM:TivaWare I2C 官方示例

Guru**** 2484615 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/732811/ccs-tm4c123gh6pm-official-tivaware-i2c-example

器件型号:TM4C123GH6PM

工具/软件:Code Composer Studio

您好!

我正在尝试设计一个 PID 控制实验。

这涉及使用 I2C 在 TM4C123G 和 MPU6050之间进行通信。

我能够在网上找到有关此主题的大量信息-我被大量的质量问题示例所淹没、并有很多错误。

您能给我点一个官方的"转到"TI 示例吗?该示例使用 TivaWare 库在 launchpad 上进行 I2C 通信?

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

    对于 MPU6050、TivaWare 随附了 API、作为 mpu6050.c 文件中 SensorLib 文件夹的一部分、因此我建议从此处开始。

    我们还提供了使用 BOOSTXL-SENSHUB BoosterPack 的各种传感器的 I2C 示例。 对于 LaunchPad、您可以在[Install Path]\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c123gxl-bootstxl-senshub 找到这些文件

    最后、一般 I2C 示例也位于[安装路径]\TivaWare_C_Series-2.1.4.178\examples\peripherals\i2c 中