Introduction
Input capture mode helps you measure the exact time when an event happens on a pin, like when a button is pressed.
You want to measure how long a button is pressed.
You need to record the time of a signal change, like a sensor output.
You want to measure the speed of a rotating wheel using a sensor.
You want to detect the exact moment a signal goes high or low.