Quote:
Originally Posted by Ether
You're forgetting about interrupts. If the switch is connected to an IO port which can be configured to generate an interrupt then there is no sample rate involved.
|
I considered interrupts, but even interrupts have a minimum latch time on most systems I've used, it may be on the order of microseconds, but it's there, and the point is, it was omitted, so we don't know if it's a fast interrupt or a slow poller, or a shift register that only gets clock in every 300ms, etc. The system must have some time component to it, which was my point. To assume it can behave instantaneously was erroneous, especially since no time component was specified. If you told me it took 100us for the interrupt to latch and take hold, then I'd say it's a negligible amount of time, but at least I'd have concrete evidence to work with.
EDIT: As also pointed out before, even interrupts cannot guarantee a clean signal without some decent debounce time on the signal, which still brings you back to a time component. Which we weren't given, and FIRST may not (yet) have.
Matt