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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/02/05 17:07
Read: times


 
#104599 - Interrupts
Responding to: ???'s previous message
My 8-bit RTOS experience is this, ...

An interrupt will call an ISR just like in OS-less case and this ISR belong to you, the author of the project. You can do whatever you want in the ISR, however the interrupt may (should?) be of interest to the system as a whole. If the interrupt is an event that a dormant task is waiting on, then a method is typically available so that the ISR can notify the waiting task upon completion of the ISR. It's typically a couple of lines of code such that the RTI at the end of the ISR causes the context switch to the dormant task.

Running Task -> IRQ -> Your ISR -> 
   Common Exit Stub -> Scheduler swaps context pointer -> 
      RTI -> Dormant task runs


You only have to invoke the RTOS if you want to, but you really should if you are properly designing the system using the RTOS.

So if uSec timing is critical in your ISR, you can buffer incoming data (for example) then signal a semaphore that tells the task waiting on this data that there is data. The task that was waiting on the data may have been in a wait-on-queue-empty condition and now becomes runnable because the queue is no longer empty. If that task is now the highest priority runnable task, it will run. The buffering and queue are likely provided with the RTOS, but you can incorporate your own if you like.

It's really phenomenally cool stuff, but requires a different mindset than non-RTOS design. I can post more about this if you like...

GB


