Tool/software: Code Composer Studio
Dear friends
the following is pwm gpio part of motorcontrolsdk for f280049c hal.c . My application is 3 phase pmsm motor and utilizes 3 half bridge classic inverter. In my hardware which is going to use F280049C control card, pin number 49 (gpio-00) is allocated to lower switch in leg. also pin number 51 (gpio-01) is allocated to upper switch. I have modified the code as following:
// EPWM1A
GPIO_setMasterCore(1, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_0_EPWM1A);
GPIO_setDirectionMode(1, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(1, GPIO_PIN_TYPE_STD);
// EPWM1B
GPIO_setMasterCore(0, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_1_EPWM1B);
GPIO_setDirectionMode(0, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(0, GPIO_PIN_TYPE_STD);
are these correct modifications considering my hardware?
Thanks for your help
Regards
Mak