Hi,
You can set up the hardware PWM for a constant frequency output without any code overhead. Then you can sample your pot and dump it to the PWM duty cycle. Both are 10 bits. Easiest way to get a pot controlled variable dutycylce signal.
Regards
Sougata
Bookmarks