Hello there,
I have configured the 4 PWM peripherals to generate a certain waveform. I need to start all 4 pwm peripherals simultaneous.
I thought of achieving this through usage of the PPI + EGU.
EGU channel 0 event triggers EGU channel 1 and channel 2 tasks.
EGU channel 1 event triggers PWM0/1 SEQSTART tasks.
EGU channel 2 event triggers PWM2/3 SEQSTART tasks.
This is written in the code below:
The following 4 signals should rise at the same time, however they are 1.85 us out of sync.
Triggering the PWM SEQSTART tasks manually has the same result:
Strangely enough, if I reverse the order in which I start the PWMS:
The PWM signals are still generated in order PWM0->PWM3
Can anyone explain this? Is there no way to start the PWMs at the same time?
I am using NCS V2.5.0.