Changing Gate drive PWM Pins in SPC5-MCTK-LIB SDK based PMSM Motor controller example project
Hi All,
We are developing PMSM motor controller using SPC5-MCTK-LIB sdk and SPC560P50L3 controller. We have Motor controller development kit and we are able run motor using devkit. Now we have developed a custom board using SPC560P50L3 and in the custom board, PWM gate drive pins are interchanges as following.
| Pin No (SPC560P) | Configuration in Example project and devkit | Custom Board Configuration | |
| 82 | HS2 | HS2 (PWM_IN_H-V) | HS1 ((PWM_IN_H-U) |
| 83 | LS2 | LS2(PWM_IN_L-V) | LS1 (PWM_IN_L-U) |
| 85 | HS1 | HS1 ((PWM_IN_H-U) | LS2(PWM_IN_L-V) |
| 86 | LS1 | LS1 (PWM_IN_L-U) | HS2 (PWM_IN_H-V) |
| 89 | HS3 | HS3 ((PWM_IN_H-W) | LS3 (PWM_IN_L-W) |
| 90 | LS3 | LS3 (PWM_IN_L-W) | HS3 ((PWM_IN_H-W) |
So basically, we have interchanged High with Low side and Uvw with VWU phase.
Now, I need help in changing the PWM pins with respect to our custom board.
Currently we are using example project SPC560P50L3_MotorControl_STEVAL-TTM001V1 and in the example project pins are configured as following with respect to devkit,

We are using following devkit:
inverter board and driver board - STEVAL-TTM001V1 (https://www.st.com/en/evaluation-tools/steval-ttm001v1.html)
controller Board - STEVAL-TTM002V1 (https://www.st.com/en/evaluation-tools/steval-ttm002v1.html)
So, Pleas help us in changing gate driver PWM pin configuration in the example project with respect to our custom board.
Best regrads,
Pradeep
