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

PWM

I have a single one of the PWM modules working working with DMA as a 3 output arbitrary waveform generator. This works but I would like to make a 6 output arbitrary waveform generator. 

Is there a way to synchronize two of the PWM modules together?

Thanks

Parents
  • Hi,

    Yes, that should be possible. I assume you want to start the 2 PWM instances precisely at the same time ? You could use EGU and PPI for that. Configure a PPI channel with task end-point(TEP) e.g. TASKS_SEQSTART[0] for PWM instance 0, and on the same PPI channel add a fork(FORK[channel].TEP) for TASKS_SEQSTART[0] for PWM instance 1. Then use a EGU event as the PPI event end-point(EEP) that triggers the start of the PWM, and to trigger the EGU event, write 1 to the corresponding EGU TASK.

Reply
  • Hi,

    Yes, that should be possible. I assume you want to start the 2 PWM instances precisely at the same time ? You could use EGU and PPI for that. Configure a PPI channel with task end-point(TEP) e.g. TASKS_SEQSTART[0] for PWM instance 0, and on the same PPI channel add a fork(FORK[channel].TEP) for TASKS_SEQSTART[0] for PWM instance 1. Then use a EGU event as the PPI event end-point(EEP) that triggers the start of the PWM, and to trigger the EGU event, write 1 to the corresponding EGU TASK.

Children
No Data
Related