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.

how can i know the rate of each MACRO in DMC MATH?

Other Parts Discussed in Thread: CONTROLSUITE

please i need help for 

how can i know the rate of each MAKRO in DMC MATH? what can I understand from the Colors of each MACRO?

thanks

  • Hi Ahmed,

    Do you mean that you want to know how many instruction cycles needed by C2000 when a MACRO of Math Lib is executed? 

    And what do you mean the colors of each MACRO?

     

    Axel

  • Hi, Ahmed

    To interpret the 1st question, I'll take an example. To IQmath_v15c (a lib of DMC MATH), you could find the document in the folder: C:\ti\controlSUITE\libs\math\IQmath\v15c\doc. In this document, you could see the following table:

    In the item of Execution Cycles, you could find the rate of the MACROs. 

    For the second question, I need your further interpretation of the COLOR.

     

    Axel

  • thanks Axel Gao

    please find the attached fig. why each macro has a different color (park, clarke different from pi, phase voltage, .....) do this have a relation with the sample time of each Macro?

    thanks

    ahmed

  • Ahmed,

    I'm sorry that I'm not sure about that. However, from the program I could see that each macro is executed with the order of the signal flow in each interruption (ISR function). I don't know what is the sample time. Do you mean the frequency of execution?

     

    Axel 

  • Dear Axel

    thanks

    yes, i mean the frequency of execution.

    ahmed

  • Hi, Ahmed,

    I don't think that the different color means the different frequency of execution.

     

    Axel

  • thanks very much

    can you expline "I could see that each macro is executed with the order of the signal flow in each interruption (ISR function).

    or can you give an example?

    thanks

  • Hi, Ahmed,

    I think that the image you show me is a block diagram of FOC algorithm. I'll show you an example:

    C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v104\PM_Sensorless where you'll find a CCS project of FOC algorithm with sensorless-PMSM. And the Doc is at the location of C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v104\PM_Sensorless\~Doc .

    The block diagram is similar to yours. And in the code (with compiling option Level 7), you'll find out the macros in the diagram is executed in the interruption function: MainISR, which is triggered by EPWM module. And the order of execution follows the direction of the arrows. So, I think the execution frequency of each macro in the control circuit is same.

     

    Axel

     

  • thank you very much