Browsing this Thread:
1 Anonymous Users
|
Re: 請教有關dsPIC30F2020的PWM問題
|
|
新會員
Joined
: 2007/12/5 23:07 最後登入時間
: 2009/8/27 10:20
Group:
註冊會員
Level : 2 HP : 0 / 28 MP : 3 / 1387 EXP : 12
|
問題已經找到了!!
Configuration Bits的OSC mode 要改為International Fast RC (FRC) w/ PLL就可以正常運作了!!
發表於: 2008/3/2 15:27
|
|
|
請教有關dsPIC30F2020的PWM問題
|
|
新會員
Joined
: 2007/12/5 23:07 最後登入時間
: 2009/8/27 10:20
Group:
註冊會員
Level : 2 HP : 0 / 28 MP : 3 / 1387 EXP : 12
|
大家好: 首先dsPIC30F2020中有pwm1~4,先前學生試過了pwm1~3都沒有問題,但是現在改用pwm4卻沒有輸出了, 但是設定的方式跟先前一樣,就不知道原因還在了。 設定如下:
void Init_PWM4(void) { PTCON = 0x0400 ; PTPER = PWM_Period ; PWMCON4 = 0x0081 ; FCLCON4 = 0x0003 ; PDC4 = 0x0008 ; IOCON4 = 0x8000 ; PTCONbits.PTEN = 1 ; }
先前的pwm1~3都是相同的設法,但是現在pwm4卻沒有輸出,不知原因為何?
發表於: 2008/3/1 10:34
|
|
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.