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

How to have 3 PWMs by using app_pwm.c ?

Hi All,

I want to have 3 PWMs by using app_pwm.c lib (in SDK 9.0.0). But from doc each instance takes 2 ppi plus 2 plus per channel.

Means 3 PWMS needs 2 instances.

first instance: 2 + 2 x 2 = 6 2nd instacne: 2+ 2 x 1 = 4

so when i init 2nd PWM instance I got NO_MEM error.

Any good idea about this ?

Parents
  • Hi Sam

    The application can use PPI channels 0-13 when using S110, because the S110 reserves PPI channels 14-31 when enabled, see S110 Softdevice Specification 2.0, section 11.5. If you have no softdevice enabled than you can use PPI channels 0-15 for the application.

Reply
  • Hi Sam

    The application can use PPI channels 0-13 when using S110, because the S110 reserves PPI channels 14-31 when enabled, see S110 Softdevice Specification 2.0, section 11.5. If you have no softdevice enabled than you can use PPI channels 0-15 for the application.

Children