List of 152 messages in thread
TopicAuthorDate
When to RTOS?            01/01/70 00:00      
   Search            01/01/70 00:00      
   When it make the project easier.            01/01/70 00:00      
      when timing is of no concern and it give            01/01/70 00:00      
         Not joining the debate            01/01/70 00:00      
            Hard and Soft Real Time            01/01/70 00:00      
               Strange terminology            01/01/70 00:00      
                  The Essence            01/01/70 00:00      
                     excellent            01/01/70 00:00      
                        Not only but also            01/01/70 00:00      
                           so have I, but, to the best of my recoll            01/01/70 00:00      
                              Agreed and ...            01/01/70 00:00      
      Yes and no            01/01/70 00:00      
         Why            01/01/70 00:00      
   Background Info            01/01/70 00:00      
      Real time reality            01/01/70 00:00      
         I totally undersatnd what the thingies w            01/01/70 00:00      
            I'm afraid not.            01/01/70 00:00      
               din't be catty            01/01/70 00:00      
                  Eyes and brain connected?            01/01/70 00:00      
                     I totally, absolutely disagree            01/01/70 00:00      
                        I expected nothing less            01/01/70 00:00      
                           you will see that I state "can mean"            01/01/70 00:00      
                              I see that.            01/01/70 00:00      
                                 agreed, you do the same            01/01/70 00:00      
                                    Not so fast            01/01/70 00:00      
                                       I try not to be reprtitious, they have a            01/01/70 00:00      
                                          Head in the sand            01/01/70 00:00      
                                             what is facts, what is words            01/01/70 00:00      
                                                Calm down            01/01/70 00:00      
                                                   I stated 'real time' can mean 'd            01/01/70 00:00      
                                                      Oh dear            01/01/70 00:00      
                                                         The end            01/01/70 00:00      
                                                            Not so fast            01/01/70 00:00      
                                                               real time means            01/01/70 00:00      
                                                                  OK            01/01/70 00:00      
                                                                  Impossible            01/01/70 00:00      
                                                                     as it is a "a poor choice for what it de            01/01/70 00:00      
                                                                        Digging deeper...            01/01/70 00:00      
                                                                           use something that is "a poor choice for            01/01/70 00:00      
                                                                              and deeper...            01/01/70 00:00      
                                                                                 "real enough" as some litterature states            01/01/70 00:00      
                                                                                    Excellent analogy            01/01/70 00:00      
                                                                                       you got that backwards            01/01/70 00:00      
                                                                                          Enough Already            01/01/70 00:00      
                                                                                          Whatever next?            01/01/70 00:00      
                                                                                             I do so, because it is correct al            01/01/70 00:00      
                                                                                                How Many Definitions            01/01/70 00:00      
                                                                                                   RTOS            01/01/70 00:00      
                                                                                                      Hard and Soft            01/01/70 00:00      
                                                                                                         how wonderful            01/01/70 00:00      
                                                                                                            The name of Crap            01/01/70 00:00      
                                                                                                               do not tell me that it is not possible,            01/01/70 00:00      
                                                                                                                  Abuse            01/01/70 00:00      
                                                                                                            Accept it            01/01/70 00:00      
                                                                                                               translation            01/01/70 00:00      
                                                                                                                  Flog that horse            01/01/70 00:00      
                                                                                                                     but you are evidently willing to follow            01/01/70 00:00      
                                                                                                                        But who?            01/01/70 00:00      
                                                                                                                           I do not know the persons name, but I di            01/01/70 00:00      
                                                                                                      Real time systems            01/01/70 00:00      
                                                                                                         Necessary but not Sufficient            01/01/70 00:00      
                                                                                                            Clearly unclear            01/01/70 00:00      
                                                                                                A minority of one            01/01/70 00:00      
                                                                                                   Horses for Courses            01/01/70 00:00      
                                                                                                      It is really about Engineering            01/01/70 00:00      
                                                                           Real Time            01/01/70 00:00      
                                                                              Clarification?            01/01/70 00:00      
                                                                              Exactly            01/01/70 00:00      
                                                                     'now' is not achievable            01/01/70 00:00      
                                                                        "now"            01/01/70 00:00      
                              A definition of RTOS            01/01/70 00:00      
      By the way...            01/01/70 00:00      
         RTOS Usage            01/01/70 00:00      
   Actually,            01/01/70 00:00      
      the ONE reason not to reject using a RTO            01/01/70 00:00      
   Pick the uC first            01/01/70 00:00      
      I doubt any URTOS, amateur or peofession            01/01/70 00:00      
         Final thoughts?            01/01/70 00:00      
            have you considered multiple processors            01/01/70 00:00      
               USB Master            01/01/70 00:00      
                  The software is for the CY7C67300. Basi            01/01/70 00:00      
                     Erik, aabout the dev kit            01/01/70 00:00      
                        I know the Cypress thingy as EZ-HOST DVK            01/01/70 00:00      
                           CY3663            01/01/70 00:00      
                              Oh, it is, but when you include just the            01/01/70 00:00      
                  USB master products            01/01/70 00:00      
                     TUSB are FX2 clones            01/01/70 00:00      
                        TUSB are _not_ EZ-USB clones!            01/01/70 00:00      
               Multiple processors? Hmmmm.            01/01/70 00:00      
                  Exactly            01/01/70 00:00      
               Good Advice            01/01/70 00:00      
            It depends            01/01/70 00:00      
            Thanks, and a tip            01/01/70 00:00      
   Keil RTOS RTX51            01/01/70 00:00      
      That's tight            01/01/70 00:00      
         That's tight            01/01/70 00:00      
         not which but when            01/01/70 00:00      
            >19 on a '51            01/01/70 00:00      
   1 example worth 1E3 words            01/01/70 00:00      
      It is right in front of you            01/01/70 00:00      
         I meant on '51            01/01/70 00:00      
            What is "sucessfully" ?.            01/01/70 00:00      
            Kadak's AMX 68000 RTOS            01/01/70 00:00      
               NO multitasking on current PalmOS            01/01/70 00:00      
                  System, not application multitasking            01/01/70 00:00      
                  Palm's lack of threads            01/01/70 00:00      
                     conclusion?            01/01/70 00:00      
                        Some disagreement            01/01/70 00:00      
                           Lost with RTOS            01/01/70 00:00      
                              Developers coming from a PC environment            01/01/70 00:00      
                        But....            01/01/70 00:00      
                           No rules            01/01/70 00:00      
                              the example            01/01/70 00:00      
            Not So fast            01/01/70 00:00      
      how about this            01/01/70 00:00      
         Multi-processing            01/01/70 00:00      
   sometimes... :)            01/01/70 00:00      
      where's the success story            01/01/70 00:00      
         Enemy of RTOS            01/01/70 00:00      
            stack in internal XRAM            01/01/70 00:00      
            RTOS and 8051 stack            01/01/70 00:00      
               Saack Size            01/01/70 00:00      
         success story            01/01/70 00:00      
            success story            01/01/70 00:00      
            What type of product.            01/01/70 00:00      
               type of product            01/01/70 00:00      
      Interrupts            01/01/70 00:00      
         Interrupts            01/01/70 00:00      
            what else is there?            01/01/70 00:00      
         Interrupts            01/01/70 00:00      
            with one exception            01/01/70 00:00      
               Interrupt            01/01/70 00:00      
                  I have no problem with the above            01/01/70 00:00      
                  Exactly            01/01/70 00:00      
                     could you give the maximum number of cyc            01/01/70 00:00      
                        Number of cycles            01/01/70 00:00      
   Interrupt latencies            01/01/70 00:00      
      Interrupt latencies            01/01/70 00:00      
         Interrupt latencies            01/01/70 00:00      
            who gives a hoot            01/01/70 00:00      
               interrupt/ISR            01/01/70 00:00      
                  What is the diffrence between interrupt            01/01/70 00:00      
                     misunderstanding            01/01/70 00:00      
               who gives a hoot            01/01/70 00:00      
                  One Thing at a Time            01/01/70 00:00      
                     Since this thread is about multiprocessi            01/01/70 00:00      
                        Multi-processing            01/01/70 00:00      
                           how about 51 of them            01/01/70 00:00      
                           No to Market But...            01/01/70 00:00      
                              How long?            01/01/70 00:00      
                                 ??            01/01/70 00:00      

Back to Subject List