I want to measure a pulse width. And I used TIMH0 to capture the pulse.
When the capture finished, I use "DL_TimerH_stopCounter" and "DL_TimerH_disableInterrupt" to stop the counter.
Then use "DL_TimerH_getCaptureCompareValue" to calculate the pulse width.
So my question is:
1. How to restart the counter? To capture the next pulse.
2. How to calculate the pulse width? What's the Arithmetic relationship between compare value and pulse width.