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.

TMDSHVMTRINSPIN: howto apply to my custom design?

Part Number: TMDSHVMTRINSPIN
Other Parts Discussed in Thread: TMDSCNCD28069MISO, , TMS320F28069M, TIDM-1003

Dear TI Experts:

For the TMDSHVMTRINSPIN with a TMDSCNCD28069MISO control card, we can find many InstaSpin projects provided by TI.

For a PMSM FOC control with 3 Rshunts, we can first design our inverter h/w circuit for the targeted PMSM.

After I have tried the project files with TMDSHVMTRINSPIN in the CCS, then I will apply the project files (changing some definitions in user.h) in LaunchPad TMS320F28069M connected with the above inverter circuit.

Is the above procedure feasible?

In this manner, what are the important I/O pins in LaunchPad TMS320F28069M we should focus on?  Then we can make the InstaSpin projects executable.

Do we only need to care about the following I/O pins?

Inverter drive PWM :
PWM1-L 
PWM1-H
PWM2-L
PWM2-H
PWM3-L
PWM3-H
Voltage sense :
Vfb-Bus
Vfb-U
Vfb-V
Vfb-W
Current Sense :
Ifb-U 
Ifb-V
Ifb-W
Don't care:
Ifb-ISum (used in TMDSHVMTRPFCKIT, but nor used in InstaSpin projects, right?)
Does TI provide some information for the above problem to let users make a custom design?
I am so eager to hear from you!
Many thanks!
Tang Han
 
  • Generally, you just need to consider these signals include six PWM output for gate drive and three phases current, three phases voltage, dc bus voltage sampling from MCU side.

    You may have a look at the instaSPIN user's guide (SPRUHJ1G), especially chapter 5 and 8 that have a detailed description of your questions.

  • Dear Expert Yanming:

    Thanks for introducing chapters 5 and 8 in user's guide (SPRUHJ1G).

    In sec.5.2.2 (P.229) about current feedback polarity, I think it's very important. About the topic, Is sec.5.2.2 all enough?

    I found someone mentioned the following command in hal.h should also be modified.

           bias += OFFSET_getOffset(obj->offsetHandle_I[cnt]); (in HAL_updateAdcBias function)

    OR  bias -= OFFSET_getOffset(obj->offsetHandle_I[cnt]);

    In fact, I hope Sec.5.2.2 is enough for the topic. I really need your confirmation.

    On the other hand, the Lab03a of InstaSPIN projectst has the ability to define the I_x_offset (x=A, B, or C) value for the users.

    Does it mean if the custom design uses positive current feedback circuit, Lab03a will be smart to obtain negative I_x_offset value for us?

    But it will not modify commands in hal.h for us, right?  The users have to modify it by themselves, right?

    Thanks for your professional reply~

    Wish you the best!

    Tang Han

  • Also,I found the following QA:
    CCS/DRV8312-69M-KIT: I_A_offset neagtive values
    e2e.ti.com/.../2126799
    #define   I_A_offset    (-0.8679359555)
    #define   I_B_offset    (-0.8716403842)
    #define   I_C_offset    (-0.8716837168)

    But I am so confused when the read the project file for TIDM-1003. The I_X_offset values for X=A, B, or C, in user.h are all positive values.
    According to the schematic circuit of TIDM-1003, the OPA belongs to "positive" feedback, and the I_X_offset values for X=A, B, or C, should be negative.
    Who could kindly reply it to me?
    Thank you so much!
    Tang Han
  • As replied to you in your other post, the project enables the offsets recalibration always, didn't use the offset settings in user.h at all.