I have one clarification. i do not understand when you configure a channel in ECT as input capture mode then the timer channel registers say TC0 does not register the number of pulses from the start but insted reads the TCNT value. if the channel register can register the pulses then simply after some ms i can count the pulses and get the frequency. but i think it is not the case with s12x. Could somebody please let me know how to measure the frequency of the pulses. Please also let me know if my understanding is wrong.
thanks in advance,