C28x CLA Task

Create CLA task that executes downstream function-call subsystem on CLA core

  • Library:
  • Embedded Coder Support Package for Texas Instruments C2000 Processors / F2803x

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F2805x

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F2806x

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F2807x

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F2837xD

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F2837xS

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F28004x

Description

The CLA Task block creates a (Control Law Accelerator) CLA task that executes a downstream function-call subsystem on the CLA core. CLA is a coprocessor that allows parallel processing. Utilizing the CLA for time-critical tasks frees up the main CPU to perform other system and communication functions concurrently.

You can specify the interrupt source to trigger the CLA task. You can create up to eight CLA tasks to execute on the CLA core.

For information about how to configure a CLA block to execute a downstream function-call subsystem, see Using the Control Law Accelerator (CLA).

Limitations

  • The CLA application code can only be triggered by a C28x event. CLA Task can be triggered by the C28x CPU via software or by different peripheral interrupts.

  • All interfaces between the CLA and the CPU must be placed in specific memory locations. The CpuToCla1MsgRAM memory section is used to exchange data from C28x to the CLA. The Cla1ToCpuMsgRAM memory section is used to exchange data from the CLA to C28x.

  • The CLA application code does not have access to global variables.

  • Early versions of the CLA C compiler support only two levels of function calls. CLA interrupt service routines may call leaf functions only. Leaf functions may not call other functions.

  • Recursive function calls are not supported.

  • Integer division, modulus, and integer unsigned comparison are not supported with the CLA C compiler.

For more details and a full list of limitations, see http://processors.wiki.ti.com/index.php/C2000_CLA_C_Compiler.

Ports

Output

expand all

The output triggers the CLA task that executes a downstream function-call subsystem on the CLA core.

Parameters

expand all

The CLA task number that you want to execute on the CLA core.

The software or peripheral interrupt source that triggers the CLA task to execute on the CLA core.

Set the frequency at which the function-call subsystem is triggered by the CLA task trigger source. To execute this block asynchronously, set this parameter to -1.

Dependencies

This parameter appears only when you select the Software option in the CLA task trigger source parameter.

Introduced in R2016b