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

Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17857
Level 3
Level 3
First like received
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
0 Likes
4 Replies
Elettrograffiti
Employee
Employee
Hi Muratrazi! What happens when it does not work ?
0 Likes
User17857
Level 3
Level 3
First like received
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.
0 Likes
Elettrograffiti
Employee
Employee
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 ?
0 Likes
User17857
Level 3
Level 3
First like received
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?
0 Likes