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.

[参考译文] TMS320F28379D:I2C 通信

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1123452/tms320f28379d-i2c-communication

器件型号:TMS320F28379D
主题中讨论的其他器件:C2000WARE

您好!

我想通过 i2c 与 IMU 传感器(LSM9DS1)通信。 我已经介绍了有关读取和写入函数的 TMSVCC5503指南。 如 Launchpad 格式的 TRF 中所述,S-A+WR-D-D-P,但对于这种 IMU 格式,如下所示:S-A+WR-ACK-SUB (子地址)-ACK-DATA。  除了 EEPROM 之外、您能为 i2c 提供示例代码吗?  

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

    您好!

    该器件的 I2C 示例都位于下面的 C2000WARE 目录中。 您可以参考一些 EEPROM 示例以及"i2c_ex5_master_slave_interrupt"。

    C:\ti\c2000Ware_4_01_00_00\driverlib\f2837xd\examples\cpu1\i2c

    您应该能够利用其中的'i2cLib_FIFO'文件和函数(由 ex4至 ex6使用)来满足您的器件协议。

    最棒的

    Kevin