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.

Software interrupts and IRQ interrupts

Other Parts Discussed in Thread: RM48L952

Dear TI,

I am using TI Hercules RM48L952 microcontroller. I intend to use IRQ and Software interrupts. I want to enable nesting of IRQ interrupt (high priority) into software interrupt (low priority) and nesting of software interrupt (high priority) into other software interrupt (low priority).

My questions :

1.  Software interrupt - what do i need in order to define and enable nesting of IRQ ?

    #pragma SWI_ALIAS (MySoftwareInterruptFunc,21)

  

   void   MySoftwareInterruptFunc(void)

   {

     _enable_IRQ;

   }

2. How to enable nesting of (high priority) software interrupt into other software interrupt (low priority) ?

Best Regards,

Yona

  

    

  • Here is an application report on using nested interrupts on Hercules devices: SPNA219. Software Interrupts (SWI) are more like function calls in that they don't come unexpectedly. However, if you nest SWI calls, you must save the SWI LR and SPSR before executing the SWI. This application note on interrupt handling may also help: SPNA218