Re: dspic30f4012的PWM
|
||||
---|---|---|---|---|
新會員
|
已經解決了
謝謝版主
發表於: 2008/1/27 22:09
|
|||
|
Re: dspic30f4012的PWM
|
||||
---|---|---|---|---|
版主
|
1. 自由運行模式 : 有兩種 Free-Running 模式,要設定 PTCON 暫存器 <PTMOD<1:0>。<0.0> 為起始邊緣靠齊的 Free-Running Mode ,<1.0> and <1.1> 為中間靠齊的模式。
2. 三個 PWM輸出(PWM1L,PWM2L,PWM3L) : 分別由三個 Duty Control Register (PDC1, PDC2, PDC3) 來設定的。週期則是由 PTPER Regiter 所設定的。PWM 的計數暫存器 PTMR。 重要的一點是 PDCx 的值定要小於 PTPER 值,由於 PTPER 與 PDCx 的位元並不是對偁的,所以要注意比較的位元為何? PDCx<15:1> 需小於 PTPER<14:0> 其 PWM Duty 最高解析度為16-bit。 3. 有關 MCPWM 的使用要參考 PIC30F Family Reference manual 的第十五章 Motor Control PWM 的說明,上美國網站查詢一下。台灣網頁在右邊的檔案下載裡也有講義及練習可以下載 : dsPIC30F Peripheral Module - Motro Control PWM 講義與教材。 http://www.microchip.com.tw/modules/mydownloads/viewcat.php?cid=4
發表於: 2008/1/7 10:10
|
|||
|
dspic30f4012的PWM
|
||||
---|---|---|---|---|
新會員
|
請問一下dspic30f4012的PWM功能在 自由運行模式時 要怎樣同時 使用3個PWM(PWM1L,PWM2L,PWM3L)的輸出呢?該設定哪些暫存器呢?或是該使用哪些模式呢?
發表於: 2008/1/6 22:54
|
|||
|