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.

TMS320F280049C: sw interrupt prioritization logic

Part Number: TMS320F280049C


Tool/software:

Hi experts,

I ask this for my customer.

I check this notes: C28x Interrupt Nesting, and also check the demo: interrupt_ex3_sw_prioritization

I have below question:

1. In my understanding, the hardware prioritization is fix and can't be modified, right? And every peripheral interrupt is assigned to the PIE channel and can't be modified?

2. How to realize the software prioritization to let INT13(timer2) prioritization higer than INT1.7(timer1)? Could you explain more? What's meaning of MG1_7? Is it already change the hardware interrupt prioritization?

BRs

Shuqing

  • Hi Shuqing,

    1. In my understanding, the hardware prioritization is fix and can't be modified, right? And every peripheral interrupt is assigned to the PIE channel and can't be modified?

    That is correct, the PIE table is hardcoded and the prioritization order of when an interrupt begins first cannot be changed. Software can be used to modify the order of which interrupts finish first.

    2. How to realize the software prioritization to let INT13(timer2) prioritization higer than INT1.7(timer1)? Could you explain more? What's meaning of MG1_7? Is it already change the hardware interrupt prioritization?

    This example uses the sw_prioritized_isr_levels.h file to configure the PIEIER registers for nesting. MG1_7 refers to the mask generated for INT1.7 (TIMER0 ISR) based on the configured Gx_yPL defines from the header file. There is a good explanation in file's the comments:

    Also, see my Interrupt Nesting FAQ about the different nesting scenarios and how to implement them in software. 

    (+) [FAQ] How do I implement Interrupt Nesting on a C2000 (C28x) device? - C2000 microcontrollers forum - C2000Tm︎ microcontrollers - TI E2E support forums

    Your case would be "Changing Priority" case 1 since you are trying to prioritize INT13 over INT1.7. Let me know if you have any additional questions. If not, please upvote this response.

    Best Regards,

    Delaney