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.

[参考译文] CCS/TMS320F28377D:如何使用 TMS302F28377D 更改 I2C 引脚、例如"i2c_EEPROM_quot

Guru**** 2579015 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/647816/ccs-tms320f28377d-how-to-change-i2c-pin-in-example-i2c_eeprom-with-tms302f28377d

器件型号:TMS320F28377D

工具/软件:Code Composer Studio

您好、TI

我想在示例"i2c_EEPROM"中将引脚操作 I2C 从 GPIO32、GPIO33更改为 GPIO91、GPIO92。

现在、我按照该函数更改引脚。

//对于这个示例、只初始化针对 SCI-A 端口的引脚。
//这些函数可在 F2837xD_GPIO.c 文件中找到。
GPIO_SetupPinMux (91、GPIO_MUX_CPU1、1);
GPIO_SetupPinMux (92、GPIO_MUX_CPU1、 1); 

但是、输出不会随此命令变化。

请推荐我。

谢谢你

RATWO

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

    在 F28377D 中、仅当 GPIO 多路复用器选择值为6时、GPIO91/92上才提供 I2C 引脚。 GPIO 多路复用器选择值1不会将这些引脚配置为 I2C 引脚。 请参阅表4-3。 GPIO 复用引脚表以了解更多详细信息。

    GPIO_SetupPinMux (91、GPIO_MUX_CPU1、6);
    GPIO_SetupPinMux (92、GPIO_MUX_CPU1、6);

    此致、
    曼诺伊