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

How to control the two channels in one PWM instance separately in nRF52840?

Hi

How to control two channels separately with one PWM instance?

I want to turn on/off the PWM output of each channel with any interrupt process.

app_pwm_disable() and app_pwm_enable() seem to only be able to turn the instances on and off.(Can't each channel be turned on/off?).

Since the nRF52840 has a limit of 3 PWM instances, I don't want to use 2 instances to control them (I plan to control the 4 channels separately).

Other information is as follows
Device: nRF52840-DK
Example: pwm_library
Soft device: S140
nRF SDK: 17.0.2

Thanks for your help!

Related