Hello, I am trying to control the speed of a brushless DC motor using an external electronic speed controller. The speed is determined by a signal from an RC device which I have been able to configure correctly to read the input and generate a measured pulse width (from 1ms to 2ms), using a timer configured for input capture. My only issue is outputting a signal to the ESC (requiring an 8kHz PWM signal) to drive the motor. I have attached part of my project for scrutiny and advise. Thank you.
Could you please let me know the actual issue you are facing with the PWM? What is the problem you are facing when you try to output 8KHz PWM signal ?