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.

[参考译文] EK-TM4C123GXL:如何更改 I2C 接口?

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/691796/ek-tm4c123gxl-how-to-change-the-i2c-interface

器件型号:EK-TM4C123GXL

我在 Tivaware 软件中使用的示例程序位于~\ccsv5\TivaWare_C_Series-1.0\examples\boards\ek-tm4c123gxl-bootstxl-senshub\compdcm_mpu9150。 我想将 mpu9150的 I2C3接口更改为 I2C1接口。 您能告诉我如何 实现这 一目标吗?

附件是我的程序、希望您能为 me.e2e.ti.com/.../8422.Code.txt 逐步教学

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我对您发布的代码与示例进行了快速比较。 您似乎已将基准从 I2C3正确更改为 I2C1。 此外、您还配置了适当的引脚 PA6、而不是 PD0和 PA7、而不是 PD1。 您是如何更改 EK-TM4C123GXL 和传感器集线器之间的硬件连接的、还是使用自定义电路板? 您是否更新了"startup_ccs.c"中的中断矢量表?