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.

CCS/UCD3138ALLCEVM150: HB LLC Code

Part Number: UCD3138ALLCEVM150
Other Parts Discussed in Thread: UCD3138A, UCD3138

Tool/software: Code Composer Studio

Hi,

We recently got the EVM UCD3138ALLCEVM150 for digital LLC evaluation. This EVM has UCD3138A micro and UCC7138 chip for synchronous rectification. In the HB LLC firmware, the source code is for #define MFR_MODEL "UCD3138LLCEVM-028" //Hardware Model.

I need to make some changes in the code. So my question is where and what to declares define in the code to make it work for UCD3138A Sunflower for UCD3138LLCEVM150.

Also, I find DPWM2 being commented out from the code for ZCS feature, what is the significance of this code and do I need to uncomment these lines to make the code work same as that of UCD3138ALLCEVM150 ?

Regards,

Nitish

  • It's relatively easy to set it up for UCD3138A with the UCC7138.

    Just right click on the project name (UCD3138_LLC_HB) in project explorer in CCS

    Select Show Build Settings->General->Manage Configurations

    You may have to stretch out the column width to see it, but click on the configuration which is called UCD3138A -Sunflower

    Then click Set Active and OK a couple of times.  You should see the text next to the project name switch to show this as the active project.  Then build it, and it should be fine.

    Looking at the comments, it seems that the ZCS sampler is actually coming out on DPWM0, regardless of what the comments say. 

    If it actually is causing an issue, let me know and I'll get someone else to comment on it, as I'm not familiar with that part of the LLC.  I'm pretty sure that it should work fine with the EVM the way it is. 

  • Thank you for the quick reply.

    I made the required changes but on compilation I am getting following errors:

  • That happens when you switch compiler versions - the CCS wrapper loses the special compile settings for the files.

    There are four files that need to be set up for 32 bit (ARM) mode compilation.  

    They are:

    interrupts.c

    software_interrupt.c

    standard_interrupt.c

    Device/UCD3138A/Source/clear_program_flash.c

    To change them to 32 bit mode, first right click on the file name in project explorer

    Click on Show Build Settings->ARM Compiler->Processor Options, and select a 32 bit code state.  

    For the first three, you may want to go to the next line "Optimizations" and experiment with optimizing for speed.  We haven't really needed to push speed optimization on LLC, but it might make the interrupt overhead lower.  

    The fourth one wont' cause any compile errors if you don't put it into 32 bit mode, but it may cause your attempts to clear the checksum to fail, which could make your chip into a tietack.  

  • Now I am able to build the code.

    Once I am ready to make the changes and load the code on hardware then will try to play with optimization settings. Its good thing to know about this setting if we want to work for higher switching frequencies as this calls for an interrupt after every 4 switching cycles.

    Do I need to mention any Linker command file under Build Settings -> General -> Linker command file. Currently its empty.

  • You don't need to put anything in the linker command file list. It is magically picking the needed linker command files up some other way.