I need generate single pulse with desired duration using GP Timer, preferable without use of interrupts.
AM3517 TRM says, that GP timer has "one-shot" mode - automated stop of timer after overflow occurs. But in the same place it is told that in the PWM mode first "match event" is ignored, if it comes before first overflow. It seems doesn't allow to use PWM toggle mode in conjunction with "one-shot" mode to generate single pulse...
Is there a way to generate single pulse with programmed duration using "one-shot" mode without using of interrupts? Or the only way to do it - to use two cycles of timer: first overflow toggles PWM output to ON state, then interrupt service routine clears "autoreload" bit to enter one-shot mode, then second overflow toggles PWM output to OFF state and stops timer?
It is planned to use in the Linux kernel driver environment for control of the power device therefore use of interrupts is undesirable - Linux doesn't guarantee determined time of reaction for an interrupt event, and I am afraid of an extra pulse due to heavy load of CPU by other tasks.