I have been through a very similar problem lately. Several friends helped me, and Marc Heuler was specially helpful. You can contact him or me off the list, if you wish. Pedro. At 11:45 27/01/98 -0600, you wrote: >Hi PIC gurus, > >I have an application in which I need to determine the frequency of each >of the 8 lines on PORTB of a 1684. Right now, my code simply counts for 3 >signal transitions, and thus determines the period. My problem is that >the signal transitions are noisy, especially at low frequencies. Does >anyone have either (1) a good software algorithm for debouncing the signal >transitions, or (2) a good, simple, HW solution (the footprint must be >very small). > >TIA, >Craig > >