Tool/software:
I want to use a GPT One-shot to generate a software triggered pulse. My code is:
TimerDisable(TIMER4_BASE, TIMER_B); TimerConfigure ( TIMER4_BASE, TIMER_CFG_SPLIT_PAIR | TIMER_CFG_B_ONE_SHOT | TIMER_CFG_B_ACT_SETCLRTO ); TimerControlStall(TIMER4_BASE, TIMER_B, false); TimerPrescaleSet(TIMER4_BASE, TIMER_B, 120); TimerLoadSet(TIMER4_BASE, TIMER_B, 1000); TimerEnable(TIMER4_BASE, TIMER_B);
When I run the code a pulse is generated on PM5 as expected the first time the code is executed. Subsequent executions of the code however don't generate an output pulse. If I reload the code from CCS and run it again I again get a single pulse but no subsequent pulses.
The SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER4);
call is made once during system startup.
What am I missing?