I've written code to support altering PIC161x PWM period (and duty) via a rotary encoder.
For the duty it seems clear the user does indeed want to adjust duty
time, so encoder movement maps simply to duty change. For the period, I am uncertain what seems natural.
As I tried adjusting PWM period, I found I actually expected control of frequency, but only to get to a ball-park value. After that, and with the 'scope timebase set appropriately, I then required good control of period.
Because f = 1/t, it takes ages to wind frequency down to minimum, but going from half to full frequency is very fast.
- Perhaps slow turns imply period-centric control, fast turns imply frequency-centric control?