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


Browsing this Thread:   3 Anonymous Users






Re: PIC18F4520 振盪器相關設定問題
#4
版主
版主


查看用戶資訊
名詞統一一下,EC Mode 接的叫做 Oscillator 與 Crystal 是不一樣的名稱,容易弄混。澄清一下。

設成 EM Mode on RA6 應該可以在 RA6 量到輸出的。Data sheet 是這樣寫的。

發表於: 2008/12/16 16:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F4520 振盪器相關設定問題
#3
新會員
新會員


查看用戶資訊
設定EC時外部有接4Mhz Crystal且JP3有closed

抱歉可能原文中沒有寫得很清楚

**edit
真的是太笨了, EC時忘了重設baud rate
但不知為何量不出波形

內部設定還在努力中



**edit
問題均已解決了,謝謝
可能是原本寫的inline asm的OSCCON/OSCTUNE有問題
用C把該設的幾個bits個別重寫好就好了

發表於: 2008/12/16 13:21

Edited by cookies on 2008年12月16日 14:01:56
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F4520 振盪器相關設定問題
#2
版主
版主


查看用戶資訊
"但config 設定EC時 RA6 無波形出來, 內部的clock也不對(RS232無法輸出)"

EC Mode 必須外接震盪器,EC Mode 無法使用Crystal 震盪的。

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


PIC18F4520 振盪器相關設定問題
#1
新會員
新會員


查看用戶資訊
初學者想請教關於振盪器設定的問題

使用APP001 及 18F4520
ICD2為programmer
JP3 closed
JP1/JP2 opened
外接4Mhz crystal
config 設定HS PLL時 運作無誤(RS232,LCD均正常)

但config 設定EC時 RA6 無波形出來, 內部的clock也不對(RS232無法輸出)

嘗試使用內部crystal
有移除外接的crystal, 且JP123均斷開
config 設定為internal block
OSCCON
OSCTUNE 也都有設定為4MHz PLL
但時脤還是不對

請問是否有我沒有考慮到的地方而無法排除OSC設定問題?

謝謝大家

發表於: 2008/12/16 12:35

Edited by cookies on 2008年12月16日 12:57:45
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... ]

教育訓練中心

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