Hi all,
I want to reset my timer for every byte received from the UART. The Timer reset works for only some cycles ,After that the timer isn't working at all.
The code below for resetting timer.
TimerIntClear(TIMER0_BASE, TIMER_TIMA_TIMEOUT); TimerDisable(TIMER0_BASE,TIMER_A); HWREG(TIMER0_BASE + 0x50) = 500000; TimerEnable(TIMER0_BASE,TIMER_A);
so once the Full stack received the timer will be disabled and Reenabled when data transmitted again acting as the counter . The configuration was only working for 4 cycles of Timer enabling and disabling. And at that point the interrupt generation will be stopped and at that point the timer was loaded with the above timer value.