• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: 關於PWM的寫法
#12
資深會員
資深會員


查看用戶資訊
全橋相移inverter? Converter比較常見, Inverter很少見!!

我忘記4011各PWM之間的Timer是不是獨立, 假設是獨立, 那麼只要Delay xnsec觸發Timer即可.

4011改用dsPIC33F16GS504比較快.
但是相移量若是固定, 可以不用換.

發表於: 2009/4/27 17:12
Thanks,
Edward Lee
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#11
新會員
新會員


查看用戶資訊
會用到相移是因為了達到軟切換而提高效率
應用喔...
就LLC諧振轉換器吧

發表於: 2009/4/27 17:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#10
版主
版主


查看用戶資訊
請問你是做何種應用會用到相移的功能?

發表於: 2009/4/27 16:29
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#9
新會員
新會員


查看用戶資訊
不是很懂耶
可以再說明的仔細一點嗎?
要如何觸發?
我的應用是要做全橋相移inverter
首先我用PWM1L/PWM1H和PWM2L/PWM2H分別
輸出一組互補的PWM
然後我希望達到PWM2H和PWM1L能有相移
用DSPIC30F4011有辦法達到這功能嗎?


謝謝

發表於: 2009/4/27 15:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#8
資深會員
資深會員


查看用戶資訊
首先不是致能輸出, 而是要讓各自的TIMER不同時觸發.
當然最快的是使用SMPS系列dsPIC就直接支援了!!

發表於: 2009/4/27 0:03
Thanks,
Edward Lee
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#7
新會員
新會員


查看用戶資訊
嗯嗯
謝謝
已解決...我耍笨了...我DTCON1竟然設定兩次...第二次還設成0x00
難怪跑不出來@@

請問DSPIC30F4011這科IC有辦法達到相移的功能嗎?
就是我有兩組PWM1和PWM2
而我希望PWM1固定落後PWM2數個us
我嘗試的寫法是先將PWM1致能輸出
然後延遲一段時間再將PWM2致能輸出
但好像行不通@@
請問一下
有什麼方法可以達到相移這個功能
謝謝

發表於: 2009/4/24 18:01
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#6
版主
版主


查看用戶資訊
DTCON2 selects which dead time value is assigned to the active(A) or inactive(I) edge of each generator

Dead-Time 設好時間後還有 DTCON2 要設定給那一組 PWM 輸出要使用 Dead-Time。30F4011 只能設 A 組的延遲時間,B 組就等於 A 組。

參考一下 dsPIC30F Peripheral Module Training 裡的 MCPWM 章節說明。
http://www.microchip.com.tw/modules/w ... glefile.php?cid=4&lid=229

發表於: 2009/4/24 17:21
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#5
新會員
新會員


查看用戶資訊
恩~謝謝
那在請問一下
我是用dspic30f4011
我現在用pwm模組互補輸出,DEAD TIME的部份是不是去設定DTCON1 ?
我現在直接打DTCON1 =0x011E (2*30*33ns=0.99us)
這樣兩組PWM不是應該要有0.99us的deadtime嗎?
可是我現在不管怎麼改DTCON1的值,
兩組PWM輸出都一樣沒有DEAD TIME耶....

可以幫我看看程式碼錯在哪嗎?
謝謝

int main(void)
{
aaa=800;
Init_MCPWM( );

while(1);
}

void Init_MCPWM()
{




IEC2bits.PWMIE = 0 ; // Disable PWM Interrupt !!

IEC2bits.FLTAIE = 0 ;

OVDCON = 0xff00 ;

TRISE = 0xffc0 ;

DTCON1 = 0x011E;

PWMCON2=0x0000;

PWMCON1=0x0011;

PTPER=aaa;

PWMCON1=0x0011;

DTCON1=0x0000;

PDC1=aaa;

PTCON=0xa000;
}

發表於: 2009/4/24 14:51
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#4
版主
版主


查看用戶資訊
PEPTR (週期) 是 15-bit (b0~b14),而 PDCx 是 16-bit。所以你要知道他們之間是用那幾個位元在比較的。看一下 dsPIC30F 的 Family Reference Manual , Section 15 Motor Control PWM 章節裡的說明,或看一下底下的附檔:

PEPTR<14:0> 跟 PDCx <15:1> 來比較,那50% Duty 的輸出是要將 PDCx<15:1> 的值設成 PEPTR 的一半就可以了。

Attach file:



jpg  (0.00 KB)


發表於: 2009/4/24 12:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於PWM的寫法
#3
新會員
新會員


查看用戶資訊
嗯嗯
謝謝
但現在我又有一個問題了
因為我是在作共振轉換器的
需要變頻控制
但我ㄧ改變頻率後PWM的duty cycle就會變了
我需要打出頻率可變而duty cycle都要50%
想請問一下
duty cycle跟PDCx,PETER的關係式
謝謝

發表於: 2009/4/24 11:53
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------