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.

TMS320F280041C: MotorControl SDK Timer0 interrupt

Part Number: TMS320F280041C

Tool/software:

Greetings! I want to use Timer0(or Timer1 or Timer2) with MotorControl SDK. The problem is Timer0 interrupt flag is in the same group as ADC. So in the code the ADC interrupt use 

HAL_ackADCInt(halHandle, ADC_INT_NUMBER1);

which on my opinion will clear all the flags in group 1. Timer0 is in group 1. 

So what should I do in order to use both adc and timer0 interrupts?

Or should I use the timers without interrupts? Just checking their overflow flags?

Thanks!

  • Hi Pavlin,

    Can you ctrl + click into the HAL_ackADCInt() function and show what the function is doing? If it is just acknowledging the PIE group, that shouldn't be an issue. That would simply enable future interrupts from that group (whether they be Timer0 or ADC interrupts) to come in after the ISR is complete.

    Best Regards,

    Delaney