I want to use TimerA of TIMER0_BASE with Prescale, and the code is following :
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_TIMER0)){}
TimerConfigure(TIMER0_BASE, TIMER_CFG_A_PERIODIC);
TimerPrescaleSet(TIMER0_BASE,TIMER_A,128);
TimerLoadSet(TIMER0_BASE, TIMER_A, 80000000);
TimerIntRegister(TIMER0_BASE, TIMER_A, pfnHandler);
TimerIntEnable(TIMER0_BASE, TIMER_TIMA_TIMEOUT);
TimerEnable(TIMER0_BASE, TIMER_A);
why this timer is triggered with 1S. because I have set the prescale with 128, should it is triggered with 2S(it's frequency was become 40MHZ)???
thanks for your ask