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.

TMS320F280039C: adc_ex2_soc_epwm例程的GPIO波形输出

Part Number: TMS320F280039C

我期望得到ADCSOCAO的波形。

所以修改例程adc_ex2_soc_epwm,添加了如下GPIO的代码 ,但是GPIO8 口没看到任何波形,只有高电平。

void initGPIO()
{
      GPIO_setPadConfig(8, GPIO_PIN_TYPE_PULLUP); // Enable pullup on GPIO8
      GPIO_setPinConfig(GPIO_8_ADCSOCAO); // GPIO8 = GPIO8
      GPIO_setDirectionMode(8, GPIO_DIR_MODE_OUT); // GPIO8 = output
}

请问是哪里设置有误吗?还是漏了什么?

x 出现错误。请重试或与管理员联系。