Hello, I am new to the AM263x, but I have been using (what appears to be) the same EPWM peripheral in the C2000 product line. First is there an example to do this? I could not find one.
I am trying to generate an interrupt based on the EPWM SOCA. I have the EPWM0 running, and I see the ETFLG register show an pending INT and SOCA, so I think it is the binding to the vector table. I followed some similar code from a different example to insert the interrupt into the vector table as follows:
HwiP_Params_init(&pwmHwiPrms); //Just zeros this structure
pwmHwiPrms.intNum = CSLR_R5FSS0_CORE0_CONTROLSS_INTRXBAR0_OUT_0; //146
pwmHwiPrms.callback = InterruptFunction;
pwmHwiPrms.args = (void *)CONFIG_EPWM0_BASE_ADDR;
HwiP_construct(&pwmHwiObject, &pwmHwiPrms);
I expect there is more to do to complete the vector table initialization. Any suggestions would be appreciated.
Thanks,
Jim