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.

TM4C1290NCPDT: Timer 4 A/B timer timeout interrupts..

Part Number: TM4C1290NCPDT


Dear TI,

I have the Timer4 configured to operate as 2 separate 24-bit timers in count up mode, and set to capture the time upon a rising edge. I have an audio generator which generates an 8Hz square wave signal -- I am observing this on an analog scope -- and the capture interrupts are happening. However, while I am getting the capture interrupts I am not getting any timer timeout interrupts. I have the timer timeout interrupt enabled in the IMR register. I added debug code and at no time when the interrupt handler runs because of a capture interrupt is the timer timeout bit set in the RIS register. (Even when I crank up the generator to 100Hz and get just over 100 capture events over a span of just 2.25 seconds.

Timer4 clock source: PIOSC (16MHz).

Timer4 is configured to operate in sleep and deep sleep modes but sleep is not being used in this environment.

Timer4 TAMR register after some configuration settings reads back with a 0x00000217.

The control event is: TIMER_EVENT_POS_EDGE.

Timer prescale is set to 0xFF.

Since I am using a debugger I have the Timer4 configured to Stall when the processor enters debug mode. However I have tested the code free under no debugger control.

When I want to "unleash" the timer I enable the timer, write zeros to both the TAV and TAPR registers. then enable interrupts: TIMER_CAPA_EVENT and TIMER_TIMA_TIMEOUT. When read the IMR register contains 0x00000005.

As best I can tell it looks like I have Timer4 A configured correctly but no timer timeout interrupts are being signaled not even in the RIS register.

Am I missing something?

Marc Warden