Hi@Kallappa
Ok, I understand what you mean, this does have an impact, because you update too fast. Under normal circumstances, when we change the PWM duty cycle, we need some delay time (I have not tested how much is needed, but I have tried to call it once in 1ms in the PID algorithm)。
You can try to use this function, this may update faster, but it should also require a little delay time.

This is all I know, if you still have questions about this, you can post a new questions in the community.
BR!
Jim,