Input capture on channel 0 with IRQ and periode calculation