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/07 15:39
Read: times


 
#147722 - Lousy microseconds
Responding to: ???'s previous message
As a radio amateur I am used to write programs that run on CPU's with quite low clock frequency. This is to avoid EMI.

Having complex indexed loads while in interrupt does not only cost the time. It will also burn some bytes from Your stack - certainly more than those three needed in this case.

Also - and this reason is not too apparent. The interrupt code should be made as simple as possible and having some sort of conversions in there will add to the complexity. Debugging interrupts is not an easy task - not for the beginner at least. Debugging complex interrupts is really hard even for the experienced one.

I also metioned the flexibility. In case You want to create special effects like blinking or a cursor it is a LOT easier to do when the segments can be switched on/off individually outside the interrupt.

List of 25 messages in thread
TopicAuthorDate
how to use buffer or stack to store digits            01/01/70 00:00      
   many question            01/01/70 00:00      
   Stack            01/01/70 00:00      
   use register as a pointer to a table            01/01/70 00:00      
      How many segments?            01/01/70 00:00      
         you seldom need to use both ...            01/01/70 00:00      
            Not as DP, but...            01/01/70 00:00      
               sorry ... double post            01/01/70 00:00      
               Why would you want those?            01/01/70 00:00      
                  example            01/01/70 00:00      
      Timer interrupt and segments in RAM            01/01/70 00:00      
         many words about two lousy microseconds            01/01/70 00:00      
            Lousy microseconds            01/01/70 00:00      
               Wholehardely agree            01/01/70 00:00      
                  Burning stack bytes            01/01/70 00:00      
                     you need to read "the bible"            01/01/70 00:00      
                        Not entirely true            01/01/70 00:00      
                     Table lookup in 'C'            01/01/70 00:00      
                        Why tables can be costly on C            01/01/70 00:00      
                           Well, If you abuse the tools...            01/01/70 00:00      
                           if we consider this off topic, you may be correct            01/01/70 00:00      
                              Not even then?            01/01/70 00:00      
                                 Another thread, please            01/01/70 00:00      
                                    And the new thread is...            01/01/70 00:00      
   Example on driving 7-segment displays            01/01/70 00:00      

Back to Subject List