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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/09/08 22:20
Read: times


 
#155640 - the PISO register is loaded only once ...
Responding to: ???'s previous message
He's got a 24-bit array of switches fed to a 24-bit PISO register. He samples the switch once to load the PISO shift register. Then, he clocks the shift register 24 times to present each sampled switch state to the MCU. Debouncing requires that one "see" a transistion, wait for it to settle out, and then, after some time, continue to "see" the same state. Unless he uses a very slow process (possible, but not verified so far), and repeats the sampling sequence multiple times he can easily capture a "wrong" state during the bounce (typically 20 ms).

Back when I built front panels quite routinely I simply used a 4K7 series resistor paired with a 10 nf cap to Gnd into a Schmidt-trigger buffer (74C244, unlike LS, HC/HCT, etc, is Schmidt-triggered.) which swallowed the bounce pretty well, but then, I did use a signal to tell the MCU that I had changed the switch settings. Of course, I didn't use a shift register, which, in itself, poses a number of problems because one has to know when to load the shift register, i.e. when the switches are stabile.

Clearly the O/P has the opinion that he's subject to considerable noise and EM interference, else he wouldn't be worried about suppressing it. Once he knows how much energy there is in such unwanted rubbish, he can develop a filter that relies on his PISO's input capacitance by selecting a resistor that swallows the random bounce transitions on his switches, but only if the net impedance is considerably lower than that of the ambient noise he wishes to suppress.

He is where the problem is, so he'll have to figure out whether that's feasible. If possible, it's quite elegant, as it uses what's there instead of adding more "stuff." A half-meter-long wire on each switch is not that much of an antenna for this sort of signal.

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