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.

TMS320F28379D: DCL_PI_CLA example for driver lib

Part Number: TMS320F28379D

The pi controller example for CLA in the digital control library is written for bitfield operations. The rest of the code I have (EPWM, ADC, and communications) is already written using driver lib functions, and I don't want to mix both bitfield and driver lib in my code. Is there and equivalent example for DCL_CLA with driver lib functions? 

On a separate note, is bitfield faster than driver lib in execution or are they both the same?

  • Hi Anju,

    We does not have a DCL example in driverlib today, mainly due to history reason (example was developed before driverlib was introduced, and never been updated). You may take the CLA driverlib example and add DCL library to it.

    Regarding speed, driverlib will perform similar to bitfield (with very slight slow down) with optimization turn on to higher than O2 level. We designed the driverlib function that is normally used in realtime ISR as inline C function, and compiler will optimized most of the overhead of driverlib function. 

    Best regards,

    Han