Hi Sunil,
We are struggling with a slight issue still. The sampling is fine most of the time. However, we are double buffering the samples in order to process them while collecting more. So periodically we are stopping the ADC conversions, stopping the PWM, and re-configuring the DMAs to swap buffers, then restarting ADC conversions and finally restarting the PWM. We have seen instances where it appears as though the wrong ePWM SOC (SOCB) gets triggered first (and therefore the second DMA gets triggered first) and the buffered data is out of order (each pair of samples of the input AC waveform is swapped). When this occurs, it looks like two ePWM SOCs occur back to back. Is there a recommended method of stopping the ePWM SOCs and restarting them such that SOCA always occurs first?
We have tried freezing the PWM counter, then re-configuring the DMA buffers then setting the PWM counter to zero, then unfreezing it, but the issue persists.