infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 5 of 5

Thread: Switching h bridge of tle987x evalboard on and off for 5 seconds

  1. #1
    Intermediate Intermediate muratrazi is on a distinguished road
    Join Date
    Aug 2019
    Posts
    29
    Points
    272.5

    Switching h bridge of tle987x evalboard on and off for 5 seconds

    Hello,

    I use the below code to switch h bridge of tle987x evalboard on and off for all nfets every 5 seconds. Sometimes it works and sometimes do not. What is the problem?

    int main(void)
    {
    /************************************************** ***************************
    ** initialization of the hardware modules based on the configuration done **
    ** by using the IFXConfigWizard **
    ************************************************** ***************************/
    TLE_Init();
    //Emo_Init();
    BDRV_Init();


    for (;
    {
    /* Service watch-dog */
    (void)WDT1_Service();
    BDRV_Set_Channel(HS1, Ch_On);
    BDRV_Set_Channel(HS2, Ch_On);
    BDRV_Set_Channel(HS3, Ch_On);
    BDRV_Set_Channel(LS1, Ch_On);
    BDRV_Set_Channel(LS2, Ch_On);
    BDRV_Set_Channel(LS3, Ch_On);
    Delay_us(5000000);
    BDRV_Set_Channel(HS1, Ch_Off);
    BDRV_Set_Channel(HS2, Ch_Off);
    BDRV_Set_Channel(HS3, Ch_Off);
    BDRV_Set_Channel(LS1, Ch_Off);
    BDRV_Set_Channel(LS2, Ch_Off);
    BDRV_Set_Channel(LS3, Ch_Off);
    Delay_us(5000000);

    }
    } /* End of main() */


    kind regards

  2. #2

    Infineon Employee
    Infineon Employee
    Elettrograffiti is on a distinguished road
    Join Date
    Oct 2019
    Posts
    14
    Hi Muratrazi! What happens when it does not work ?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Intermediate Intermediate muratrazi is on a distinguished road
    Join Date
    Aug 2019
    Posts
    29
    Points
    272.5
    hi!

    when it works i can see supply voltage if i measure voltage between phase 1 and phase 2. but when it does not work there is no voltage between the phases.

  4. #4

    Infineon Employee
    Infineon Employee
    Elettrograffiti is on a distinguished road
    Join Date
    Oct 2019
    Posts
    14
    wait a moment... I did not see something: you are trying to turn on the high side and low side mosfet on each phase by using the SDK function BDRV_set_channel (xxx) ...this will never work out because it will cause a shoot through from the VBAT to GND. If you have the cross conductino protectino enabled, then your mosfet might be still working, otherwise you might have killed them already.
    What did you want to achieve with this ?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #5
    Intermediate Intermediate muratrazi is on a distinguished road
    Join Date
    Aug 2019
    Posts
    29
    Points
    272.5
    My NMOS do not switch from zero to one or vice versa. I was trying to write a program to test switching. As i understand, , i must have resistances in place of bldc motor. Then i think i can test my nmos?

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.