Part Number: C2000WARE
Tool/software:
Hello Experts,
EPWM functions require high processing load and do not finish in the expected time. After investigating the cause, EPWM_setMinDeadBandDelay() takes about 250ns to 500ns per call.
* We measured with an oscilloscope using GIPOpin.
Is there any data about the processing time of each function?
Are there any processing time-consuming conditions (e.g., calling the same function multiple times) and the workarounds?
The workarounds we are considering are as follows:
- Keep the previous values so as not to reset the settings that have not changed (avoid unnecessary settings).
- Do not use debug settings and do not detect errors.
Please let us know if you have any other workarounds.
The functions that will be used are as follows:
- EPWM_setActionQualifierAction()
- EPWM_setMinDeadBandDelay()
- EPWM_setGlobalLoadOneShotLatch()
- EPWM_setCounterCompareValue()
- EPWM_setPhaseShift()
- EPWM_getTimeBaseCounterValue()
- CMPSS_setRampDirectionHigh()
- CMPSS_setRampReferenceHigh()
- CMPSS_setRampStepHigh()
- CMPSS_enableLatchResetOnPWMSYNCHigh()
- GPIO_writePin()
- GPIO_readPin()
- ADC_isBusy()
- ADC_readResult()
Best regards,
Ken