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.

TMS320F280049C: instaspin lab3 PWMDAC pin muxing

Part Number: TMS320F280049C
Other Parts Discussed in Thread: LAUNCHXL-F280049C

Hello,

In the instaspin motor control labs' hal.c I see the pin muxing configuration for 3 out of the 4 PWMDAC channels, and it looks like the numbering is slightly off based on the initialization sequence in HAL_init(). Can you confirm that there's a missing GPIO configuration for the EPWM7B channel, and where it should be muxed to? It looks like GPIO 13 is used for DRV_EN signal.

First EPWMDAC Channel (SHOULD READ EPWM7A->PWM-DAC0):

// EPWM8B->PWM-DAC3
GPIO_setMasterCore(12, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_12_EPWM7A);
GPIO_setDirectionMode(12, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(12, GPIO_PIN_TYPE_STD);

Second EPWMDAC channel (SHOULD READ EPWM8A->PWM-DAC2):

// EPWM8A->PWM-DAC1
GPIO_setMasterCore(14, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_14_EPWM8A);
GPIO_setDirectionMode(14, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(14, GPIO_PIN_TYPE_STD);

Third EPWMDAC channel (SHOULD READ EPWM8B->PWM-DAC3):

// EPWM8B->PWM-DAC2
GPIO_setMasterCore(15, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_15_EPWM8B);
GPIO_setDirectionMode(15, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(15, GPIO_PIN_TYPE_STD);

As you can see it looks like EPWM7B doesn't get muxed out.

Munan