I have two program events. I want to measure the time between these events in clock cycles.
I'm able to measure one event, as the timer will start counting up. However, I don't seem to be able to reset it. The values I get out of the timer represent continuous, non stop counting.
Is it possible to reset a one shot timer to zero, so it begins counting again?
I've checked the API documentation and there's no explicit reset command. I presume I will have to do this another way. But it does seem like a strange omission. On some other processors you can load the timer value directly, so I would just load it to zero. But I can't see a way of writing the value register...