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

PWM sync

Hello,

I would like to synchronize 2 hardware PWMs between them (nrf52).

I mean with NRF_PWM0 and NRF_PWM1.

I tried to do this:

NRF_PPI->CH[0].EEP = (uint32_t)&NRF_PWM0->EVENTS_SEQSTARTED[0];
NRF_PPI->CH[0].TEP = (uint32_t)&NRF_PWM1->TASKS_SEQSTART[0];
NRF_PPI->CHEN = (PPI_CHEN_CH0_Enabled << PPI_CHEN_CH0_Pos);

But it doesn't work, my 2 PWMs aren't synchronized together on rising edge...

How do I have to do ?

Thank you in advance.

Related