Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

In the FOC project of XMC4700F-100K1536 microcontroller generated by DAVE APP, why can't the 6-way PWM pin configuration be consistent with my actual project now? In the FOC project that I have already written with registers, the pins are configured as follows

The upper bridge is: P0.9 P0.4 P0.10

The lower bridges are: P2.6 P0.1 P2.7

Our current hardware PCB are in accordance with the pin this cloth board, can run normally, but now because of other functional issues, the need to use DAVE to regenerate the project, but found that the use of DAVE APP configuration of the pin how to set up the pin can not be compatible with these pins, DAVE's PIN pin assignment program, all the arrangements do not have a P0.4 It's the 98 foot this app, what's going on please?

 

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/td-p/739331

0 Likes
1 Solution
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello,

I have confirmed from my side that CCU8 can be configured in two ways when doing 3-phase motor control:

One is to use 3 channels of a CCU8 unit to control a 3-phase motor, with each channel outputting a pair of PWMs, so that each channel can be used in asymmetric mode.

Another is to use 2 channels, one outputting 2 pairs of PWMs and one outputting a pair of PWMs, so that more motors can be paralleled with only two timers.

Owen_Su_0-1713768736777.png

But the module about PMSM_FOC in our DAVE APP is encapsulated, in which the configuration is the first way, that is, each channel outputs a pair of PWM, so when we do the pin configuration if we select P0.4 there is no way to select P0.9, and if we select P0.9, there is no way to select P0.4, because P0.4 is CCU80.OUT10, P0.9 is CCU80.OUT12.

If you have already completed the design of the PCB, then you can only suggest that you choose to write in code. We apologize for the inconvenience and thank you for your understanding and support.

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/744016

View solution in original post

0 Likes
15 Replies
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

This is the FOC project generated by DAVE's APP, the microcontroller is using XMC4700F-100K1536

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/739372

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello,

Are you using the APP PMSM_FOC? The PWM_SVM_0 in this APP can be selected to P0.4.

Owen_Su_0-1713172773190.png

If you are using PWM for this APP, remember to select CCU8 first and ASSIGN to this pin afterward.

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/739412

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello, in the DAVE CE project for pin configuration, I am using that pin configuration for pin assignment, but can't even select P0.4, the attached figure is the selection of six pins, none of them have P0.4, may I ask you this is how the interface is tuned out?

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/739435

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello,

I added the configuration as per your diagram and got the following result which you can refer to:

Owen_Su_1-1713231308957.png

You can try to select CCU8 instance after changing PWM_BC to PWM.

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/739815

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Attachment is my choice of app

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/741181

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello,

I tried another new project from my side and all of them are able to select this pin, so I suggest you from this side:

1) Check if the version of DAVE is the latest, if not update DAVE to version 4.5.

2) There are too many APPs in your project at the moment, and there may be other APPs occupying or conflicting with them, so we suggest you create a new project, add only PMSM_FOC and another set of PWMs, and after that, configure the pins of these two APPs first, and see if they can be configured to P0.4.

3) The attached code only adds these two APPs, I tried it is able to configure to this pin, the other CCU configurations you can modify based on this.

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/741239

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

PWM_CCU8 generates complementary PWM signals a little easier.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/741243

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello, all deleted APP, re-added APP, now can appear P0.4 this pin effective, but now the phenomenon still can not be and I now have the actual hardware project consistent, I now have the hardware project pins are three on the bridge are P0.9 P0.4 P0.10 The corresponding lower axle is P2.6 respectively. P0.1 P2.7 But the pin configuration of DAVE CE can't be configured to this combination, what is the reason for this? The attached picture shows my current PIN pin configuration.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/743705

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello,

Your attached image didn't upload, you can upload it again.

Also you are talking about inconsistent phenomena, can you share your test results?

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/743755

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello, I attach the zip of this DAVE project, the picture is the phenomenon of each combination, that is, I can not be combined as a pair of my table P0.9 and P2.6, P0.4 and P0.1 pair, P0.10 and P2.7 pair! With this combination, attachments can't be uploaded in zip, only images!

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/743805

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

And I need to be so, the attached map, U V W does not necessarily correspond to this, but to P0.9 and P2.6 a pair of P0.4 and P0.1 a pair of P0.10 and P2.7 a pair of such a pair of complementary PWM pins, because I used to be set up in the register is such a hardware counterparts can run normally, just now need to be replaced with the DAVE CE project!

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/743850

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello, the version on my side is 4.5 I only use one FOC APP now, it's the same, can't configure P0.4, attached is my DAVE project, please check it, thanks, I'll open your project to delete all APPs, and then add FOC again! APP are fine and can be configured for P0.4 But my project doesn't work. I don't know why.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/741323

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello, still can't, you said to change PWM_BC to PWM, this PWM refers to which PWM, I choose the GENERAL PURPOSE inside the PWM, still no p0.4 this foot!

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/741166

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Or send me this DAVE project you configured to configure the CCU8 with four complementary pairs of PWM outputs, since the APP FOC is three pairs of PWMs, with an extra pair, since the extra pair of PWMs is used to drive another individual motor, thanks!

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/741222

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Hello,

I have confirmed from my side that CCU8 can be configured in two ways when doing 3-phase motor control:

One is to use 3 channels of a CCU8 unit to control a 3-phase motor, with each channel outputting a pair of PWMs, so that each channel can be used in asymmetric mode.

Another is to use 2 channels, one outputting 2 pairs of PWMs and one outputting a pair of PWMs, so that more motors can be paralleled with only two timers.

Owen_Su_0-1713768736777.png

But the module about PMSM_FOC in our DAVE APP is encapsulated, in which the configuration is the first way, that is, each channel outputs a pair of PWM, so when we do the pin configuration if we select P0.4 there is no way to select P0.9, and if we select P0.9, there is no way to select P0.4, because P0.4 is CCU80.OUT10, P0.9 is CCU80.OUT12.

If you have already completed the design of the PCB, then you can only suggest that you choose to write in code. We apologize for the inconvenience and thank you for your understanding and support.

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E8%AF%B7%E9%97%AE%E7%94%A8DAVE-APP%E7%94%9F%E6%88%90%E7%9A%84XMC4700F-100K1536-%E5%8D%95%E7%89%87%E6%9C%BAFOC%E5%B7%A5%E7%A8%8B%E4%B8%AD-%E8%BF%9B%E8%A1%8C6%E8%B7%AFPWM%E7%AE%A1%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%B7%A5%E7%A8%8B%E6%97%A0%E6%B3%95%E4%B8%80%E8%87%B4/m-p/744016

0 Likes