Tool/software: Code Composer Studio
Hi, I am using F28379D microcontroller. I am trying to generator Space Vector PWM (SVPWM) for 3 phase inverter. I am going through the control suite example D:\ti\ti control suite\development_kits\HVMotorCtrl+PfcKit_v2.1\HVACI_Scalar where svgen_mf is used to generate SVPWM. I have a few questions about this.
1. The attached image svgen_mf is screenshot of svgen_mf,h file in HVAC1 Scalar project. It uses step angle to determine the sector number. v.StepAngle = _IQmpy(v.Freq,v.FreqMax); Why is freq and FreqMax multiplied here? In the svgen_mf module (in spru485a.pdf), STEP is used to determine angular frequency (Screenshot attached). Can you please give an example code where this approach is used to determine angular frequency?
If my switching frequency is 20kHz, mains frequency is 60Hz, then how do I provide the angular frequency w in my code?
2. This project takes Freq and Gain from Voltage/Hertz Profile (VHZ) module as follows:
svgen_mf1.Gain = vhz1.VoltOut;
svgen_mf1.Freq = vhz1.Freq;
I do not intend to use VHZ module. How do I provide this varying angular frequency in my program?
3. In three phase inverters, which macro is better for SVPWM generation, svgen_mf or svgen (which is in dq)?
Thanks.