Part Number: TM4C1294NCPDT
I am trying to use one of the timers on a tm4c1294 in periodic count up mode. Everything works fine, except I can't seem to reset the count value.
Here is my initialization code:
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER1);
TimerConfigure(TIMER1_BASE, TIMER_CFG_PERIODIC_UP);
TimerEnable(TIMER1_BASE, TIMER_A);
Here is how I attempt to reset the timer:
HWREG(TIMER1_BASE + TIMER_O_TAV) = 0;
Even after I write 0 to TAV, I don't see the TAV or TAR registers getting reset to zero. They just keep counting up.
Can anyone explain how to reset the timer?