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


Browsing this Thread:   1 Anonymous Users






Re: 再深入一問
#4
版主
版主


查看用戶資訊
these first 4 instructions are not required if the internal oscillator is not used
main
        call    0x3FF             
retrieve factory calibration value
        bsf     STATUS
,RP0        set file register bank to 1 
        movwf   OSCCAL            
update register with factory cal value 
        bcf     STATUS
,RP0        set file register bank to 0

參考一下 Microchip 所提供的例子:
C:\Program Files\Microchip\MPASM Suite\Template\Code

Call 0x3FF 是讀取內部RC震盪校正值後存入 OSCCAL 暫存器就可以了。

發表於: 2008/3/24 9:18
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


再深入一問
#3
新會員
新會員


查看用戶資訊
謝謝版主分享 , 但不是還要再程式的哪個地方加入時間校準的程式嗎? 我是那一個部份不了解啦 ~ 真不好意思沒說清楚 ~

希望版主能教教我這一部分(希望能說明清楚一點...的啦....感激不盡...)

發表於: 2008/3/22 22:36
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 16F630 如何設定內部震盪呢? 因為不想外接震盪器
#2
版主
版主


查看用戶資訊
加入這一段再程式裡:
list      p=16F630           ; list directive to define processor
    
#include <p16F630.inc>        ; processor specific variable definitions

    
errorlevel  -302              suppress message 302 from list file

    __CONFIG   _CP_OFF 
_CPD_OFF _BODEN_OFF _MCLRE_ON _WDT_OFF _PWRTE_ON _INTRC_OSC_NOCLKOUT

其定義的文字,在 p16f630.inc 底下有描述:
;==========================================================================
;
;       
Configuration Bits
;
;==========================================================================

_CPD                         EQU     H'3EFF'
_CPD_OFF                     EQU     H'3FFF'
_CP                          EQU     H'3F7F'
_CP_OFF                      EQU     H'3FFF'
_BODEN                       EQU     H'3FFF'
_BODEN_OFF                   EQU     H'3FBF'
_MCLRE_ON                    EQU     H'3FFF'
_MCLRE_OFF                   EQU     H'3FDF'
_PWRTE_OFF                   EQU     H'3FFF'
_PWRTE_ON                    EQU     H'3FEF'
_WDT_ON                      EQU     H'3FFF'
_WDT_OFF                     EQU     H'3FF7'
_LP_OSC                      EQU     H'3FF8'
_XT_OSC                      EQU     H'3FF9'
_HS_OSC                      EQU     H'3FFA'
_EC_OSC                      EQU     H'3FFB'
_INTRC_OSC_NOCLKOUT          EQU     H'3FFC'
_INTRC_OSC_CLKOUT            EQU     H'3FFD'
_EXTRC_OSC_NOCLKOUT          EQU     H'3FFE'
_EXTRC_OSC_CLKOUT            EQU     H'3FFF'

發表於: 2008/3/21 11:15
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問 16F630 如何設定內部震盪呢? 因為不想外接震盪器
#1
新會員
新會員


查看用戶資訊
如標題

發表於: 2008/3/20 14:23
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... ]

教育訓練中心

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