Part Number: TMS320F28374S
Other Parts Discussed in Thread: C2000WARE
I am trying to trigger an interrupt off of a PWM. If I do a manual Hwi_post, I can see the GPIO toggle, but the EPWM module is not triggering an interrupt. I am using driver lib functions as follows:
SysCtl_enablePeripheral(SYSCTL_PERIPH_CLK_EPWM4); EPWM_setInterruptSource(EPWM4_BASE, EPWM_INT_TBCTR_ZERO); EPWM_enableInterrupt(EPWM4_BASE); Hwi_plug(EPWM4_PIE_INTERRUPT_NUMBER, (Hwi_PlugFuncPtr)toggleGPIO1); Hwi_enablePIEIER(EPWM4_INTERRUPT_GROUP, 1); Hwi_enableIER(4); EPWM_setCounterCompareValue(EPWM4_BASE, EPWM_COUNTER_COMPARE_A, comparatorCount);EPWM_setInterruptSource(EPWM4_BASE, EPWM_INT_TBCTR_ZERO);
Please let me know what I am missing. Thank you.