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

app_pwm_channel_duty_set() in nrf_drv_timer_event_handler

Hello,

The pwm example shows changing the duty cycle inside the main while loop with delay wait.

I would like to get rid of this delay wait by putting the app_pwm_channel_duty_set() in the event_handler of a timer.

Is it possible?  What kind of priority I need to set for pwm and timer?

Thanks.

Related