i set up code for generating count in neg edge trig this is not working well can any help me?
// Set up counter time
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0); // Enable the Tim qer0 peripheral
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_TIMER0)) // Wait for the Timer0 module to be ready.
{ }
GPIOPinConfigure(GPIO_PB6_T0CCP0);
GPIOPinTypeTimer(GPIO_PORTB_BASE, GPIO_PIN_6);
TimerConfigure(TIMER0_BASE, (TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_CAP_COUNT_UP));
TimerLoadGet(TIMER0_BASE, TIMER_A);
TimerControlEvent(TIMER0_BASE, TIMER_A, TIMER_EVENT_NEG_EDGE);
TimerEnable(TIMER0_BASE, TIMER_A);
int counter;
counter= TimerValueGet(TIMER0_BASE,TIMER_A);