请教关于用XMC4700-F100K CCU8输出四对互补PWM的设置

公告

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

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

cross mob
lock attach
Attachments are accessible only for community members.
yueer666
Level 3
Level 3
10 questions asked 25 sign-ins 25 replies posted

请问,我现在用XMC4700-F100K的CCU8驱动一个三相无刷电机,(对应管脚是P0.9  P0.4  P0.10       P2.6  P0.1  P2.7)                      另外还用CCU8的第四对互补PWM输出一对互补的PWM(对应管脚是P0.6和P0.11),附件是IO的设置和CCU8的设置,为什么现在如果不复用使能P0.11(就是不设置这个函数 Control_P0_11(OUTPUT_PP_AF3, MEDIUM);)    P0.6可以输出PWM信号,但是一旦复用使能P0.11(设置了 Control_P0_11(OUTPUT_PP_AF3, MEDIUM);)   那么P0.6  就没有了PWM输出,  P0.11一直没有互补的PWM输出呢

0 点赞
1 解答
lock attach
Attachments are accessible only for community members.
Owen_Su
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

您好,

    您可以参考附件来修改相关的配置,主要是在IO.c中增加引脚的配置,然后在CCU80.c中增加CC83的配置,因为P0.6和P0.11对应的是CCU80.OUT30/31。附件中的代码已经测试过了,引脚能够输出对应的PWM信号。希望这能帮到您。

Owen_Su_0-1701153616401.pngOwen_Su_1-1701153630935.png

BR,

Owen

在原帖中查看解决方案

0 点赞
2 回复数
Owen_Su
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

您好,

    我这边进行测试了之后尽快给您回复,感谢您的理解与支持。

BR,

Owen

0 点赞
lock attach
Attachments are accessible only for community members.
Owen_Su
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

您好,

    您可以参考附件来修改相关的配置,主要是在IO.c中增加引脚的配置,然后在CCU80.c中增加CC83的配置,因为P0.6和P0.11对应的是CCU80.OUT30/31。附件中的代码已经测试过了,引脚能够输出对应的PWM信号。希望这能帮到您。

Owen_Su_0-1701153616401.pngOwen_Su_1-1701153630935.png

BR,

Owen

0 点赞