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
  • I realized that the S130/headers/nrf_sd_def.h limit user ppi location to channel 0-7. If I hack the SD_PPI_CHANNELS_USED to 0xFF0FC00uL to allow user allocate ppi to channel 8,9 it passes.

    I want to know if this is a hard limitation or not.

Reply
  • I realized that the S130/headers/nrf_sd_def.h limit user ppi location to channel 0-7. If I hack the SD_PPI_CHANNELS_USED to 0xFF0FC00uL to allow user allocate ppi to channel 8,9 it passes.

    I want to know if this is a hard limitation or not.

Children
No Data