SPRACS0A May   2020  – November 2022 TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28033 , TMS320F28033-Q1 , TMS320F28035 , TMS320F28035-EP , TMS320F28035-Q1 , TMS320F28053 , TMS320F28055 , TMS320F2806-Q1 , TMS320F28065 , TMS320F28069 , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28076 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S , TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DK-Q1

 

  1.   Software Examples to Showcase Unique Capabilities of TI’s C2000 CLA
  2.   Trademarks
  3. 1Introduction
  4. 2Direct Access of CLA to Key Peripherals
  5. 3Low interrupt Latency of CLA
  6. 4Powerful Math Computation Capability of CLA
  7. 5Offloading Fast Control Loop to CLA
    1. 5.1 Handling Shared Resources Across C28x/CLA
  8. 6Summary
  9. 7References
  10. 8Revision History

Powerful Math Computation Capability of CLA

CLA also offers powerful 32-bit floating point processing capability to C2000 devices and provides a significant boost to the performance of typical math functions that are commonly used in control algorithms. The powerful CLA instruction set supports floating point multiplication with parallel add or subtract operations in a single cycle and also supports computation of inverse square root in a single cycle too. For the ease of software development with CLA, a wide collection of commonly used floating-point math functions (a few of them are listed in Table 4-1) are packaged into a single library called as CLA Math, which is available as part of C2000Ware. This source code library includes several C callable assembly math functions optimally written for CLA architecture.

In addition to the basic math routines, TI also provides Digital Control library (DCL available as part of C2000Ware) that includes optimal implementation of standard control routines on CLA CPU, few of them are listed in Table 4-1. These C callable assembly control routines can be called within a CLA application task to realize digital controller on CLA CPU. Along with the library source code, examples are provided to show the user how to integrate the library into their projects and use any of the math or control routines. These examples can be found in the example directories indicated in the introduction section that can be used to explore and evaluate the compute capability of CLA.

Table 4-1 CLA Math and Control Library Routines
LibraryRoutineDescriptionCycles
CLA MathCLAcosCalculates cosine on CLA28
CLAsinCalculates sine on CLA28
CLAacosCalculates arc-cos on CLA24
CLAasinCalculates arc-sine on CLA22
CLAatanCalculates arc-tan on CLA41
CLAlog10Calculates Log (base10) on CLA29
CLAexpCalculates exponential on CLA41
CLAdivCalculates floating-point division on CLA13
CLAisqrtCalculates inverse square root on CLA14
CLAsqrtCalculates square root on CLA16
DCLDCL_runPID_L1Runs Ideal Form PID controller on CLA53
DCL_runPID_L2Runs Parallel Form PID controller on CLA45
DCL_runPI_L1Runs Ideal Form PI controller on CLA34
DCL_runDF13_L1Runs the DF13 Full Compensator on CLA61
DCL_runDF13_L2Runs the DF13 Immediate Compensator on CLA20
DCL_runDF13_L3Runs the DF13 Partial Compensator on CLA58