I see that in BLDC control there are two parameters for switching frequency: max and min. Is that because the PWM frequency is adapted on the go?
Can I put max and min the same value to keep a constant frequency?
Switching frequency is mapped according to dutycycle.
switching_frequency_now = (float)conf->m_bldc_f_sw_min * (1.0 - fabsf(dutyCycle)) + conf->m_bldc_f_sw_max * fabsf(dutyCycle);
Which is the same as (pseudocode):
switching_frequency = switching_frequency_min + dutycycle*(switching_frequency_max - switching_frequency_min)
You should be able to set max and min to the same value to keep a constant frequency.
Switching frequency is mapped according to dutycycle.
Which is the same as (pseudocode):
You should be able to set max and min to the same value to keep a constant frequency.