Other Parts Discussed in Thread: DRV8320, LAUNCHXL-F280049C
Tool/software: Code Composer Studio
Hi yanming
responding to your answer that F280049C LaunchPad board with DRV8320 do not support PWMDAC
(e2e.ti.com/.../3487000, i have some related questions :
From the code, PWMDAC use ePWM7A/B and ePWM8A/B, that is related to GPIO12/28(7A) GPIO13/29(7B) GPIO 14/24 (8A) and GPIO 15/32(8B),
and those PGIOs are used for other function at the LaunchPad board, does it the reason of you answer?
What about if i use ePWM1 & 4 (that is originally used by site as the PWM signal for DRV8320 at site2), since i only use site 1. ?
// obj->pwmHandle[0] = EPWM1_BASE; //!< the PWM handle, GPIO0/GPIO1
// obj->pwmHandle[1] = EPWM4_BASE; //!< the PWM handle, GPIO6/GPIO7
obj->pwmDACHandle[0] = EPWM1_BASE; //EPWM7_BASE;
obj->pwmDACHandle[1] = EPWM1_BASE; // EPWM7_BASE;
obj->pwmDACHandle[2] = EPWM4_BASE; // EPWM8_BASE;
obj->pwmDACHandle[3] = EPWM4_BASE; // EPWM8_BASE;
Do i also have to run this below code at hal.c, as by default HAL_setupPWMDACs will not be compiled, and instaspin lab guide does not mention about this as well
#ifdef PWMDAC_ENABLE
// setup the PWM DACs
HAL_setupPWMDACs(handle, USER_SYSTEM_FREQ_MHz);
#endif
thanks