Olin Lathrop wrote: >David P Harris wrote: > > >>Instead of having the bits of a counter in a byte, you spread them over >>several bytes. The first byte contains the most insignificant bit of a >>number of counters, the next byte the next significant bits of the >>counters. Now you can count all the counters at once using logic >>operations. It is useful where you only need 2-3 bits for a counter. >>So, in this application, you can have 8 2-bit counters in two bytes. >> >> > >Which of course has nothing directly to do with debouncing a switch. This >is a technique for working on several counters in parallel with fewer >instruction than it would take to handle each one separately. But it's >still using counters, which is how the debouncing is done. Saying that >vertical counters is a special debouncing technique is misleading at best. > > Gee, did I say that? I don't think so, I was just trying to explain vertical counters :-) I agree, vertical counters is a general technique that can be applied to debouncing. David -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist