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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/11/08 13:52
Read: times


 
#155714 - IF you choose the right rate ... and IF you check
Responding to: ???'s previous message
There's nothing unreasonable about the approach you've taken, nor is there any reason you can't find a compromise between the rate at which you sample the switches and the characteristics of the momentary switches you've chosen. A quick look with an oscilloscope will tell you how long the switch bounces and it will also tell you about the ambient noise's effect on signal level. Once you know how long the bounce is and how much energy there is in the noise, you can choose capacitors and resistors to mitigate those effects.

Most modern momentary switches are built to minimize the bounce. They still bounce, and that will affect the current flow through them, but, generally speaking, their construction minimizes the time that they vacillate between fully open and fully closed. This affects primarily the open sequence but it does minimize the bounce on close. As a result, you can help yourself by using relatively small cap's and large resistance. If your pullup + series resistor lie in the range between 3K and 10K ohms, the rise and fall time of the inputs to the PISO register should still be short enough that the CMOS parts will be satisfied. It's only if the ambient noise has so much energy that it causes them to reach Vih occasionally despite the switch closure to GND, that you run the risk of misreading a bit.

RE


List of 42 messages in thread
TopicAuthorDate
Input Protection            01/01/70 00:00      
   I use a series resistor            01/01/70 00:00      
      I like clamps ...            01/01/70 00:00      
         I would not use a \'S\' chip            01/01/70 00:00      
            It's just an array of schottky diodes, Erik            01/01/70 00:00      
               Resistors and cap            01/01/70 00:00      
                  why the slowpoke            01/01/70 00:00      
                     the technology will still work in this case            01/01/70 00:00      
                        stupid boss            01/01/70 00:00      
                           ... or stupid Erik, maybe?            01/01/70 00:00      
                              I did NOT say "stupid engineer"            01/01/70 00:00      
                                 now, don't get me wrong here ...            01/01/70 00:00      
                                    a typical result of a stupid boss            01/01/70 00:00      
               well the 74S had me since ....            01/01/70 00:00      
                  Yes, it indicates the process technology            01/01/70 00:00      
                     HEF4021            01/01/70 00:00      
                        Anyhow the major setback using 40xx            01/01/70 00:00      
                           This is entirely wrong!            01/01/70 00:00      
                        No, not better, but different            01/01/70 00:00      
      Adding another cap            01/01/70 00:00      
         I do not think so, but it will wear the switch            01/01/70 00:00      
         Immunity against what?            01/01/70 00:00      
   No, just a business decision ...            01/01/70 00:00      
      Uhm...            01/01/70 00:00      
         all 40xx chips are based on the same technology ..            01/01/70 00:00      
         if the RC before the PISO doesn't do it ...            01/01/70 00:00      
            Values            01/01/70 00:00      
               I do not know why ...            01/01/70 00:00      
                  Values..            01/01/70 00:00      
                     like this            01/01/70 00:00      
                     Caps and RF immunity            01/01/70 00:00      
                        true - and not            01/01/70 00:00      
                           Expensive capacitors?            01/01/70 00:00      
            BALDERDASH            01/01/70 00:00      
               the PISO register is loaded only once ...            01/01/70 00:00      
                  I hav no desire to look up 40xx chips, but ..            01/01/70 00:00      
                     If there's nothing pressing ...            01/01/70 00:00      
                        Setup            01/01/70 00:00      
                           overdoing it            01/01/70 00:00      
                           That just might be adeuqate ...            01/01/70 00:00      
                              Switches            01/01/70 00:00      
                                 IF you choose the right rate ... and IF you check            01/01/70 00:00      

Back to Subject List