I need repetitive Timer and Edge Counter in my application. There is is a single Timer Peripheral that can be used either as a Timer or Counter. As well, further in counter mode, it is required to count both edges pe second. SO, how can all these be achieved ?