Oct 18, 2019
05:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 18, 2019
05:34 PM
If I use the BEMF demo code to drive my own motor,I want to know whether the macro definition about commutation seqence in the Table.c need to be changed, and how to change them.
- Tags:
- IFX
8 Replies
Oct 30, 2019
04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 30, 2019
04:27 AM
Hello LingXiao,
yes you will have to adapt the the commutaion table according to your motor.
You can get the commutation table from the manufacturer of the motoror you can create it yourself.
You can read back the hall pattern (this of course is only possible if your motor has internal hall sensors) when your are energizing alternately two motor phases until you have all possible 6 hall pattern.
You can also spin the motor with an external load (f.e. another motor) and read back the resulting terminal voltages and determine the pattern for one electric revolution.
In the table you will need to write for the last 3 Bit (CURH) the current Hall pattern (ABC) and in the next 3 Bit (EXPH) the expected pattern.
Meaning the pattern the controller can expect to be the next one after the current pattern, this will ultimately be determined by the spinning direction.
The last 6 Bit are used to control the B6 Bridge, the active (the half bridge that is used to PWM) is set to 11 and the half bridge that that is connected to VDH or GND will be set to 10 or 01.
This depends if your are generating PWM in the high or in the low side of the active bridge.
The third half-bridge is in passive state, meaning it will show the BEMF and help generating your virtual hall pattern.
If you need further help to create your commutation table let me know!
Best,
Fiz
yes you will have to adapt the the commutaion table according to your motor.
You can get the commutation table from the manufacturer of the motoror you can create it yourself.
You can read back the hall pattern (this of course is only possible if your motor has internal hall sensors) when your are energizing alternately two motor phases until you have all possible 6 hall pattern.
You can also spin the motor with an external load (f.e. another motor) and read back the resulting terminal voltages and determine the pattern for one electric revolution.
In the table you will need to write for the last 3 Bit (CURH) the current Hall pattern (ABC) and in the next 3 Bit (EXPH) the expected pattern.
Meaning the pattern the controller can expect to be the next one after the current pattern, this will ultimately be determined by the spinning direction.
The last 6 Bit are used to control the B6 Bridge, the active (the half bridge that is used to PWM) is set to 11 and the half bridge that that is connected to VDH or GND will be set to 10 or 01.
This depends if your are generating PWM in the high or in the low side of the active bridge.
The third half-bridge is in passive state, meaning it will show the BEMF and help generating your virtual hall pattern.
If you need further help to create your commutation table let me know!
Best,
Fiz
Oct 30, 2019
05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 30, 2019
05:43 AM
Hi Fiz,
Thank you! I find the picture as below about my motor's commutation sequnece.Can you give me an example about how to write the code according to this picture.
Best!
Thank you! I find the picture as below about my motor's commutation sequnece.Can you give me an example about how to write the code according to this picture.
Best!
Oct 31, 2019
12:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 31, 2019
12:48 AM
Hi LiangXiao,
could you test the table I have attached with your motor?
Best,
Fiz
could you test the table I have attached with your motor?
Best,
Fiz
Oct 31, 2019
06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 31, 2019
06:54 AM
Hi Fiz,
In the MCMP register the bit sequence should be COUT62 CC62 COUT61 CC61 COUT60 CC60?
So, the half bridge that is connected to GND should be set to 10 not 01, is it right?
Best
In the MCMP register the bit sequence should be COUT62 CC62 COUT61 CC61 COUT60 CC60?
So, the half bridge that is connected to GND should be set to 10 not 01, is it right?
Best
Oct 31, 2019
07:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 31, 2019
07:17 AM
Hi LiangXiao,
Yes the reference for the BEMF sequence was VBAT.
When you are referencing to GND the commution table will look like this:
Best,
Fiz
Yes the reference for the BEMF sequence was VBAT.
When you are referencing to GND the commution table will look like this:
Best,
Fiz
Oct 31, 2019
08:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 31, 2019
08:03 PM
Hi Fiz,
Sorry,I still feel confused.I have two questions:
1、Does the CC6x control the high side mos, and the COUT6x control the low side mos?
2、For example, I think W = COUT62 & CC62 not W = CC62 & COUT62,because in the MCMP register the bit sequence is COUT62 CC62 COUT61 CC61 COUT60 CC60, is it right?
Best
Sorry,I still feel confused.I have two questions:
1、Does the CC6x control the high side mos, and the COUT6x control the low side mos?
2、For example, I think W = COUT62 & CC62 not W = CC62 & COUT62,because in the MCMP register the bit sequence is COUT62 CC62 COUT61 CC61 COUT60 CC60, is it right?
Best
Nov 03, 2019
10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 03, 2019
10:46 PM
Hi LiangXiao,
1.) Yes exactly, plase see the table below from the TLE987x UM.
2.) Yes the first bit is the COUT6x and the second bit the CC6x.
Best,
Fiz
1.) Yes exactly, plase see the table below from the TLE987x UM.
2.) Yes the first bit is the COUT6x and the second bit the CC6x.
Best,
Fiz
Nov 04, 2019
06:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 04, 2019
06:50 PM
Hi Fiz,
Thank you.This problem has been solved.
Thank you.This problem has been solved.