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


Browsing this Thread:   1 Anonymous Users






Re: 10F206 時脈誤差問題
#3
版主
版主


查看用戶資訊
12F200 標準使用較正值的寫法:
list      p=10F200            ; list directive to define processor
    
#include <p10F200.inc>        ; processor specific variable definitions

    
__CONFIG   _MCLRE_OFF _CP_OFF _WDT_OFF

'__CONFIG' directive is used to embed configuration word within .asm file.
The lables following the directive are located in the respective .inc file
See respective data sheet for additional information on configuration word.




;***** 
VARIABLE DEFINITIONS
temp    EQU     0x10        
;example variable definition



;**********************************************************************
    
ORG     0xFF             processor reset vector

Internal RC calibration value is placed at location 0xFF by Microchip
; as a movlw kwhere the k is a literal value.

    
ORG     0x000             coding begins here
    movwf   OSCCAL            
update register with factory cal value 




start    
    nop                       
example code
    movlw   0xFF              
example code
    movwf   temp              
example code


請參考 : C:\Program Files\Microchip\MPASM Suite\Template\Code\f200temp.asm

時間的計算可以使用 MPLAB SIM --> Debug -->Stopwatch的功能來計算,可以參考W100的講義

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


Re: 10F206 時脈誤差問題
#2
資深會員
資深會員


查看用戶資訊
內建osc 誤差1 %

因此你:

一、沒校正

二、校正值被洗掉了

三、時間跟本算錯了


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


10F206 時脈誤差問題
#1
新會員
新會員


查看用戶資訊
請問各位高手 因我剛接觸10F206 寫了簡單一個計時程式
但發現不同批的10F206誤差及大
16小時就誤差一個小時半左右
我也做校正 但還是一樣
請高手指點
謝謝

發表於: 2006/8/15 22:08
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... ]

教育訓練中心

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