Hello,
I am facing a peculiar problem where I need to perform some operations on the basis of instantaneous PWM status. I feel the GPADAT register is not replicating it correctly. The manner in which I tested is that I set up an ADC ISR to have the EPWM as the SOC. Inside the ISR, I read the GpioDataRegs.GPADAT.bit.GPIO2 value and set/cleared another GPIO as per the value read. When I observed both signals on the scope (EPWM and the GPIO), I was expecting both signals to largely be similar. However, the observation was to the contrary. Now I don't really need the second operation where I was setting a second GPIO based on the EPWM status (did that purely for testing), but I do need accurate knowledge of the EPWM pins for my algorithm. Is it possible to do? Need the forum's support in this matter. Thanks in advance.