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.

How to Generate software interrupt in MSP430

Other Parts Discussed in Thread: MSP430F1610

Hi,

I am working with MSP430F1610 Controller and i want to  "Generate software interrupt in between the program."

Is there any method in MSP430 to Generate software interrupt .

 please Anyone help..me..

Thank You All..

  • Sunil Shet said:
    Is there any method in MSP430 to Generate software interrupt .

    Yes. It is called a "function call".

    The only reason why 'software interrupts' were introduced by the x86 was the fact that the loaded code didn't know where the current OS keeps its jump tables for the service functions.
    However, on MSP, all functions are linked together at linktime. The application always knows where which funciton is. No need for software interrupts at all.

    And if you indeed have some code that requires calling functions at runtime which aren't know (or named) at compiletime, then there are C function pointers.

    Software interrupts are only required if your code doesn't know where a function is nor where to get this information from.

    If this happens on an MSP, then you did something seriously wrong in your software concept.

  • Dear Jens-Michael Gross,

    thanks for the reply................

**Attention** This is a public forum