Hi Team,
Do you have any idea to calculate the running time by setting a timer?
I am using msp430fr5994 chips.
With kind regards,
Gaosheng
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.
Hi Team,
Do you have any idea to calculate the running time by setting a timer?
I am using msp430fr5994 chips.
With kind regards,
Gaosheng
Hi Gaosheng,
A simple way is to setup a timer to generate an interrupt. In the interrupt handler you can use a counter and increment each time in the handler. If you are trying to measure time in seconds, minutes, hours, etc., setup the timer to operate using the external 32KHz crystal and set the timer compare value = 32768. This will provide a 1 second timeout.
See this TI resource explorer example.
**Attention** This is a public forum