Hi Expert,
My customer has a question that how many sysclks will the driver code in driverlib format such as "EPWM_clearTripZoneFlag()/EPWM_forceTripZoneEvent()" need to execute?
Do you have related test data or rough analysis?
Thanks!
Rayna
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Expert,
My customer has a question that how many sysclks will the driver code in driverlib format such as "EPWM_clearTripZoneFlag()/EPWM_forceTripZoneEvent()" need to execute?
Do you have related test data or rough analysis?
Thanks!
Rayna
Hi Rayna,
Since most of the critical APIs are static inline, the execution would depend on the optimization level of the application project as these APIs are compiled as application code and are nor part of driverlib.lib. E.g. with opt level = Off, these APIs would not be inlined and hence the execution time would be more due to the function call overhead. With opt level > = O0, these APIs will be inlined there by reducing the execution time.
You can check the cycles using Clock feature in CCS.
Thanks
Vasudha
Hi Vasudha,
Thanks a lot for your reply!
1. is there a rough range of how many System Clock cycles are needed to execute APIs such as EPWM_setTimeBasePeriod( ) etc?
2. Specifically, how to check the cycles using Clock feature in CCS? Could you elaborate?
Hi,
XIAOQUAN FU said:Specifically, how to check the cycles using Clock feature in CCS? Could you elaborate?
Refer to below video for details on CCS profile clock.
https://www.youtube.com/watch?v=SFgMggLv8Ck
Thanks
Vasudha