公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 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

好好,

我使用的是xmc4104的芯片,ccu4和ccu8的pwm移相怎么控制相位角度呢? 以及trap功能如何使用

此致敬意

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/td-p/740345

0 点赞
1 解答
lock attach
Attachments are accessible only for community members.
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

嗨,SkyZhang、

通过CCU8的不对称值班功能可以实现phase shift的角度,需要配置好CR1和CR2的value。参见附件P31-34页。

Alice_Wang_1-1713323304430.png

 

Alice_Wang_0-1713323187881.png

 

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/m-p/740858

在原帖中查看解决方案

0 点赞
6 回复数
lock attach
Attachments are accessible only for community members.
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

嗨,SkyZhang、

通过CCU8的不对称值班功能可以实现phase shift的角度,需要配置好CR1和CR2的value。参见附件P31-34页。

Alice_Wang_1-1713323304430.png

 

Alice_Wang_0-1713323187881.png

 

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/m-p/740858

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

ccu4的slice0和slice1,该如何操作,有没有ccu4的移相例程和trap例程呢?

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/m-p/740887

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

1)你们是用来做什么应用?如果是移相拓扑的数字电源应用,应该用CCU8来做pwm控制。CCU4只是在pwm实在不够用的情况下才用,CCU4也可以用做内部比较器的阈值选择(固定一个占空比,用于调节在什么阈值下进行保护)。 CCU4没有上一帖所示的不对称边缘对齐模式,建议改用功能更强大的CCU8。

2)使用参考这个贴:

如何使用陷阱

 

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/m-p/741056

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

这个 Code example 里也可以看到 trap 在 CCU8 的用法。

使用 XMC4200 的降压电压控制模式软件示例

 

 

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/m-p/741240

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

1)ccu8的四个slice都用到了,因为ccu8的trap引脚不够,所以才用的ccu40,不需要pwm互补,只需要移相和trap功能,ccu40可以满足吧

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/m-p/741326

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

1)如上文所述,CCU4 没有方便的不对称值(Asymmetrical edge aligned mode)功能。CCU8 用此功能就很好实现移相。移相一般不变占空比,所以 CR2-CR1等于50%占空比。

2)trap功能你可以定义一个IO接到比较器输出,然后同步连接到所有需关断的PWM。

Dave的配置如图:(要将IO口的上升沿设置为pwm的Event 2事件,用来封波)

这样就可以用1个IO同时rap多路pwm

Alice_Wang_0-1713777107717.png

 

 

管脚分配,用 Dave 工具可以方便查看可用的管脚:

Alice_Wang_2-1713777742624.png

 

 

 

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/pwm%E7%A7%BB%E7%9B%B8%E6%80%8E%E4%B9%88%E6%8E%A7%E5%88%B6%E8%A7%92%E5%BA%A6/m-p/744163

0 点赞