Dear Bob,
Thanks for reply,
We are getting the external interrupt now and its working fine.
Now i am facing the another problem. As i told you that we are migrating to TIVA from stellaris so the timer which is working in stellaris also facing issue.
Configured timer2 in intialization
{
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
GPIOPinConfigure(GPIO_PB7_T6CCP1); // Configure the Timer2 CCP5 function to use PE5
ROM_GPIOPinTypeTimer(GPIO_PORTB_BASE, GPIO_PIN_7);
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER2); // Set up Timer2B for edge-timer mode, positive edge
ROM_TimerConfigure(TIMER2_BASE, TIMER_CFG_SPLIT_PAIR | TIMER_CFG_B_CAP_COUNT);
ROM_TimerControlEvent(TIMER2_BASE, TIMER_B, TIMER_EVENT_POS_EDGE);
ROM_TimerLoadSet(TIMER2_BASE, TIMER_B, 0x0001);
ROM_TimerMatchSet(TIMER2_BASE, TIMER_B, 0x0000);
ROM_TimerIntEnable(TIMER2_BASE, TIMER_CAPB_MATCH);
ROM_IntEnable(INT_TIMER2B);
}
After getting 1st pulse I start the timer2.
void Timer2_start(void)
{
ROM_TimerLoadSet(TIMER2_BASE, TIMER_B, 0xffff);
ROM_TimerMatchSet(TIMER2_BASE, TIMER_B, 0x0000);
ROM_TimerEnable(TIMER2_BASE, TIMER_B);
ROM_IntEnable(INT_TIMER2B);
fout_intCount=0;
}
and after 10 pulse stop the timer and read the timer but not getting the value in N_Actual what is probable cause?
ROM_TimerDisable(TIMER2_BASE, TIMER_B); //Disable Timer2
N_Actual = fout_intCount*0xffff + 65535 - ROM_TimerValueGet(TIMER2_BASE, TIMER_B);
Below are
void Timer2IntHandler(void)
{
ROM_TimerIntClear(TIMER2_BASE, TIMER_CAPB_MATCH); // Clear the timer interrupt.
ROM_TimerLoadSet(TIMER2_BASE, TIMER_B, 0xffff);
ROM_TimerMatchSet(TIMER2_BASE, TIMER_B, 0x0000);
ROM_TimerEnable(TIMER2_BASE, TIMER_B);
ROM_IntEnable(INT_TIMER2B);
ROM_TimerIntEnable(TIMER2_BASE, TIMER_CAPB_MATCH);
fout_intCount++;
}