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


Browsing this Thread:   1 Anonymous Users






Re: Oscillator設定問題(app026-3)
#3
新會員
新會員


查看用戶資訊
謝謝版主的指導~我再試看看

發表於: 2009/5/14 21:15
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Oscillator設定問題(app026-3)
#2
版主
版主


查看用戶資訊
PIC24 的 Oscillator 的設定算是簡單的,當你看到 dsPIC33F 的設定時拿才會覺得複雜。先建議你下載 PIC24F Family Reference Manual 裡的第六章詳細看一下 Oscillator 的架構跟說明。
"Fosc=32MHZ 和 Fosc=16MHZ 時該如何設定? " 我想你應該用的是內部 FRC (4 or 8MHz) 輸出後再加上 x4 PLL 功能來得到 16 or 32MHz 的 Fosc 輸出。

在此 Data Sheet 6.8.3 FRC Oscillator with PLL Mode (FRCPLL) 有提到,詳看底下之說明:
The output of the FRC postscaler block may also be combined with the 4x PLL to produce a
nominal system clock of either 16 MHz or 32 MHz. Although somewhat less precise in frequency
than using the Primary Oscillator with a crystal or resonator, it still allows high-speed operation
of the device without the use of external oscillator components.
The FRCPLL mode is selected whenever the COSC bits are ‘001’. In addition, this mode only functions
when the direct or divide-by-2 FRC postscaler options are selected (RCDIV2:RCDIV0 = 000 or 001).


所以設定需為:
COSC2:COSC0: Current Oscillator Selection bits
設定成 : 001 = Fast RC Oscillator with PLL module via Postscaler (FRCPLL)

RCDIV2:RCDIV0: FRC Postscaler Select bits 以選擇 4 or 8MHz 輸出到 x4 PLL

有關其定義自請在參考 H 檔裡的定義。

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


Oscillator設定問題(app026-3)
#1
新會員
新會員


查看用戶資訊
不好意思~我是新手~這問題卡住很久了~一直看不懂data sheet上面寫的意思。

我使用的pic24fj128gb106,我想問的是:Fosc的頻率是多少(是32MHZ嗎?)?

如果是要在Configuration Bits裡面設定,那是設定Primary Oscillator Select和Oscillator Select兩個部份嗎?是否能舉例當Fosc=32MHZ 和 Fosc=16MHZ 時該如何設定?

最後Fcy是等於Fosc/2嗎?

我本來設定為以下:
_CONFIG1(JTAGEN_OFF & ICS_PGx1 & FWDTEN_OFF )
_CONFIG2(FNOSC_PRIPLL & POSCMOD_HS)

發表於: 2009/5/12 15:24
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... ]

教育訓練中心

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