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.

DRV8312-C2-KIT: Instaspin BLDC Motor Control in 28035 device using BUILD LEVEL 2

Part Number: DRV8312-C2-KIT
Other Parts Discussed in Thread: CONTROLSUITE, INSTASPIN-BLDC

Hello,
I am using the DRV8312-C2-Kit and I would like to know, what the following code does:

InstaSPIN_BLDC(&InstaSPIN_BLDC1);

It is used to trigger the counter mod_dir1 and there are some information on In- and Outputs:

typedef struct

{

int32 Vag; // Internal: Vag input -- contains real Va + VaOffset --> referenced to ground (_iq)

int32 Vbg; // Internal: Vbg input -- contains real Vb + VbOffset --> referenced to ground (_iq)

int32 Vcg; // Internal: Vcg input -- contains real Vc + VcOffset --> referenced to ground (_iq)

int32 Van; // Internal: Va to neutral (_iq)

int32 Vbn; // Internal: Vb to neutral (_iq)

int32 Vcn; // Internal: Vc to neutral (_iq)

int32 VaOffset; // VaOffset (_iq)

int32 VbOffset; // VbOffset (_iq)

int32 VcOffset; // VcOffset (_iq)

int32 Int_Threshold; // Input: Integration threshold where a commutate happens (_iq)

Eintbool Vint_lockout; // Internal: Flyback voltage lockout flag

int32 *Vphase; // Internal: Pointer to the Phase voltage to count (_iq)

int32 V_int; // Output: Integrator (_iq)

Eintbool Comm_Trig; // Output: Commutation trigger impulse

Uint16 State; // Input: Values 0 to 5

} INSTASPIN_BLDC;

But I can't find any information on what is happening inside the function. From where does InstaSPIN know the correct time to commutate current?
Is it measuring the BEMF? How does it analyse the Inputs? ...?

Perhaps you can help me here.

Thanks in advance,
Sarah

  • I assume you are using the project here: C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\InstaSPIN_BLDC

    Have you taken a look at the doc here? C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\InstaSPIN_BLDC\~Doc

    Build level 2 is only open loop commutation, so there shouldn't be any closed loop control using the BLDC observer in this step.

    The InstaSPIN_BLDC() API makes a call to the closed source library file. If you want, you can contact your TI field representative and they should be able to help you access the download for the source code that is used in this library

    Sean
  • Hey Sean,

    Thanks for answer.
    I am actually not using Build-Level 2, I just didn't change the overhead, because it was a "Related Question".
    Sorry for causing confusion.

    I have one more question:
    How is it possible to use InstaSPIN_BLDC() API on a not InstaSPIN-enabled microcontroller (F28035)?

    Greetings,
    Sarah

  • The InstaSPIN BLDC library is available in the CCS project, it is only source distributed as a library but does not have any dependency on ROM. InstaSPIN-BLDC is also different than InstaSPIN-FOC. InstaSPIN-FOC requires on-chip ROM to be programmed with a certain library ahead of time, while InstaSPIN-BLDC does not have this limitation (we instead provide the library in the distributed example)

    Sean
  • Okay, Thank you very much