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.

[参考译文] TMS320F28386S:多路复用 GPIO 引脚

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1172482/tms320f28386s-muxed-gpio-pin

器件型号:TMS320F28386S

我想将 GPIO57用作输出、但引脚不会像在28000049C 上使用相同设置时那样变为高电平。 我看到它在表6-7中的 SPRSP14D 中被列为复用引脚。 是否有必须克服的默认设置才能使其成为 I/O? 复用似乎是一个学习曲线的主题、我在搜索中还没有找到答案。

谢谢、

John

reset57()
{
    Device_init();

    Device_initGPIO();

    Interrupt_initModule();
    Interrupt_initVectorTable();
    EINT;
    ERTM;
	    GPIO_setPadConfig(57U, GPIO_PIN_TYPE_STD);
    GPIO_setDirectionMode(57U, GPIO_DIR_MODE_OUT);

    int i;

    GPIO_writePin(57U, 0);
    DEVICE_DELAY_US(50);


    GPIO_writePin(57U, 1);
    DEVICE_DELAY_US(50);
    SysCtl_resetDevice();
    
    return 0;
}

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

    这是我们所需要的。

        GPIO_setMasterCore(57U, GPIO_CORE_CPU1);

    不知道默认值是什么。 这是程序员参考手册如何有用的另一个示例。