Replace PWM input capture to normal input capture

Because PWM input capture need two channel, we need to use another way
to calculate high voltage level time.