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.

[参考译文] TM4C1299NCZAD:I2C SCL 内部上拉值

Guru**** 2522770 points
Other Parts Discussed in Thread: TM4C1299NCZAD

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1562852/tm4c1299nczad-i2c-scl-internal-pull-up-value

器件型号:TM4C1299NCZAD


工具/软件:

您好、

在  TM4C1299NCZAD 的数据表中、该数据表列出了 I2C 接口包含一个内部上拉电阻器。 请参阅下图。

 

这有什么价值? 我需要知道、因为好像这将与我选择的上拉电阻并联、并会影响指定的等效电阻。 我正在使用 SVO 缓冲器、因此需要确信我的上拉电阻允许我拉至缓冲器的 VOL 以下。

此致、

Andrew

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

    您好、Andrew、

     必须为总线使用外部上拉电阻器。 通常对于标准速度 (100kbps)、4.7k 就足够了。 要实现 400k 等更高的速度、您将需要更强的上拉电阻。 我将建议您使用本应用手册 https://www.ti.com/lit/pdf/slva689 根据总线负载确定正确的值。  如果您看看 I/O 焊盘是如何为 SCL 功能配置的、则不会启用内部弱上拉。 控制器只能为 SCL 主动驱动为低电平。 SCL 或 SDA 达到高电平所需的时间仅取决于外部信号电容和上拉电阻值、而不是内部上拉电阻。  

    void
    GPIOPinTypeI2CSCL(uint32_t ui32Port, uint8_t ui8Pins)
    {
    //
    // Check the arguments.
    //
    ASSERT(_GPIOBaseValid(ui32Port));

    //
    // Make the pin(s) be peripheral controlled.
    //
    GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW);

    //
    // Set the pad(s) for push-pull operation.
    //
    GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD);