I also need help in same topic kindly if you got this please send me some kind of source code for it which i can control pwm through potentiometer and also if u tells me how to vary the duty cycle automatically using feedback. I am designing a synchronous buck converter..!OP says that a potentiometer is connected to an ADC input.
The setting of the pot 0-100% is to be used to determine the duty cycle of a PWM output.
I also need help in same topic kindly if you got this please send me some kind of source code for it which i can control pwm through potentiometer and also if u tells me how to vary the duty cycle automatically using feedback. I am designing a synchronous buck converter..!