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.

[SOLVED] LM4F timer B interrupt

Hi,

I tried the timer example found in stellarisware directory (\StellarisWare_lm4f232\boards\ek-lm4f232\timers) and it works.

Then I simply substitute trom TIMER 1 A to TIMER 1 B, substituting every occurrence of TIMER1 and interrupt vector, and it doesn't works.

What is the difference between TIMER A and TIMER B, from interrupt point of view?

How can I trigger the interrupt for TIMER B?


I also tried with TIMER 4: same behaviour


best regards

  • Well, there are a couple of things that could be causing your problems:

    1) The timers example sets up the timers in 32-bit mode.  This means that there is only a timer A; the resources for timer B are used to produce the 32-bit timer.  If you have not changed the application to place the timers into 16-bit mode, timer B will not work as you expect.

    2) When using the B timer, it has its own interrupt vector (separate from A).  So, it must be separately enabled (i.e. separate from the A timer).  And it must be separately listed in the vector table.

    3) Timers A and B have separate timeout interrupt enables within the timer module itself.  This must be enabled for timer B in order for it to produce interrupts.

    --Brian

  • OK,

    my timer was programmed in 32 bit mode. Modifing to 16 bit mode it works

    thank you

    best regards