1 of 1 people found this helpful
To be on the safe side you shoud stop the timer before changing period and resetting the actual count value to zero. After the changes start the timer again.
This is what i wrote as you suggested but didn't work.
now i set the timer Period to 1000ms
but after this code the timing still not changed it is still 1000ms only.
Attached is my trial, it seems that we need to use Timer_Enable() instead of Timer_Start() .
So my period setting function was
void set_timer_period(int period)
My TeraTerm log.