Hi,
I am trying to control 10 ePWM channels in a high speed control loop and I am blowing my execution window. While trying to improve performance I noticed that the calls to set the counter compare for the ePWMs are taking a while.
Time taken for the setting each PWM channel is ~160 nano seconds by executing the following:
timebaseperiod = EPWM_getTimeBasePeriod(pwmId); comparatorCount = timebaseperiod - (timebaseperiod * dutyCycle); EPWM_setCounterCompareValue(EPWM1_BASE, EPWM_COUNTER_COMPARE_A, comparatorCount);
Is this an expected execution time for reading and writing to the PWM registers or is there something I can do to speed it up?
Thank you.