Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Became flame-war

???
02/06/05 17:54
Read: times


 
#86658 - Ignoring Interrupts
I am reading a book called Patterns for Time triggered Embedded Systems - Building Reliable Applications with the 8051 family of micro-controllers' by Michael J. Pont. In the first chapter he attempts to justify time triggered systems as opposed to event (interrupt) driven ones as follows:

'To see why the simultaneous occurence of two interrupts causes problems, consider what happens in the 8051 architecture in these circumstances. Like many micro-controllers, the original 8051 architecture supports two different interrupt priority levels: low and high. If two interrupts (we will call them Interrupt1 and Interrupt2) occur in rapid succession, the system will behave as follows:

A. If Interrupt1 is a low priority interrupt and Interrupt2 is a high priority interrupt: The interrupt service routine (ISR) invoked by a low priority interrupt can be interrupted by a high priority interrupt. In this case the low priority ISR will be paused, to allow the high priority ISR to be executed, after which the operation of the low priority ISR will be completed. In most cases, the system will operate correctly (provided that the two ISRs do not interfere with one another).

B. If Interrupt1 is a low priority interrupt and Interrupt2 is also a low priority interrupt: The ISR invoked by a low priority interrupt cannot be interrupted by another low priority interrupt. As a result, the response to the second interrupt will be at the very least delayed; under some circumstances it will be ignored altogether.

C. If Interrupt1 is a high priority interrupt and Interrupt2 is a low priority interrupt: The ISR invoked by the high priority interrupt cannot be interrupted by a low priority interrupt. As a result, the response to the second interrupt will be at the very least delayed; under some circumstances it will be ignored altogether.

D. If Interrupt1 is a high priority interrupt and Interrupt2 is also a high priority interrupt: The ISR invoked by a high priority interrupt cannot be interrupted by another high priority interrupt. As a result, the response to the second interrupt will be at the very least delayed; under some circumstances it will be ignored altogether.


In three cases he claims an interrupt can be ignored but nowhere does he say exactly how this could occur. If you are silly enough to use a level triggered interrupt on a short duration signal then there is the possibility to miss it if it occurs while the code is in another ISR, but apart from that I know of no mechanism that would lead to the ignoring of an interrupt.

Comments?


List of 52 messages in thread
TopicAuthorDate
Ignoring Interrupts            01/01/70 00:00      
   I think you got it....            01/01/70 00:00      
      true, not to the point and about books            01/01/70 00:00      
   Yes but no but..            01/01/70 00:00      
      Being Dazzled....            01/01/70 00:00      
      Book Sales            01/01/70 00:00      
         Ignoring interrupts            01/01/70 00:00      
            Ignoring Interrupts            01/01/70 00:00      
               Level trig interrupts            01/01/70 00:00      
                  re: Level trig interrupts            01/01/70 00:00      
                  High Reliability Systems.....            01/01/70 00:00      
                  Cogent Explanation            01/01/70 00:00      
                     poor design and            01/01/70 00:00      
                     The Obvious one            01/01/70 00:00      
                        what's in the name            01/01/70 00:00      
                        Another Design Issue            01/01/70 00:00      
                           a maintenance nightmare            01/01/70 00:00      
                              Maintenance Heaven            01/01/70 00:00      
                                 reality            01/01/70 00:00      
                                    reality            01/01/70 00:00      
                                       huh?            01/01/70 00:00      
                                          Responding to Interrupts            01/01/70 00:00      
                                             nope            01/01/70 00:00      
                                                Yup            01/01/70 00:00      
                                                   theory and practice            01/01/70 00:00      
                                                   read trhe bible            01/01/70 00:00      
                                                      Read carefully            01/01/70 00:00      
                                                         now you lose me            01/01/70 00:00      
                                                            Back on Track            01/01/70 00:00      
                                                               of course            01/01/70 00:00      
                                                                  Absolutely.            01/01/70 00:00      
                                 nope            01/01/70 00:00      
                                    do not get me wrong            01/01/70 00:00      
                                       Real Time vs Fast            01/01/70 00:00      
                                          not very fast            01/01/70 00:00      
                                             Quite Fast Actually            01/01/70 00:00      
                                                why not call a spade a spade            01/01/70 00:00      
                                                   coming to think of it            01/01/70 00:00      
                                                   Why say Spade when you mean Shovel            01/01/70 00:00      
                                    Timing a Task            01/01/70 00:00      
                                       there is cause you WILL miss one            01/01/70 00:00      
                                          Politeness            01/01/70 00:00      
                                             what is impolite about a fact            01/01/70 00:00      
                                                Offensive            01/01/70 00:00      
                                                   not you, the word            01/01/70 00:00      
                        re: the obvious one            01/01/70 00:00      
                        It seemed to be a trend            01/01/70 00:00      
                           seem to            01/01/70 00:00      
               re:            01/01/70 00:00      
   Pity..            01/01/70 00:00      
      that would indicate doubt            01/01/70 00:00      
         Peer Review            01/01/70 00:00      

Back to Subject List