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

How could I make a serie of simple/complex PWM playback ?

Hello

I am now quite familiar with the basic PWM playback capabilities of nRF52832. However, I would like to make a chain of simple and complex PWM playbacks.

I have already try to catch the NRF_DRV_PWM_EVT_FINISHED or NRF_DRV_PWM_EVT_STOPPED and if I restart a playback from there I got en error. Is there something special to check/clear before restarting a PWM playback ?

Thanks,

Hugues

Parents Reply
  • Actually, the error is that it does not restart... Actually, I initialize the PWN with nrfx_pwm_init giving a handler to it.

    In this handler function, I check the event NRF_DRV_PWM_EVT_FINISHED  or  NRF_DRV_PWM_EVT_STOPPED (I tried both and I got them) and I try to restart a sequence using nrf_drv_pwm_simple_playback (or the complexe, result is the same).

Children
Related