I work with TM4c123AH and CCS 5.5.
I have a 16 bit timer configured :
// TimerConfigure TIMER 0 TIMER0_CFG_R = 0x00000004; TIMER0_TAMR_R = 0x00000002; TIMER0_TBMR_R = 0x00000002; TimerLoadSet(TIMER0_BASE, TIMER_A, 2000);
Some time I have to read the value reached by timer (from 0 to 2000).
I read the TIMER0_TAV_R register, but it have a streng and random value also stepping with emulator
Probably something wrong, what should I do to read the value reached by the timer?
Thanks
Stefano