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.

TMS320F28386D: CLA synchronisation

Part Number: TMS320F28386D

Tool/software:

Hi,
is there a possibility to synchronize the 2 CLAs? Customer has to run same code/instruction clock synchrony. May be through a CPU instruction or CLB or external signal?

Regards, Holger

  • Hi Holger,

    There is no CLA1-to-CLA2 MSGRAM available, so here are some other options:

    1. If this is the only task being used on both CLAs, you can use the same trigger source for the two CLA tasks and make the peripheral shared. For example, you could have ePWM1 be a shared peripheral and set EPWM1 as the trigger source for a task on CLA1 and CLA2. Then you know that both tasks begin execution at the same time.
    2. Use IPC between CPU1 and CPU3 and variables in the CLA/CPU MSGRAMS:
      1. CLA1 <-> CLA/CPUMSGRAMS <-> CPU1 <-> IPC <-> CPU2 <-> CLA/CPUMSGRAMS <-> CLA2
    3. You could connect four GPIOs to each other externally and set two as outputs and the other two as inputs. Note that each GPIO can only be owned by one core at a time. Example:
      1. CLA1 - writes GPIO1 (output) high when inside its task then loops waiting for GPIO2 (input) to go high
      2. CLA2 - writes GPIO3 (output) high when inside its task then loops waiting for GPIO4 (input) to go high
      3. Connect GPIO1 -> GPIO4 externally
      4. Connect GPIO3 -> GPIO2 externally

    Additionally, make sure that the lines of code after this takes the same amount of clock cycles if you want them to occur at the same time. If using identical code on both cores, make sure both projects have the same optimization level configured.

    Best Regards,

    Delaney