Then check the input inside the ISR and toggle the output only if the input level is low, otherwise don't do something. Or check the input inside the main and start or stop the timer when hardware toggling is used.
↧