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