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.

[参考译文] TMS320F280049C:F280049C I2C

Guru**** 2508465 points
Other Parts Discussed in Thread: PCA9535

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1112638/tms320f280049c-f280049c-i2c

器件型号:TMS320F280049C
主题中讨论的其他器件:PCA9535C2000WARE

您好!

我想使用 F280049C 微控制器与 PCA9535 GPIO 扩展器进行通信。

PCA9535使用 I2C 通信、而 TI 资源浏览器中提供的 I2C 示例未提供足够的信息来帮助我入门。

作为参考、我已经使用 PCA9535进行 Arduino 设置、因此我了解 PCA9535方面的所有技术。

我主要需要有关执行 I2C 写入、I2C 读取、初始化和设置 I2C 总线的帮助、包括"Wire.h"库(如果 CCS 中有一个或其他等效项)以及使用 I2C 通信所需的任何其他资源。

我已附上一份经过验证的 Arduino 代码副本供参考(我基本上会尝试在 Code Composer Studio 中重新创建该代码)。

我真的在寻找 Code Composer Studio 中 I2C 的"入门"指南。

e2e.ti.com/.../PCA9535_5F00_Library.zip

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

    Michael、

    请检查 PMBus_over_i2c_lib.c 文件中可用的 I2CWrite 和 I2CRead 函数。

    路径:   \libraries\communications\PMBus\c28\examples\common\PMBus_over_i2c_master

    文件:   PMBus_ove_i2c_lib.c

    此致、

    曼诺伊