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.

[参考译文] TM4C129XNCZAD:EEPROM 的 I2C 主机通信问题

Guru**** 2398695 points
Other Parts Discussed in Thread: TM4C129XNCZAD

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1134998/tm4c129xnczad-i2c-host-communication-issue-with-eeprom

器件型号:TM4C129XNCZAD

大家好、

以下是客户提出的问题、可能需要您的帮助:

使用 TM4C129XNCZAD I2C9作为主机读取 EEPROM。 当主机被初始化时、I2C 控制/状态(I2CMCS)寄存器为0x60。 初始化过程如下:

SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C9);

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);

GPIOPinConfigure(GPIO_PE6_I2C9SCL);
GPIOPinConfigure(GPIO_PE7_I2C9SDA);
GPIOPinTypeI2CSCL(GPIO_PORTE_BASE, GPIO_PIN_6);
GPIOPinTypeI2C(GPIO_PORTE_BASE, GPIO_PIN_7);

I2CMasterInitExpClk(I2C9_BASE, g_ui32SysClock, 0);
I2CMasterEnable(I2C9_BASE);

总线初始化后的繁忙状态会阻止 EEPROM 读取。

注意:I2C 总线 SCL、SDA 已接收上拉电阻器(2.2K)、总线通过示波器测量进行上拉、但示波器无法检测 SCL 和 SDA 输出。

您可以帮助检查此案例吗? 谢谢。

此致、

樱桃

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

    您好、Cherry、

     您能否共享示波器捕获还是最好共享逻辑分析仪捕获?

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

    您好、Charles、

    感谢您的支持。

    [引用 userid="93620" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1134998/tm4c129xnczad-i2c-host-communication-issue-with-eeprom/4212343 #4212343"]您是否可以共享范围捕获或最好是逻辑分析仪捕获?

    现在示波器未捕获波形。 I2C 初始化后、即处于忙状态。  

    谢谢、此致、

    樱桃

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="496057" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1134998/tm4c129xnczad-i2c-host-communication-issue-with-eeprom ]注意:I2C 总线 SCL、SDA 已接收上拉电阻器(2.2K)、总线通过示波器测量进行上拉、但示波器无法检测 SCL 和 SDA 输出。

     默认情况下、TM4C129XNCZAD 引脚 PE7上的 PE7被锁定以用作 NMI。

    要将 PE7用于 I2C、需要将引脚"解锁"-请参阅 [常见问题解答]如何使 TM4C129器件上的锁定 GPIO 引脚正常工作。

    即尝试按照常见问题解答中描述的方法解锁 PE7。

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

    切斯特、您好!

     非常感谢。 我很确定问题是因为引脚已锁定。 需要解锁才能用于 I2C。