AnsweredAssumed Answered

Question about interrupt

Question asked by NaRkOo on Apr 10, 2013
Latest reply on Apr 10, 2013 by NaRkOo
Hi all,
I have a specific needs for a project.
In this project I use a STM8AL3L66 but my question is a general question about the interrupt in the STM8 family.

Is that an interrupt can be interrupted by the same interrupt (itself) ?
I know (according to the datasheet) that an interrupt can interrupt an other interrupt (in nested mode) :


But I wish to know if this kind of behavior is possible :


Associates code :

         if(state == a) longTask();
         else shortTask();

I don't know if my question is obvious, if it does not, let me know and I'll try to explain better.

P.S : Sorry for my english, this is not my mother language.