This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

timer compare mode (TM4C1294NCPDT)

Hi,

what I need:  15 Hz 300 uS pulse generation on PD0 (TM4C1294NCPDT )

what I've done : programmed timer 0 as follows

MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);

ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);//Timer0
ROM_GPIOPinConfigure(GPIO_PD0_T0CCP0);
ROM_GPIOPinTypeTimer(GPIO_PORTD_BASE, GPIO_PIN_0);

ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);

//Timer 0 generetes on PD0 300uS pulses on 15Hz freq
ROM_TimerConfigure(TIMER0_BASE, TIMER_CFG_PERIODIC|TIMER_CFG_A_ACT_SETCLRTO);
ROM_TimerLoadSet(TIMER0_BASE, TIMER_A, (120000000/15));//15 Hz
ROM_TimerMatchSet(TIMER0_BASE, TIMER_A, (8.33*300000));//300 uS

ROM_TimerEnable(TIMER0_BASE, TIMER_A);


result:  on PD0 got one (single) pulse 75mS wide.

Question: Have I done something wrong?