This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28377D: TMS320F28377D

Part Number: TMS320F28377D
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I modified adc_ex2_soc_epwm example by initializing all peripherals in syscfg file. I noticed the following:

I have to add this line into main.c , if not, interrupt routine is not enabled. Why?

//
// Enable ADC interrupt, do not work if commented
//
Interrupt_register(INT_myADC0_1, &INT_myADC0_1_ISR);
Interrupt_enable(INT_myADC0_1);
/* even though in Board_init();
void INTERRUPT_init(){

// Interrupt Setings for INT_myADC0_1
Interrupt_register(INT_myADC0_1, &INT_myADC0_1_ISR);
Interrupt_enable(INT_myADC0_1);
}
*/

I need to use this statement, or again interrupt does not work

EPWM_setADCTriggerEventPrescale(EPWM1_BASE, EPWM_SOC_A, 1);

// is there a way to set it up from syscfg?

thanks vadim