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: 在配置IO和PWM互相切换时,发波失败问题。

Part Number: TMS320F280039C

switch(PortState)
    {
    case 1:
        GPIO_setPadConfig(0, GPIO_PIN_TYPE_PULLUP);
        GPIO_setPadConfig(1, GPIO_PIN_TYPE_PULLUP);
        GPIO_setPinConfig(GPIO_0_EPWM1_A); 
        EPWM_configureSignal(pfcpwmSignal[EPWM1_Num].epwmModule, &pfcpwmSignal[EPWM1_Num].EPWM_SignalParam);
    case 0:
        GPIO_setPinConfig(GPIO_0_GPIO0);
        GPIO_setPinConfig(GPIO_1_GPIO1);
    }

我以这种方式配置IO和pwm互相切换,当PortState为1,也就是PWM模式,然而发波失败,IO0和IO1一直是高电平。

请各位专家及时解答一下,谢谢~~~