But that counter is advanced by timer0 ISR
Quote from: TCSC47 on Oct 04, 2012, 02:37 pm Is there any reason why the standard two Nand gate flip flop with a change over switch can not be used for switch debounce? This is the circuit I have almost always used for such applications.That type of circuit was discussed in the page I linked to earlier in the thread, which also mentioned the drawback that a double-throw switch is needed. But that aside, it works fine of course.
Is there any reason why the standard two Nand gate flip flop with a change over switch can not be used for switch debounce? This is the circuit I have almost always used for such applications.
QuoteBut that counter is advanced by timer0 ISRThat is not correct. The counter (TMR0) is advanced by hardware.Based on wiring.c, delay utilizes micros(), which tests TMR0 interrupt flag. So from that perspective, using delay() within isr is OK.
micros() interestingly disables global interrupt upon entry but never re-enable it upon exit.
You have started an interesting string Ironbot.
QuoteYou have started an interesting string Ironbot.Definitely
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16