Hello
how to capture the counter value at the instant a DC event occurs?
I am working on a variable frequency control using an external ZCD signal. When a ZCD signal comes, I am generating the DC event. Using the digital compare sync event, I am making the counter (phase) of the EPWM 0. For the control purpose, I need to know the value of the counter before it goes to 0. Can you suggest how the capture the counter value?
I tried using ECAP but I do not see any option of creating ECAP event using DC event.
Thank you
Amir Hussain