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.

TMS320F28030: How is execution time calculated for 2p2z controller in Digital Power Library (DPL) module.

Part Number: TMS320F28030
Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I was going through Digital power library doc situated at controlSUITE\libs\app_libs\digital_power\f2803x_v3.1\Doc\DPLib.pdf. In the doc execution time for several control architecture is provided. For example CNTL_2P2Z module takes 34 system cycles.

1.How is the execution time arrived?

2.I was also going through the instruction set. But I'm unable to find system clock cycle taken to execute various instruction. Is there any tool to compute system clock cycle taken by asm code?

Thanks,

Somdut

  • Hi Somdut,

    In CCS there is a clock you can use to count execution cycles. In CCS v8.x, you enable it from the Debug perspective via the menu: Run -> Clock -> Enable, then Show. You can set a break-point in the code, run to it, then zero the clock by double-clicking on it, then step over or run to another break-point to get the cycles. This is how the individual macros were measured in DPlib.

    In general, C28x instructions are single cycle, but there are pipeline effects and possibly memory wait states to be considered. If you look at the assembly instruction descriptions in Chapter 6 of the CPU & Instruction Set Reference Guide, the execution details of each instruction are described:

    www.ti.com/.../spru430f.pdf

    Regards,

    Richard
  • Hi Richard,

    Thank you for addressing my query.

    Regards,

    Somdut