I work on an inverter connected to the network or grid. In my study I use F28377S LaunchPad, I read grid current voltage from adc and I use this current or voltage in epwm comapre register to generate gate signal for inverter IGBTs. So which interrupt rutine should I use?Epwm interrup-Cpu interrupt etc..?