Re: 時鐘問題
|
||||
---|---|---|---|---|
版主
|
知道不準的原因是什麼嗎?
提示:軟體沒寫好。 再提示:crystal的頻率如果不是特定值,軟體就不好寫。 再再提示:為什麼RTC通常用32768Hz?除了頻率低較省電以外?
發表於: 2004/8/17 18:32
|
|||
|
Re: 時鐘問題
|
||||
---|---|---|---|---|
資深會員
|
我用PIC16F877 來寫clock也是不準確
xtal 20MHZ的, C program 中斷時間設為1mS 結果也是大約誤差1分鐘左右(1hr) 經過微調count次數 仍然無法將誤差降到比較理想的情況 W201 用的好像也是外部crystal的方式 這樣好麻煩 有沒比較好的方法?
發表於: 2004/8/17 15:19
|
|||
|
Re: 時鐘問題
|
||||
---|---|---|---|---|
版主
|
If you write your program correctly and consider every thing carefully, it is impossible that the timing error rate will be higher than the ppm of the crystal you use.
It is irrelative with the crystal frquency. In fact, it is a little diffucult to use 4MHz to do real-time clock job. Adding a second crystal, 32768Hz, and using it as the time base of timer 1 is a easier solution. You may refer to our workshop material, W201 to get better idea about real time clock, although it is written for PIC16F877.
發表於: 2004/8/13 16:47
|
|||
|
時鐘問題
|
||||
---|---|---|---|---|
中級會員
|
因project 需要有一個時鐘作管理,但是利用timer 1做為base時不太準,約一小時不到就會慢1分鐘,因是做長期計時使用故需求精度高,我使用的是18f452 4MHz的振盪器程式約20K使用C語言,是否,蘋率不夠快還是需加一顆專業時鐘IC?或是其他?
發表於: 2004/8/13 13:41
|
|||
|