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


Browsing this Thread:   1 Anonymous Users






Re: DSPIC33FJ12MC201設定相關問題
#3
初級會員
初級會員


查看用戶資訊
多謝大大我找到可以用的軟體了=ˇ=YA

發表於: 2009/12/5 11:26
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: DSPIC33FJ12MC201設定相關問題
#2
版主
版主


查看用戶資訊
到這裡下載 Lite 的版本來用:

http://www.microchip.com/stellent/idc ... n534868&page=wwwCompilers

參考的設定要看 H 檔的定義,底下是 dsPIC33FJ128MC506 的設定,使用 8MHz crystal 利用 PLL 倍頻輸出 50MHz 的設定。MC_PWM 的輸出腳被設成一般的 I/O 腳功能。
// External Oscillator
_FGS (GSS_OFF GCP_OFFGWRP_OFF);    // Disable Code Protect
_FOSCSEL (FNOSC_PRIPLL  IESO_OFF);    // Primary (XT, HS, EC) Oscillator with PLL
_FOSC (FCKSM_CSDCMD OSCIOFNC_OFF POSCMD_HS);    // 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_ON HPOL_ON LPOL_OFF FPWRT_PWR1); // Disable PWM Output, Turn off the power-up timers.
 
_FICD JTAGEN_OFF ICS_PGD1);        // Disable JTAG, communicate on PGC1/EMUC1 and PGD1/EMUD1


//******************************************************************//
//主程式//
//******************************************************************//
int main()
{
// Configure Oscillator to operate the device at 50Mhz/25MIPS

// Fosc= Fin * M /(N1*N2) 
// Fosc= 8.0MHz * 25/(2*2) = 50 Mhz  

    
PLLFBD 23;                // M=23, PLLFBD = M - 2 = 23
    
CLKDIVbits.PLLPOST 0;        // N2=2
    
CLKDIVbits.PLLPRE 0;        // N1=2
:
:

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


DSPIC33FJ12MC201設定相關問題
#1
初級會員
初級會員


查看用戶資訊
1.DSPIC33FJ12MC201這顆晶片如過要用C語言撰寫,那編譯器要用哪一個版本才可以(要到哪裡下載)
2.我程式用C撰寫一開使可以設定成這樣嗎
_FOSC(CSW_FSCM_OFF & XT_PLL16); _FWDT(WDT_OFF); _FBORPOR(PBOR_ON & MCLR_EN); _FGS(CODE_PROT_OFF);

發表於: 2009/12/3 0:00
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... ]

教育訓練中心

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