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.

TMS320F2800157: CPU cycles required to execute the instruction

Part Number: TMS320F2800157


Hi Team,

Here's an issue from the customer may need your help:

sTmpUint32_3 = sTmpUint32_1 - sTmpUint32_2;

The above line of code, the compiled assembly code is as follows.

The test found that running these assembly codes requires 6 CPU cycles (by using CCS-->Run-->Clock).

These instructions are all single-cycle instructions. They should only take 4 CPU cycles. Why do they actually take 6 CPU cycles?

0849dc: 761F0262 MOVW DP, #0x262
0849de: 0606 MOVL ACC, @0x6
0849df: 0308 SUBL ACC, @0x8
0849e0: 1E0A MOVL @0xa, ACC

--

Thanks & Regards

  • Hello Yale,

    Can the customer provide an isolated section of code that I can test on the device that I have? The above instruction does not generate the same assembly for me, so I want to be able to verify what the customer is seeing. All I need is the way that the variables are declared and defined.