Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

TMS320F280039C: Basic Example of Use of PID Controller within CLA

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hello,

Is there a basic example that shows how the CLA is initialized, does math, can perform PID calculations, and how it relates to other peripherals? I want to get the CLA involved, but I'm not sure how to use it properly and I've tried to watch every video and read any documentation on the CLA that's out there.

Thanks,

Reid

  • Hi Reid,

    I don't believe we have an example doing exactly as you described, but you can take a look at the examples in C2000ware, located in [C2000ware install]/driverlib/f28003x/examples/cla. One of the simpler examples using another peripheral is cla_ex4_pwm_control, which sets up the ePWM module to periodically trigger a CLA task which will perform some calculations on the duty value.

    I'm not familiar with PID Controller calculations; what other peripherals would be involved? Could you describe what the algorithm does at a high level? I can try to provide some guidance from a CLA perspective.

    Best Regards,

    Delaney