你好,請問用XMC1302-200 DAVE 設定P0.2輸出PWM波形,為什麼一直無法輸出PWM波形

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

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager

附件是DAVE 配置的XMC1302-200 SSOP40的工程,P0.2腳輸出PWM波形,一直沒有波形輸出,還要讓能PWM輸出嗎,謝謝解答

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E4%BD%A0%E5%A5%BD-%E8%AF%B7%E9%97%AE%E7%94%A8XMC1302-200-DAVE-%E9%85%8D%E7%BD%AEP0-2%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2-%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E7%9B%B4%E6%97%A0%E6%B3%95%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2/td-p/645920

1 解決方案
Translation_Bot
Community Manager
Community Manager
Community Manager

您好,

我看到您使用的是PWM APP,您只進行了APP的配置,但是程式碼中還缺少了一下指令,例如PWM_Start(&PWM_0)。關於這個APP的使用,您可以點擊'Help - Help Contents -DAVE APPs- PWM'來取得相關的資料,請參考下圖:

Owen_Su_0-1700788429372.pngOwen_Su_1-1700788469723.png

希望這能幫到您。

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E4%BD%A0%E5%A5%BD-%E8%AF%B7%E9%97%AE%E7%94%A8XMC1302-200-DAVE-%E9%85%8D%E7%BD%AEP0-2%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2-%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E7%9B%B4%E6%97%A0%E6%B3%95%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2/m-p/646381

在原始文章中檢視解決方案

0
3 回應
Translation_Bot
Community Manager
Community Manager
Community Manager

您好,

關於XMC1300輸出PWM波形的問題,您可以參考附件的例程,這個例程使用一個通道的CCU4 產生1 路PWM 輸出,同時也配置了週期匹配和比較匹配兩個中斷。我這邊也會幫您看看您的工程。希望這能幫到您。

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E4%BD%A0%E5%A5%BD-%E8%AF%B7%E9%97%AE%E7%94%A8XMC1302-200-DAVE-%E9%85%8D%E7%BD%AEP0-2%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2-%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E7%9B%B4%E6%97%A0%E6%B3%95%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2/m-p/646030

0
Translation_Bot
Community Manager
Community Manager
Community Manager

好的,謝謝

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E4%BD%A0%E5%A5%BD-%E8%AF%B7%E9%97%AE%E7%94%A8XMC1302-200-DAVE-%E9%85%8D%E7%BD%AEP0-2%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2-%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E7%9B%B4%E6%97%A0%E6%B3%95%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2/m-p/646040

0
Translation_Bot
Community Manager
Community Manager
Community Manager

您好,

我看到您使用的是PWM APP,您只進行了APP的配置,但是程式碼中還缺少了一下指令,例如PWM_Start(&PWM_0)。關於這個APP的使用,您可以點擊'Help - Help Contents -DAVE APPs- PWM'來取得相關的資料,請參考下圖:

Owen_Su_0-1700788429372.pngOwen_Su_1-1700788469723.png

希望這能幫到您。

BR,

Owen

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/%E4%BD%A0%E5%A5%BD-%E8%AF%B7%E9%97%AE%E7%94%A8XMC1302-200-DAVE-%E9%85%8D%E7%BD%AEP0-2%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2-%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E7%9B%B4%E6%97%A0%E6%B3%95%E8%BE%93%E5%87%BAPWM%E6%B3%A2%E5%BD%A2/m-p/646381

0