• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   1 Anonymous Users






Re: 關於dsPIC30與dsPIC33的Configuration Bit Setting問題
#2
版主
版主


查看用戶資訊
之前有使用Crystal +PLL 的用法,詳細還是要看H 檔的描述及 MPLAB IDE 下的 configuration setting 下所允許的選項組合。
// External Oscillator
_FOSCSEL(FNOSC_PRIPLL IESO_OFF);        // Primary (XT, HS, EC) Oscillator with PLL
_FOSC(FCKSM_CSDCMD OSCIOFNC_OFF  POSCMD_XT);    // Clock Switching and Fail Safe Clock Monitor is disabled
                // OSC2 Pin Function: OSC2 is Clock Output

_FWDT(FWDTEN_OFF);                                     // Watchdog Timer Enabled/disabled by user software
                // (LPRC can be disabled by clearing SWDTEN bit in RCON register
_FPOR(PWMPIN_OFF HPOL_ON LPOL_OFF FPWRT_PWR1);                  // Turn off the power-up timers.
_FGS(GCP_OFF);                                        // Disable Code Protection


int main(void)

{

// Fosc= Fin*M/(N1*N2), Fcy=Fosc/2
// Fosc= 8.0M * 25/(2*2)=20 Mhz for 8MHz input clock
    
PLLFBD 23;                // M=23, PLLFBD = M - 2 = 23
    
CLKDIVbits.PLLPOST 0;        // N2=2
    
CLKDIVbits.PLLPRE 0;        // N1=2
:
:

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


關於dsPIC30與dsPIC33的Configuration Bit Setting問題
#1
初級會員
初級會員


查看用戶資訊
請問
在dsPIC30中
_FOSCSEL(FRC_PLL)
_FOSC(CSW_FSCM_ON&FRC_HI_RANGE&OSC2_CLKO)
_FPRO(PWRT_128)
_FGS(CODE_PORT_OFF)
_FBS(BSS_NO_FLASH)

以上的設定若要改到dsPIC33中要如何更改,據我了解這兩個的設定模式是不一樣的,以我所找到的更改如下

_FOSCSEL(FNOSC_FRCPLL)
_FOSC(FCKSM_CSECME&FRC_HI_RANGE&OSC2_CLKO)<=後面兩項找不到相對應的
_FPOR(FPWRT_PWR128)
_FGS(CODE_PROT_OFF)<=找不到相對應的
_FBS(BSS_NO_FLASH)

有沒有相關的資料能讓我對照的
謝謝

發表於: 2009/4/18 19:19
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... ]

教育訓練中心

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