Dear All,
I need a high frequency clock in order to measure the time between a couple of events.
In the RTC HAL there are functions that allow to retrieve the counter value and based on the used prescaler the time elapsed can be calculated.
But I need a clock frequency higher than the 32kHz and I am also out of RTC instances because I am using low power PWM, SoftDevice and a RTC instance to keep track of time to my system.
So I thought of using the TIMER HAL available, but I do not see how I can get the value of the TIMER in timer mode.
What I need to do is to take the TIMER value whenever an interrupt is detected on a pin and then from those values calculate the frequency of the incoming signal.
Could you perhaps assist me with that?