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.

[参考译文] MSPM0L1304:如何使用为主机创建从器件地址

Guru**** 2777545 points

Other Parts Discussed in Thread: MSPM0L1306

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1616545/mspm0l1304-how-to-create-slave-address-for-host-using

部件号: MSPM0L1304
主题: MSPM0L1306 中讨论的其他器件

尊敬的 TI 专家:

我已在从模式下创建 I2C。

但看起来主机检测失败。 并在 IRQ 中添加断点将失败。

提供我的设置供您参考。

image.png

image.png

image.png

image.png

image.png

image.png

谢谢、

Ben

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

    C:\ti\mspm0_sdk_2_09_00_01\examples\nortos\LP_MSPM0L1306\driverlib\i2c_controller_rw_multibyte_fifo_interrupts

    C:\ti\mspm0_sdk_2_09_00_01\examples\nortos\LP_MSPM0L1306\driverlib\i2c_target_rw_multibyte_fifo_interrupts

    这两个演示可以直接相互通信。

    顺便说一下、最好捕获 I2C 波形来监控 I2C 总线以进行进一步调试。

    I2C 还需要外部上拉电阻、请确保主机侧有一个上拉电阻。