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.

TM4C123 interrupt priorities

Hi,

I have Tiva c series TM4C123G LaunchPad Evaluation kit. I'm trying to set priority interrupts that may occur at the same time.Each has a different frequency.(PWM0=10kHz,TIMER=50 kHz).

 

ADCSequenceConfigure(ADC0_BASE, 0, ADC_TRIGGER_PWM0, 1);  //1=lower priority

 ADCSequenceConfigure(ADC1_BASE, 1, ADC_TRIGGER_TIMER,0); // 0=higher priority

 

IntPrioritySet (INT_ADC1SS1, 0);  //1=lower priority

IntPrioritySet (INT_ADC1SS1, 1); // 0=higher priority

Is this the same ?

 

How to enable / disable interrupts in the interrupt ?

 

What is the difference between these three functions ?

IntPrioritySet()

IntPriorityMaskSet()

IntPriorityGroupingSet()

Thanks for your advice.

  • Hello Pavel,

    The two ADC controllers have different Analog Front End. So configuring a priority would not be helpful. The second statement of IntPrioritySet for the two interrupts when occurring together, a higher priority for the interrupt which has a lower number assigned in the IntPrioritySet.

    IntPrioritySet allows to set different priority to each interrupt

    IntPriorityMaskSet allows interrupt of a certain priority level to be propagated while blocking the others

    Regards

    Amit