:::


Browsing this Thread:   1 Anonymous Users






DSPic33EV64GM002-PWM使用疑問
#1
中級會員
中級會員


查看用戶資訊
MCU:DSPic33EV64GM002
想利用這個IC控制BLDC馬達控制器,有感測器120度方波控制
動作是當感測器輸出換相訊號時,只開啟一個H_PWM與一個L_IO

看Datasheet有寫說PWM有獨立型式,
但用MPLAB Code Configurator 下拉是選單沒有獨立的選項
目前選擇Push-Pull Output Mode,
並把三相的PWMxL都關閉PWM功能只做IO使用

我的疑問是,我該怎麼屏蔽另外兩個PWM輸出呢
在DSPIC30F4011的時候有OVDCON可以設定
但在DSPIC33E裡沒有,
那我應該在每次換相時把另外兩相的PWM功能關閉嗎?
上臂PWM:
IOCON3.PENH= 0;
IOCON2.PENH= 0;
IOCON1.PENH= 1;
下臂GPIO:
IO_RB14_SetHigh();
IO_RB12_SetLOW();
IO_RB10_SetLOW();
感覺怪怪的。

發表於: 2019/9/9 16:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
You cannot start a new 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.

[進階搜尋]