The project I'm using the peripheral BLE UART that has been modified to use freeRTOS and PWM.
I'm using two channel PWM to drive a resonance motor at 25.6 kHz. If I disable the BLE thread the standard deviation of the PWM signal is ~10 Hz. However if the BLE thread is enabled, the PWM standard deviation jumps to ~ 150Hz. And unfortunately that is enough of a frequency drift to bring the motor out of resonance. Is there anything I can do to minimize this effect, and why does BLE increase the drift of the PWM signal ?
The PWM base is 16 MHz
thanks,