I am working with a LM4f232h5qd. I tried to setup an periodic interrupt from Timer0 with prescaler.
// setup periodic interrupt
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);
TimerLoadSet(TIMER0_BASE, TIMER_A, (80000000 / (4 * 1000)));
TIMER0_TAPR_R &= ~TIMER_TAPR_TAPSR_M;
TIMER0_TAPR_R |= 0x03;
TimerConfigure(TIMER0_BASE, TIMER_CFG_A_PERIODIC);
TimerIntEnable(TIMER0_BASE, TIMER_TIMA_TIMEOUT);
IntPrioritySet(INT_TIMER0A, (3 << 5));
IntEnable(INT_TIMER0A);
TimerEnable(TIMER0_BASE, TIMER_TIMA_TIMEOUT);
The interrupt gets triggered, but the frequency is not as expected. It seem that the prescaler has no influence.
Am I missing something in the setup or are there problems with the prescaler on this device as well.
I have not seen any hint in the errata.