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.

[参考译文] TMS570LC4357:UART 中断的 I2C 问题

Guru**** 2458730 points
Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1127932/tms570lc4357-i2c-issue-with-uart-interrupt

器件型号:TMS570LC4357
主题中讨论的其他器件:HALCOGEN

您好!  

我在中断模式下使用 UART 接收、在轮询中使用 I2C。 在每25ms 内 、代码将定期中断、因为 UART 数据传入会使 i2c 总线挂起。

建议您使用 halcogen 来生成代码、并参考 halcogen 中给出的示例代码。

谢谢、

Aman

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

    尊敬的 Aman:

    I2C 模块是主设备还是从设备、以及在 I2C 错误挂起时发送器还是接收器?  为了了解总线上的情况、示波器或逻辑分析仪仪器非常有用、您是否探测了 SDA 和 SCL?

    如果您使用 I2C 中断模式而不是多项模式、会发生什么情况?