This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-MSPM0G3507: How to restart the TIMH0 counter

Part Number: LP-MSPM0G3507

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.