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.

Where should i charge bootstrap caps. initially in InstaSPIN FOC

Other Parts Discussed in Thread: TMS320F28026F

Hello,

I'm using instaspin FOC with TMS320F28026F microcontroller in a 3 phase induction motor controller. In high side IGBT drivers i'm using bootstrap circuits. Here i have to charge the bootstrap capacitors initially before starting the InstaSPIN Controller. Where should i do this initial charge in forever loop. Additionally i need a certain time to charge these caps. So do i have a ready to use timer for this certain time.

  • I would probably do it right before the for loop if this is a one time activity.

    you would need to add in your own SW timer if you need to insure a certain amount of time before continuing.

    As an FYI, be careful using the 26F instead of the 27F. The memory available to you is half the size and it fills up very quickly as you start adding your own software.
  • Thanks for your reply Chris,
    I'm working on proj_lab02b. Let me tell the problem on the software:
    for(;;)
    {
    while(!(gMotorVars.Flag_enableSys)); // This loop'll end after setting system flag
    / * possible charge loop */
    while(gMotorVars.Flag_enableSys)
    {
    CTRL_Obj *obj = (CTRL_Obj *)ctrlHandle;
    gCounter_updateGlobals++;
    if(CTRL_isError(ctrlHandle))
    {
    CTRL_setFlag_enableCtrl(ctrlHandle,false);
    gMotorVars.Flag_enableSys = false;
    HAL_disablePwm(halHandle);
    }
    else
    {
    bool flag_ctrlStateChanged = CTRL_updateState(ctrlHandle);
    CTRL_setFlag_enableCtrl(ctrlHandle, gMotorVars.Flag_Run_Identify); // This is enable Controller flag
    ...
    ...

    As you see above if i write the charge the caps. software at the line shown as /* possible charge loop */ then the capacitors'll be charged here. But if i won't enable controller flag then the capacitors'll decharge in not more than 1 second.
    When i set the controller flag with this condition the controller will start with empty caps. So i think it musn't be charged at the beggining of the loop. I think it must be charged all the time immediately before motor is started to be powered.

    Does anyone have an idea about where to do it?