Tool/software:
I wanted to ask if there is an easy way to connect the comparator with a timer so that whenever there is a rising edge on comparator's output, a capture event on a timer is triggered and saves the timestamp of the comparator's event.
For instance, the first rising edge occurs and it triggers a capture event that stores the counter's counter value to a capture channel which then I read from and store it to a local variable. The next rising edge triggers yet another capture event that stores the counter's counter value which I read to a local variable. Then I could subtract the two values and find out the time it took for the second rising edge to occur relative to the first one.
I found this example but not sure if there is a better way
Thanks Calex