Tool/software:
I want to run a control algorithm where a six-phase motor will be driven by an inverter using Space Vector Pulse Width Modulation. Here, I want to run Synchronous PWM. So, the switching frequency (or, switching time) is variable. For, SVPWM, the duty cycle for each phase is variable. Also, the switching will be different for different phase for different sectors as SVPWM will be implemented. So, here, TBPRD, CMPA, AQCTL all are variables, which will change or update in every iteration. The e-pwm function runs only once. How can I run the control algorithm with all these variables? Is it possible to do that?