• 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: 請教使用Hitec-PICC16的OSCCAL的問題?
#3
資深會員
資深會員


查看用戶資訊
了解,Thanks.

發表於: 2009/2/10 8:43
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教使用Hitec-PICC16的OSCCAL的問題?
#2
資深會員
資深會員


查看用戶資訊
>為何差了5秒?
>請各位先進告知,Thanks.
這個問題分兩個方向來討論.
1.所有的東西都有誤差,你要求的誤差是多少?
  
12f629的specification一開始就說了...內部OSC再怎麼校正
  也只保證1
%.
  
Internal and external oscillator options
Precision Internal 4 MHz oscillator factory
calibrated to ±1
%
  
換句話說,也就是五分鐘(300秒),誤差3秒是正常的.
  
以一天而言86400秒,最大誤差是864秒(也就是14分多),
  
也就是一天會誤差個五到十分鐘是很正常的.
  (
想想這是你要的嗎?可以接受否?)

2.以1%而言五分鐘(300秒),最大誤差也是3秒,為何差了5秒?
  
A有可能是測試誤差,相信你是用手計時,用眼睛看...
       
這樣誤差就更大了...5秒是可能的.
      (
相信你再計時個一小時,誤差就會比較準)
  
B:另一個原因,有可能你的程式其他部份影響了計時.
  
C:再則沒有較正成功(OSCCAL沒設對).

    
可先設pin3為clock out,用count量實際頻率輸出.
    
看其誤差即可得知答案.
    
:其clock outFosc/4MHz/1MHz

發表於: 2009/2/9 23:14
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請教使用Hitec-PICC16的OSCCAL的問題?
#1
資深會員
資深會員


查看用戶資訊
大家好 請教各位先進:
1.使用晶片:12F629
2.使用內部震盪器(INTIO) //Internal RC No Clock
3.
#include<pic.h>

main()
{
OSCCAL=_READ_OSCCAL_DATA(); //下面警告為何?
//Warning [349] D:\Work\test\five\main.c; 49.29 non-prototyped function declaration for ""
計時5分鐘; //為何多5秒(不準)
}

為何差了5秒?
請各位先進告知,Thanks.

發表於: 2009/2/9 15:43
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... ]

教育訓練中心

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