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

Back to Subject List

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


 
#102177 - debounce switch
Responding to: ???'s previous message
where do you do debounce the key?
How often is your ISR executed during one keypress?

How long does it take to transmit "printf ("Channel '%d' voltage is %ldmV\n",i, voltage);"?


I am no expert, but I think due to the fact that there is no debouncing, your ISR is executed a number of times when the key is pressed only once.

Your counter probably increments beyond 5, and before the end of the transmission of your first string.

If I am wrong then I leave it up to the pro's to correct me...

rgds
Patrick

List of 7 messages in thread
TopicAuthorDate
How to handle interrupts in this code            01/01/70 00:00      
   what about i?            01/01/70 00:00      
      handling interrupts.            01/01/70 00:00      
         the dangers of 'i'            01/01/70 00:00      
         debounce switch            01/01/70 00:00      
            errare humanum...            01/01/70 00:00      
               Using interrupts with switches            01/01/70 00:00      

Back to Subject List