Other Parts Discussed in Thread: TM4C123GH6PM
Hi everyone.
Im trying to do a 1second timer with the wide timer in RTC mode, but im having a problem , the value of this timer gets stucked in 1.
SysCtlPeripheralEnable(SYSCTL_PERIPH_WTIMER1); //enable the timer clock
TimerConfigure(WTIMER1_BASE, /*TIMER_CFG_RTC*/TIMER_CFG_RTC);//configure in RTC mode
TimerLoadSet(WTIMER1_BASE,TIMER_A,0); //loads the initial value 0
TimerRTCEnable(WTIMER1_BASE);
TimerEnable(WTIMER1_BASE, TIMER_A);//starts the count
delay...
delay...
delay...
ulSeconds= TimerValueGet64(WTIMER1_BASE);