In my application I need to design a multi purpose digital input which can operate in 3 modesON/OFF detectionFrequency measurement andPulse CountingI can do the last 2 using HW Timers in Input Capture mode and configuring it for both edges. In the al...