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

Back to Subject List

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


 
#117914 - Not clearing IE0
Responding to: ???'s previous message
IE0 is set on the falling edge of your input, and is cleared upon entry to the ISR. However, since you spend so much time in the ISR, IE0 is set again by each of the falling edges that occurs during your ISR processing, so when you RETI the ISR is immediately reentered.

You can fix this by clearing IE0 just before RETI, but I recommend that you reconsider the overall design, and don't block in the ISR for the entire IR reception.


List of 11 messages in thread
TopicAuthorDate
Receiving IR remote control code            01/01/70 00:00      
   What I would do            01/01/70 00:00      
      not the protocol            01/01/70 00:00      
   Not clearing IE0            01/01/70 00:00      
      IE0            01/01/70 00:00      
         IE0 does not need EX0 enabled            01/01/70 00:00      
            band-aids            01/01/70 00:00      
               timer in capture mode            01/01/70 00:00      
                  "Long" pulses?            01/01/70 00:00      
                     never use before            01/01/70 00:00      
            how to prevent IE0 set            01/01/70 00:00      

Back to Subject List