Part Number: AM263P4
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello,
I am trying to do something that sounds trivial but I have not yet succeeded.
I want to generate a single pulse from an ePWM output upon a software trigger, e.g.
EPWM_setTimeBaseCounterMode(CONFIG_EPWM0_BASE_ADDR, EPWM_COUNTER_MODE_UP);
and then the ePWM module should on its own, without any ISR/software interaction, go back to Freeze mode. The reason why I do not want to use any ISRs is because the whole point of this exercise is to eliminate an ISR, which is triggered in the current implementation by a Timer to toggle the same pin and generate the same pulse. This ISR is interrupting the application control logic and messes up with motor current sensors timings.
In other words I want to use the Action Qualifier and manipulate the ePWM output pin only within a single 0-TBPRD cycle and then the TBCTR should either reset to 0 and stay there or remain at TBPRD, until another software call triggers the same behaviour again.
Is this possible to configure through SysCfg or other means?
Everything I have tried so far (including OneShot through Global Load configuration and other similar options) has given me pretty much the same result, which is a combination of three pulses and then a single pulse.
This is my configuration:




Thanks!