Tool/software: Code Composer Studio
Hello,
I'm using DMA only triggered by SOCA of a PWM submodule.
PWM and control task is not synchronized due to switching frequency is variable.
In a certain moment of the control task, I want to disable DMA, move some data with the CPU and reenable DMA. When I reenable the DMA I must be sure that DMA operation occurs synchronized with SOCA event. I do not what trigger DMA if SOCA event was latched.
How can I erase existing SOCA events before enable SOCA (SOCAEN=1;)?
Thank you
Kind Regards