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.

TMS320F2800137: need help to understand instasipn solution

Part Number: TMS320F2800137

Hello,team.

I am trying to understand the demo code of instaspin source code. 

So far, I have two questions:

Question 1: 

Why is there a #if defined(MOTOR1_FAST) && defined(MOTOR1_ESMO) // (OK<->OK) case in the isr program? Is it correct that if only the MOTOR1_FAST is defined in predefine, the code from line 1652 to line 2045 will be blocked?

Question 2: Can you explain the meaning of the following two define?#if !defined(_SIMPLE_FAST_LIB) && !defined(_HSWFREQ_EN)

Bian

  • Why is there a #if defined(MOTOR1_FAST) && defined(MOTOR1_ESMO) // (OK<->OK) case in the isr program? Is it correct that if only the MOTOR1_FAST is defined in predefine, the code from line 1652 to line 2045 will be blocked?

    The project can support multiple estimator, and enable run the motor with FAST and eSMO at the same time.

    You may take a look at the lab user's guide for these definitions.

    Universal Project and Lab User’s Guide: https://www.ti.com/lit/ug/spruj26/spruj26.pdf

    Question 2: Can you explain the meaning of the following two define?#if !defined(_SIMPLE_FAST_LIB) && !defined(_HSWFREQ_EN)

    It's only for test for the other projects, you can ignore these definitions.