Oct 09, 2019
11:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 09, 2019
11:53 PM
Hello,
I try to use BEMF in my Project to check if and how the Motor is running.
For this I configure the BEMF to call my Interrupt Service Routine.
For testing, I enable all Interrupts with the same Routine.

My Problem is now, that this Routine is never called!!
All Register seems to be correct initialized, but the bits PHx_ZC_STS never changes!

The Interrupts are enabled, too.

What did I wrong!?
Thank you for your help!
Best regards
I try to use BEMF in my Project to check if and how the Motor is running.
For this I configure the BEMF to call my Interrupt Service Routine.
For testing, I enable all Interrupts with the same Routine.
My Problem is now, that this Routine is never called!!
All Register seems to be correct initialized, but the bits PHx_ZC_STS never changes!
The Interrupts are enabled, too.
What did I wrong!?
Thank you for your help!
Best regards
11 Replies
Oct 14, 2019
01:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 14, 2019
01:23 AM
Hi Eto,
our device is using a two stage interrupt handling.
To enable a specific interrupt you also need to enable the specific interrupt node.
Chapter 12 of the TLE987x UM shows which interrupt is linked to witch node.

Did you enable interrupts for node 2?
Best,
Fiz
our device is using a two stage interrupt handling.
To enable a specific interrupt you also need to enable the specific interrupt node.
Chapter 12 of the TLE987x UM shows which interrupt is linked to witch node.
Did you enable interrupts for node 2?
Best,
Fiz
Oct 14, 2019
02:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 14, 2019
02:10 AM
Hi Fiz,
thank you for your answer.
Yes, I have also enabled the Node 2 Interrupt.
Configuration:

Debugger:

The bits PHx_ZC_STS never changes during the Motor runs!
Maybe I have to set another bit I dont't know!?
Best regards
thank you for your answer.
Yes, I have also enabled the Node 2 Interrupt.
Configuration:
Debugger:
The bits PHx_ZC_STS never changes during the Motor runs!
Maybe I have to set another bit I dont't know!?
Best regards
Oct 16, 2019
03:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 16, 2019
03:51 AM
Hi ETO,
is your motor running in open or in closed loop?
Did you try to follow your interrupt routine and check if it is internally routed correctly?
You also need to activate the demagnetisation filter if you want to phase in for the closed loop.
Best,
Fiz
is your motor running in open or in closed loop?
Did you try to follow your interrupt routine and check if it is internally routed correctly?
You also need to activate the demagnetisation filter if you want to phase in for the closed loop.
Best,
Fiz
Oct 20, 2019
09:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 20, 2019
09:39 PM
Hi Fiz,
sorry for my late answer, but I was on a Business trip.
It runs in both loops, first open than closed.
Yes, I checked it a lot of times, but nothing happends!
For testing this, I use the Infinen example BLDC_SENSORLESS_FOC_EXAMPLE_TLE987X.
Thank you for your help.
Best regards
ETO
sorry for my late answer, but I was on a Business trip.
It runs in both loops, first open than closed.
Yes, I checked it a lot of times, but nothing happends!
For testing this, I use the Infinen example BLDC_SENSORLESS_FOC_EXAMPLE_TLE987X.
Thank you for your help.
Best regards
ETO
Oct 27, 2019
11:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 27, 2019
11:24 PM
Hi ETO,
could you sent me your Software in a privat message so I could take a look at it?
Best,
Fiz
could you sent me your Software in a privat message so I could take a look at it?
Best,
Fiz
Nov 04, 2019
11:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 04, 2019
11:05 PM
Nov 07, 2019
12:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 07, 2019
12:56 AM
Hi ETO,
I will look into your software and see if I can find your problem.
Best,
Fiz
I will look into your software and see if I can find your problem.
Best,
Fiz
Nov 20, 2019
10:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2019
10:37 PM
Jan 29, 2020
11:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 29, 2020
11:41 PM
Hi Fiz,
thank you very much for your efforts and sorry for my late answer!
I have no time to try youre example, but above I show my settings and so I don't understand the answer!
Best regards
Eto
thank you very much for your efforts and sorry for my late answer!
I have no time to try youre example, but above I show my settings and so I don't understand the answer!
Best regards
Eto
Oct 08, 2020
04:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 08, 2020
04:47 PM
Hey Fiz,
Is there a BEMF example code using FOC? The attached file is for block.
Best regards,
JP
Is there a BEMF example code using FOC? The attached file is for block.
Best regards,
JP
Sep 27, 2021
11:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 27, 2021
11:25 PM
Fiz wrote:
Hi Eto,
the BEMF comparators were not enabled in your example.
Can you try the example I have attached to see if this works for you?
Best,
Fiz
I was also facing the same issue that the motor was not running in BEMF mode. However, I tried the example code you gave, but in this case, the motor starts on pressing the MON button but stops as soon as it reaches the given reference speed.
Would you please provide a code that makes the motor run continuously at desired speed?
In love with Power Electronics and its applications.