This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Read timer0a value

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