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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/24/07 15:53
Read: times


 
#144933 - this is exactly what I am talking about
Responding to: ???'s previous message
You pull down the input weakly via the 10k series resistor (and the cap won't help, either), so it won't overcome the cca 500uA "medium" pullup (which starts to open when you start pulling down the input). So, once in one, you cannot pull it down externally. If you supply a zero from inside, it goes down, of course, and if in that moment you close the switch, it will remain low, and the capacitor most probably prevents it to get high again (from the brief moment of strong pullup) even if you write one to the port and then read it.

You just "guessed" exactly the most problematic combination of parts.

Matthew,

you are really not supposed to "debounce" the inputs using a RC circuit; rather, connect the contact DIRECTLY to the port pin (OK if you feel uneasy about this you might put a small series resistor, say 300 ohm at most); and then debounce IN SOFTWARE.

JW

PS. If you would follow my advice in http://www.8052.com/forum/read.phtml?id=144884 to the last letter (i.e. using a WIRE grounding the PIN of uPSD), you would most probably already understood what's going on... I know, it's hard to believe such a foolish advice...


List of 12 messages in thread
TopicAuthorDate
upsd3354D GPIO input question            01/01/70 00:00      
   Pardon?            01/01/70 00:00      
      Clarifiaction            01/01/70 00:00      
         unless ...            01/01/70 00:00      
            this is easy to check...            01/01/70 00:00      
         Sorry            01/01/70 00:00      
            Problem fixed.            01/01/70 00:00      
               this sounds like a pulldown problem or similar            01/01/70 00:00      
                  Thanks, but...            01/01/70 00:00      
                     this is exactly what I am talking about            01/01/70 00:00      
                        Thanks            01/01/70 00:00      
                           Welcome            01/01/70 00:00      

Back to Subject List