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.

LM4F232 cann't generate interrupts in Input Edge-Count Mode

 Timer0 works in Input Edge-Count Mode(down) ,TAILR=0 TAPR=1 TAMATCHR=0 TAPMR=1

 But TATORIS bit in GPTMRIS register hadn't be set when timer0 counts down to zero .

  • I will have to look into this and get back to you. I don't see anything in the errata for the lm4f232 that suggests this is known to have a problem.

  • I wrote a testcase to check this out and see what your problem is. Although TATORIS isn't set when the count reaches 0, you should find that CAMRIS (bit 1) is set. When I make this correction, my code runs correctly and I see interrupts.

    The attached test runs on an ek-lm4f232 board. Press the "up" button to cause the counter to decrement from 9 to 0 and you should see the interrupt count increase when it rolls from 0 back to 9.