I have a unit which has to interface to flow sensors which generate a pulse rate based upon flow rate.
My intent is to use the edge count mode of the timer to count the pulses. The idea is to let the counters accumulate the pulses and every second
dump the contents of the counters. If this is the correct way to handle the pulse interface are there examples which are similar to this function.
My questions are as follows.
What is the correct way to dump and clear the timer without lossing counts?
Can the prescale function provide any increase in timer capacity, ie increase 16 bit timer to 24 bit resolution? If yes then how to do this?
Thanks
Glenn Edgar