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

PWM Driver - PIN state between and at the end of sequence

I use the nrf_drv_pwm to generate a pwm sequence,

The sequence works fine, but between sequences and at the end I am unable to control the pin.

It is always high unless I disable the pwm by using nrf_drv_pwm_uninit or using the NRF_DRV_PWM_FLAG_STOP.

I tried to Invert the idle state of the ping in the config (pin | NRF_DRV_PWM_PIN_INVERTED) and clearing the output in the NRF_DRV_PWM_EVT_END_SEQ0 Event.

Related