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.

TMS320F28069: Device selection / Usage of CLA for gried connected inverter

Part Number: TMS320F28069
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE, TIDM-1000, TIDM-1007, TIDA-01604, C2000WARE-DIGITALPOWER-SDK

Hi Texas Instruments,

currently I'm programming an application which is quiet similar to the HV_1PH_DCAC. As I started from scratch the source code from that design and in particular the Solar Library were a great help. Thank you for that!

I already had a TMS320F28069 Control Card. Therefore I started programming on this device. I did the following steps:

a. Developed the code for controlling my inverter on the CPU

b. Moved the control code from CPU to CLA to free up the CPU to do some signal processing and communication.

The next step would be to implement the state machine of the inverter similar to HV_1PH_DCAC with states like Off, On, Reset, Fault, etc. Now the following questions come up to me:

1. Is it the right approach to use the CLA to control the inverter and the CPU for signal processing?

2. Where would you recommend to implement the state machine, on CLA or CPU? The problem with the CLA is, that my CLA program space is nearly exhausted. Therefore I considered to move to a different device for example the F28004x, which has a bigger program space and then implement the state machine on the CLA. Or do you recommend to implement the state machine on the CPU? But how would you then do the communication between CPU and CLA?

As you can see I'm struggling with the question how to make the best usage out of CLA and CPU for my application. If you need further information to answer my request, please let me know.

I'm looking forward to you help!

  • Hello,

    The right approach would be to use the CLA to control the inverter.

    The CPU is much better suited to implement the state machine. The CLA is not very good for logical conditions and has less memory and access to fewer peripherals.

    Pierre
  • Thank you, Pierre!

    I still do not know how to do the link between CLA and CPU, because the control on the CLA needs to know the current state of the inverter. So do I pass the state variable using the CPU to CLA Message Ram? Or is there a better option? For the fault state I plan to use the TripZone Modules of the ePWM blocks.

    Is there any example source code available, which could help me?

  • You can indeed use the message RAMs to share variables between the CPU code and the CLA tasks.

    Whenever I need example source code for a certain peripheral I look at the examples in the ControlSuite or C2000Ware packages from Texas Instruments.

    For instance on my computer the path to the example projects looks like this:

    C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2806x\examples\c28\cla_adc_fir

    Regards,

    Pierre

     

  • We went through an evolutionary phase with the memory options for the CLA.

    On the F28035, only the CLA could acess it;s own data RAM, i.e. C28x could not access it.

    On the F28069, both CLA and C28x could access the data RAMs , MMEMCFG[RAMxE] == 1, MMEMCFG[RAMxCPUE] = 1

    With this option it is laissez faire where you read what and you can think of CLA as a true parallel processor.

    We use these options to enable CLA on designs such as TIDM-1007, TIDM-1000 and TIDA-01604, please see C2000Ware-DIGITALPOWER-SDK for these solutions where we enable mapping to CLA easily.
  • Dear Manish,

    thank you for your help.
    By looking at this document from TIDM 1007 ( www.ti.com/.../tidud61b.pdf ) I think I found what I was looking for. From figure 19 I see that the state machine is implemented on the CPU and the inner control loop on the CLA. Therefore I want to check out the source code from TIDM 1007. However I am struggling with the C2000Ware Digital Power SDK. Regarding Power Suite I asked a related question you can see here:

    e2e.ti.com/.../747116

    Best regards
    MK
  • MK,

    A colleague of mine will help in answering that question as it relates to the installer.

    Good luck with your project.

    regards
    Manish