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/TMS320F28035:I2C 的简单读取功能

Guru**** 2609895 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/687582/ccs-tms320f28035-simple-read-function-for-i2c

器件型号:TMS320F28035

工具/软件:Code Composer Studio

您好!  

有人可以帮助我执行读取功能吗? 我正在尝试读取 tmp 100。

因此、我必须发送地址并读回 tmp 寄存器。

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

    萨加尔

    我不知道为什么这不起作用。 对我来说很不错

    根据您的其他线程、您是否验证了时钟是否正确?

    我上传了一个简单的.c 文件、该文件是同一器件上的主器件和从器件 I2C 之间的基本外部回送。 这里没有中断、NACK 或其他错误检测、但是初始化和简单主器件 TX、主器件 RX、从器件 TX 和从器件 RX 代码在一个非常短的循环中存在。

    /cfs-file/__key/communityserver-discussions-components-files/171/I2CMasterToSlave.c

    请告诉我这是否有帮助。