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: C28x nested interrupt

Guru 10900 points
Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Hi,

I think C2000 supports nested interrupts.

C28x Interrupt Nesting v1.0.0

https://software-dl.ti.com/C2000/docs/c28x_interrupt_nesting/html/index.html

I've heard that the MSP430 doesn't recommend nested interrupts, is C2000 particularly problematic?

Also, please let me know if you have sample code for nested interrupts.

 

(Supplement)

What I want to achieve is to execute vector / PFC control multiple times within one PWM cycle with a PWM ADC interrupt.

I also want to perform relatively low-speed control such as position detection with timer interrupts.

  • Hi,

    Thanks for your question!

    To answer your first question, C2000 can definitely support software-prioritized/nested interrupts. It is a bit more involved than the standard interrupt prioritization, but if you follow the link you provided above (also linked here), you should be able to get them up in running!

    To answer the second question, we actually do have interrupt nesting (software prioritization) code in our C2000Ware software package! It will be located in the following folder (make sure to have the latest version of C2000Ware and CCS installed for best support):

    C2000Ware_VERSION#\driverlib\f28004x\examples\interrupt\interrupt_ex2_sw_prioritization.c

    Finally, regarding the end-application, I would recommend extra care be taken to ensure that the ADC interrupts do not repeatedly interrupt the vector control interrupt, by (if the application allows it) disabling the ADC interrupt till the end of the vector control interrupt. The steps on how to do this is also explained in the previously mentioned link.

    Regards,

    Vince