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

Synchronize a PWM output to an input signal in zephyr

Hello, zephyr pwm driver documentation and samples, shows clearly how to generate a PWM output using nrf52840 dk. However, we need to synchronize the PWM output to an input signal. In other words, we want to output a pwm pulse of a given width after a given delay from an input signal edge event. One way to do this is to configure the input signal edge event to clear the PWM timer but not sure how we do this or any other way to enable this functionality in zephyr using nrf52840 dk. Any input would be greatly appreciated. Thx! 

Related