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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/28/07 10:41
Modified:
  08/28/07 10:43

Read: times


 
#143693 - severe errors
Responding to: ???'s previous message
Without trying to understand what your program attempts to do, I noticed a couple of errors which are completely fatal so that this simply cannot work at all:

  1. you must pop registers in the opposite order than you have pushed them
  2. you must pop the same amount of data than you have pushed
  3. you must return from an ISR using RETI rather than RET
  4. it is a poor programming practice to have multiple exits from an ISR (can lead easily to errors)
  5. there is no reason to modify a variable if you then restore it from the stack (detik and r7 in the timer isr)

JW

List of 12 messages in thread
TopicAuthorDate
Help ME!!!            01/01/70 00:00      
   TIMER 2 IN CAPTURE MODE            01/01/70 00:00      
   Elaborate            01/01/70 00:00      
      help me            01/01/70 00:00      
         toggle the timer            01/01/70 00:00      
            count the timing interval            01/01/70 00:00      
               just formatted your code            01/01/70 00:00      
               severe errors            01/01/70 00:00      
         I think it's too easy!!!            01/01/70 00:00      
            only if interval is >>1ms !!            01/01/70 00:00      
               no it's not necessary!!!            01/01/70 00:00      
                  sorry, You are right            01/01/70 00:00      

Back to Subject List