3 ms·
You're right, I should have chosen better words. I merely meant setting a flag bit from 0 to 1, later to be picked up by your loop. Since actual semaphore was
by peteforde 2y ago
You're right, I should have chosen better words.
I merely meant setting a flag bit from 0 to 1, later to be picked up by your loop. Since actual semaphore was communicated with flags...
I have yet to see the perfect software debounce algorithm. I've come to believe that it is a Sisyphean task. Meanwhile, Schottky diodes are extremely well-suited to the task.
You might consider 100 lines worth of complexity to make a switch work to be free, but I won't lose any sleep believing otherwise.
- kragen 2y agoMost of software is Sisyphean. 100 lines of code doesn't add any cost to your BOM, just NRE, and it's easier to simulate.