Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi,
I'd like to use interrupt routine to monitor an input signal, for example:
if (input) led =1; else led = 0;I try to use both rising edge and falling edge trigger to flag a high or low (assuming input is low to begin with):
t1.rise(&trigger1); t1.fall(&trigger2); void trigger1() { input = 1; } void trigger2() { input = 0; }Somehow it's not very reliable, probably due to bouncing. Is there a better level sensitive interrupt solution?