Demo program demonstrates function of the Component Capture Demo uses timer in capture mode to detect falling or rising edge. Then event is called which reads actual value in the timer and incremenents variable Capture.