Tool/software:
I am working with timerG and configure to generate interrupt every 500ms. but i want to reset this timer in between mean before reching it to 500ms i want to restart this timer. how to do this?
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.
Tool/software:
I am working with timerG and configure to generate interrupt every 500ms. but i want to reset this timer in between mean before reching it to 500ms i want to restart this timer. how to do this?
Hi Mehul,
You can toggle the enable bit and if you have the CVAE set to 2 it will zero the counter. You can also directly write to the counter to 0 or some other value, be aware of the note though.
Regards,
Luke
ok. will check this , Is there any other suggestion? i mean i have seen other controllers provides timer restart functionality, do mspm0 have such thing? i have seen some Api's related to reset timer, or set load Value etc. what will happen if i before timer reaches to zero i stop timer - > set load value again - > start timer . will it work as reset mechanism?
Hi Mehul,
Stopping and restarting the timer will also restart the count depending on the setting for your CVAE bit and if youre in up/down mode.