Tool/software:
I'm trying to use a timer as a pulse counter, code as follows:
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER4);
GPIOPinTypeTimer(GPIO_PORTD_BASE, 0x80);
GPIOPinConfigure(GPIO_PD7_T4CCP1);
TimerDisable(WTIMER4_BASE, TIMER_A); // Stop Counting
TimerConfigure(WTIMER4_BASE, TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_CAP_COUNT_UP | TIMER_CFG_A_ACT_NONE);
TimerControlEvent(WTIMER4_BASE, TIMER_A, TIMER_EVENT_NEG_EDGE);
TimerLoadSet(WTIMER4_BASE, TIMER_A, 0);
TimerPrescaleSet(WTIMER4_BASE, TIMER_A, 0xFFFF);
TimerMatchSet(WTIMER4_BASE, TIMER_A, 0xFFFFFFF0);
TimerPrescaleMatchSet(WTIMER4_BASE, TIMER_A, 0xFFF0);
TIMER4_TAV_R = 0;
TimerEnable(WTIMER4_BASE, TIMER_A); // Start Counting
SysTickIntDisable();
TimerDisable(WTIMER4_BASE, TIMER_A); // Stop Counting
SysTickIntEnable();
When it gets to the second TimerDisable() it branches to FaultISR().
Help. Thanks

