We can use level_calc.py to calculate PWM#_LEVELS.
How do we calculate PWM_TOPS?
By using level_calc.py
. For example:
level_calc.py 7.01 2 149 7135 3 0.5 125 FET 1 10 1200 --pwm dyn:63:2048:255
The --pwm dyn:…
option defines the number of dynamic steps, the maximum and the minimum value.
I’m running level_calc.py on my Android phone.
I guess I need to use my laptop to enter those parameters.
Thanks!
How did you decide on 7.01, 63 and 2048?
7.01 – by feeling.
63 – by feeling.
2048 – by feeling.
It’s a lot of trial and error, observing the response of the driver and calculating the effective frequency and minimum on-time (a too short on-time might result in highly non-linear response of the driver, depending on the design). There are just a few constraints like thermal regulation must never enter the PFM region.
Thanks again!
I don’t quite understand what PWM_TOPS is. I understand PWM#_LEVELS but what does PWM_TOPS represent?
It’s something to do with Dynamic PWM but I’m not really sure.
I figured out how to use level_calc with the help of sammy and decided i don’t need to know.