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.

[参考译文] CC2640:i2c 作为从器件时出现问题

Guru**** 2587345 points
Other Parts Discussed in Thread: CC2640

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/596274/cc2640-problem-with-i2c-as-slave

器件型号:CC2640

您好!

我想在 cc2640上使用 i2c 作为从器件。 当我使用以下命令注册中断服务例程时:

I2CIntRegister (I2C0_BASE、&I2C_InterruptServiceRoutine);

静态空 I2C_InterruptServiceRoutine()

它显示以下错误:

您能帮我解决这个问题吗?

2.在 第9 个字节后,另一个问题 i2c 发送 NACK。 此问题也在以下主题中说明  

如何解决此问题?

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

    您使用的是哪个版本的 TI-RTOS? 您是否从 TI-RTOS 示例开始?

    此处还有一个线程、其中包含 i2c 从驱动程序的示例代码: e2e.ti.com/.../557767

    我建议您使用它作为指导。