Mar 19, 2020
12:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 19, 2020
12:28 AM
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
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
- Tags:
- IFX
4 Replies
Mar 19, 2020
01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 19, 2020
01:39 PM
Hi Muratrazi! What happens when it does not work ?
Mar 19, 2020
01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 19, 2020
01:56 PM
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.
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.
Mar 26, 2020
05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 26, 2020
05:53 AM
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 ?
What did you want to achieve with this ?
Mar 30, 2020
12:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 30, 2020
12:27 AM
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?