There are so many ways to debounce a switch or bit so I was just wondering what other ways there are to debounce? If you're willing to share your debouncing technicque then post it here.
There are so many ways to debounce a switch or bit so I was just wondering what other ways there are to debounce? If you're willing to share your debouncing technicque then post it here.
Hi Humbleworker,
See this post by ErnieM about software debounce
http://www.picbasic.co.uk/forum/show...unce#post26715
hth
-Adam-
Ohm it's not just a good idea... it's the LAW !
Try this method, I already used in my projects and worked fine.
The only issue is that you will need to use a switch with 2 contacts.
http://www.elexp.com/t_bounc.htm
good luck
I always use the software method. Polling the pins in a loop or using a Timer interrupt. The timer interrupt will also provide the debouncing delay.
The main advantage of a timer interrupt is that you need ONLY 1 routine, running in background and you button states are available everywhere, when you need.
That's What Ernie suggested too![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks