This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PWM with soft device

I'm working in a project & I want to use the PWM application provided by the SDK with the bluetooth module, I want to control the LEDs light intensity using the PWM, the PWM app is working well without using the softdevice, when I integrate the PWM with the ble application ,I faced a problem that it doesn't work, it didn't generate any warnings or errors I don't know the reason for that & how to overcome the problem.

thanks in advance

Parents
  • I managed on it and it works by enabling only the PWM to one channel & init it then set the duty cycle and uninit it after that, the concept it that I deallocate the resources of PWM (mainly timers) after using it, the problem now it appears to be flashing while changing the duty cycle to control its brigthness, I wonder if I can ask if there are any possibility to make the resources of the PWM independent of the softdevice, I have 3 timers and two RTC, ble uses only 1 timer and the other two timers will be used with the PWM, or if there any example of building the PWM with the RTC

Reply
  • I managed on it and it works by enabling only the PWM to one channel & init it then set the duty cycle and uninit it after that, the concept it that I deallocate the resources of PWM (mainly timers) after using it, the problem now it appears to be flashing while changing the duty cycle to control its brigthness, I wonder if I can ask if there are any possibility to make the resources of the PWM independent of the softdevice, I have 3 timers and two RTC, ble uses only 1 timer and the other two timers will be used with the PWM, or if there any example of building the PWM with the RTC

Children
Related