• 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: 請問實驗板的RC0和RC1為什麼要接32.768K震盪器
#5
版主
版主


查看用戶資訊
以 PIC 為例,就會使用 Timer1 來設定的計數值為 0x8000 (BCD=32768 )
TMR1_VAL    EQU        .32768            Timer1 設定為 1000ms 中斷一次 


            movlw    
(.65536-TMR1_VAL)/.256    Calcute the MSB value for the Timer1
            movwf    TMR1H
            movlw    
(.65536-TMR1_VAL)%.256    Calcute the LSB value for the Timer1
            movwf    TMR1L

發表於: 2006/12/11 10:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問實驗板的RC0和RC1為什麼要接32.768K震盪器
#4
資深會員
資深會員


查看用戶資訊
請問版主:
我一直很想知道,為什麼是除以0x8000 (32768),又是單晶片的那個部分在除,謝謝。

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


Re: 請問實驗板的RC0和RC1為什麼要接32.768K震盪器
#3
版主
版主


查看用戶資訊
這兩隻腳當 I/O 或是震盪器接腳脽你設定。
因為32768Hz除以0x8000 (32768) 等於一秒。

發表於: 2006/12/8 18:19
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問實驗板的RC0和RC1為什麼要接32.768K震盪器
#2
資深會員
資深會員


查看用戶資訊
做RTC的時鐘源。

發表於: 2006/12/8 0:02
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問實驗板的RC0和RC1為什麼要接32.768K震盪器
#1
資深會員
資深會員


查看用戶資訊
請問APP025實驗板上,18F4520的RC0和RC1為什麼還要再接32.768K震盪器,這兩支IO也可以當成震盪器使用嗎?
謝謝。

發表於: 2006/12/7 13:44
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... ]

教育訓練中心

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