本發明涉及(ji)校(xiao)準,特別(bie)涉及(ji)一種基于(yu)低(di)速內部時(shi)鐘源的(de)(de)rtc時(shi)鐘的(de)(de)校(xiao)準方(fang)法。
背景技術:
1、隨著信(xin)息(xi)技術的(de)(de)飛(fei)速發(fa)展,數(shu)字化(hua)、網絡化(hua)的(de)(de)設備越(yue)來(lai)越(yue)多(duo)的(de)(de)被(bei)應用到電(dian)廠的(de)(de)智能控(kong)制中(zhong)。各(ge)種(zhong)(zhong)自(zi)動(dong)監測(ce)裝(zhuang)置測(ce)量精(jing)(jing)度(du)(du)的(de)(de)不斷提(ti)(ti)高(gao)(gao)為各(ge)系(xi)(xi)統(tong)(tong)(tong)之(zhi)間(jian)的(de)(de)數(shu)據(ju)(ju)共享、分析和(he)(he)高(gao)(gao)級應用提(ti)(ti)供了更好的(de)(de)平(ping)臺,同時(shi)(shi)(shi)(shi)(shi)對(dui)各(ge)種(zhong)(zhong)數(shu)據(ju)(ju)時(shi)(shi)(shi)(shi)(shi)間(jian)標簽的(de)(de)準確性也提(ti)(ti)出(chu)了更高(gao)(gao)的(de)(de)要求。在電(dian)子系(xi)(xi)統(tong)(tong)(tong)相關領域(yu),時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)系(xi)(xi)統(tong)(tong)(tong)至關重要,是(shi)電(dian)子系(xi)(xi)統(tong)(tong)(tong)的(de)(de)脈搏,為實(shi)(shi)現(xian)對(dui)電(dian)子系(xi)(xi)統(tong)(tong)(tong)的(de)(de)自(zi)動(dong)化(hua)管(guan)理,通常采用時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)基于(yu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)信(xin)號通過(guo)實(shi)(shi)時(shi)(shi)(shi)(shi)(shi)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)(rtc)實(shi)(shi)現(xian)管(guan)理,其(qi)中(zhong),時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)包括:高(gao)(gao)速內部(bu)(bu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)(hsi)、高(gao)(gao)速外部(bu)(bu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)(hse)、低速內部(bu)(bu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)(lsi)和(he)(he)低速外部(bu)(bu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)(lse),高(gao)(gao)速內部(bu)(bu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)(hsi)和(he)(he)低速內部(bu)(bu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)(lsi)存在于(yu)為控(kong)制單(dan)元(yuan)內部(bu)(bu),其(qi)溫(wen)(wen)(wen)度(du)(du)往往會直接影(ying)響(xiang)控(kong)制單(dan)元(yuan)的(de)(de)壽命,目前,針對(dui)hsi的(de)(de)校(xiao)(xiao)準全(quan)溫(wen)(wen)(wen)度(du)(du)范(fan)(fan)圍(wei)精(jing)(jing)度(du)(du)較高(gao)(gao),但是(shi)lsi的(de)(de)校(xiao)(xiao)準精(jing)(jing)度(du)(du)較差,受(shou)溫(wen)(wen)(wen)度(du)(du)影(ying)響(xiang)比較大,往往會導致rtc時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)不精(jing)(jing)準,因此,本發(fa)明提(ti)(ti)出(chu)一種(zhong)(zhong)基于(yu)低速內部(bu)(bu)時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan)的(de)(de)rtc時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)的(de)(de)校(xiao)(xiao)準方法,通過(guo)定時(shi)(shi)(shi)(shi)(shi)器計數(shu)來(lai)校(xiao)(xiao)準rtc低速時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)源(yuan)(yuan),提(ti)(ti)高(gao)(gao)lsi的(de)(de)校(xiao)(xiao)準全(quan)溫(wen)(wen)(wen)度(du)(du)范(fan)(fan)圍(wei)精(jing)(jing)度(du)(du),進而提(ti)(ti)升(sheng)rtc時(shi)(shi)(shi)(shi)(shi)鐘(zhong)(zhong)(zhong)的(de)(de)準確度(du)(du)。
技術實現思路
1、本(ben)發明的目的在于(yu)提供一種基(ji)于(yu)低速內部時(shi)鐘源的rtc時(shi)鐘的校準(zhun)方(fang)法,以解決上述背(bei)景技術中提出的問題。
2、為實現(xian)上述目的(de),本發明提供如下(xia)技術(shu)方(fang)案:一種(zhong)基于(yu)低速內部時鐘(zhong)源的(de)rtc時鐘(zhong)的(de)校準方(fang)法,包括:
3、確定rtc時鐘的校(xiao)準位置,并針(zhen)對(dui)校(xiao)準位置進行當前溫度獲取;
4、初始化設置定時(shi)器,然(ran)后(hou)啟動(dong)電子計時(shi)器進行計數;
5、將(jiang)當前(qian)溫(wen)度與(yu)歷史溫(wen)度進行差值(zhi)分(fen)析(xi),判斷(duan)溫(wen)度差值(zhi)是否(fou)大于第(di)一閾值(zhi),得(de)到第(di)一分(fen)析(xi)判斷(duan)結果(guo);
6、根據(ju)第(di)一(yi)分析(xi)判斷結果針對初始化設(she)置(zhi)(zhi)的定(ding)時器進行時間設(she)置(zhi)(zhi),并結合定(ding)時器和(he)電子計數器更新記錄rtc中斷數據(ju)與lsi分頻標志;
7、當rtc中斷記錄數(shu)據大于第(di)二閾值時,獲取(qu)rtc時鐘(zhong)(zhong)分(fen)頻(pin),然(ran)后根據rtc時鐘(zhong)(zhong)分(fen)頻(pin)進(jin)行(xing)分(fen)頻(pin)比(bi)預估(gu),并(bing)按照(zhao)rtc時鐘(zhong)(zhong)預估(gu)分(fen)頻(pin)比(bi)結合lsi分(fen)頻(pin)標(biao)志針對rtc時鐘(zhong)(zhong)原分(fen)頻(pin)進(jin)行(xing)校正,同時根據電子計(ji)時器(qi)和定時器(qi)進(jin)行(xing)rtc時鐘(zhong)(zhong)誤差(cha)分(fen)析。
8、進一步地,所述(shu)初始(shi)化設(she)(she)置(zhi)定(ding)(ding)(ding)時(shi)(shi)(shi)器(qi)(qi),包(bao)括(kuo):確(que)定(ding)(ding)(ding)定(ding)(ding)(ding)時(shi)(shi)(shi)器(qi)(qi)的(de)當(dang)前設(she)(she)置(zhi)狀(zhuang)(zhuang)態,并(bing)分(fen)析定(ding)(ding)(ding)時(shi)(shi)(shi)器(qi)(qi)的(de)當(dang)前設(she)(she)置(zhi)狀(zhuang)(zhuang)態是(shi)否(fou)是(shi)定(ding)(ding)(ding)時(shi)(shi)(shi)器(qi)(qi)初始(shi)狀(zhuang)(zhuang)態,得到(dao)定(ding)(ding)(ding)時(shi)(shi)(shi)器(qi)(qi)設(she)(she)置(zhi)狀(zhuang)(zhuang)態分(fen)析判(pan)斷結果,然后根據定(ding)(ding)(ding)時(shi)(shi)(shi)器(qi)(qi)設(she)(she)置(zhi)狀(zhuang)(zhuang)態分(fen)析判(pan)斷結果將定(ding)(ding)(ding)時(shi)(shi)(shi)器(qi)(qi)的(de)當(dang)前設(she)(she)置(zhi)恢復到(dao)初始(shi)狀(zhuang)(zhuang)態。
9、進(jin)一步(bu)地(di),根據(ju)第一分析(xi)判斷(duan)(duan)結(jie)果(guo)針對初始化設(she)置的定時(shi)(shi)(shi)(shi)(shi)器進(jin)行時(shi)(shi)(shi)(shi)(shi)間設(she)置時(shi)(shi)(shi)(shi)(shi),根據(ju)第一分析(xi)判斷(duan)(duan)結(jie)果(guo)進(jin)行lsi分頻標(biao)(biao)(biao)(biao)志(zhi)(zhi)獲取(qu)(qu),當(dang)(dang)第一分析(xi)判斷(duan)(duan)結(jie)果(guo)為溫度差值(zhi)大于(yu)第一閾值(zhi)時(shi)(shi)(shi)(shi)(shi),獲取(qu)(qu)lsi分頻標(biao)(biao)(biao)(biao)志(zhi)(zhi)當(dang)(dang)前(qian)數據(ju),然后分析(xi)判斷(duan)(duan)lsi分頻標(biao)(biao)(biao)(biao)志(zhi)(zhi)當(dang)(dang)前(qian)數據(ju)是否等于(yu)1,得(de)到(dao)第二分析(xi)判斷(duan)(duan)結(jie)果(guo),當(dang)(dang)第二分析(xi)判斷(duan)(duan)結(jie)果(guo)為lsi分頻標(biao)(biao)(biao)(biao)志(zhi)(zhi)當(dang)(dang)前(qian)數據(ju)等于(yu)1時(shi)(shi)(shi)(shi)(shi),設(she)置定時(shi)(shi)(shi)(shi)(shi)器的定時(shi)(shi)(shi)(shi)(shi)時(shi)(shi)(shi)(shi)(shi)間和鬧鐘喚醒時(shi)(shi)(shi)(shi)(shi)間,接著(zhu)針對定時(shi)(shi)(shi)(shi)(shi)器和電(dian)子計(ji)(ji)(ji)數器進(jin)行計(ji)(ji)(ji)量數據(ju)信(xin)息獲取(qu)(qu),從(cong)而根據(ju)定時(shi)(shi)(shi)(shi)(shi)器與電(dian)子計(ji)(ji)(ji)數器的計(ji)(ji)(ji)量信(xin)息更新(xin)記錄(lu)rtc中(zhong)斷(duan)(duan)數據(ju)與lsi分頻標(biao)(biao)(biao)(biao)志(zhi)(zhi)。
10、進(jin)一(yi)步(bu)地,根據(ju)(ju)(ju)(ju)(ju)定(ding)時(shi)(shi)器與(yu)(yu)電子計(ji)數(shu)(shu)(shu)器的計(ji)量信息更新(xin)(xin)記(ji)錄(lu)rtc中(zhong)(zhong)(zhong)斷(duan)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju)與(yu)(yu)lsi分(fen)(fen)(fen)頻標(biao)(biao)(biao)志(zhi)時(shi)(shi),分(fen)(fen)(fen)析(xi)(xi)定(ding)時(shi)(shi)器按(an)(an)照定(ding)時(shi)(shi)時(shi)(shi)間(jian)發生systick中(zhong)(zhong)(zhong)斷(duan),當定(ding)時(shi)(shi)器按(an)(an)照定(ding)時(shi)(shi)時(shi)(shi)間(jian)發生systick中(zhong)(zhong)(zhong)斷(duan)時(shi)(shi),獲取(qu)電子計(ji)數(shu)(shu)(shu)器的溢出(chu)信號(hao),根據(ju)(ju)(ju)(ju)(ju)溢出(chu)信號(hao)更新(xin)(xin)lsi分(fen)(fen)(fen)頻標(biao)(biao)(biao)志(zhi),得到(dao)lsi分(fen)(fen)(fen)頻標(biao)(biao)(biao)志(zhi)更新(xin)(xin)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju),并根據(ju)(ju)(ju)(ju)(ju)lsi分(fen)(fen)(fen)頻標(biao)(biao)(biao)志(zhi)更新(xin)(xin)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju)進(jin)行(xing)systick中(zhong)(zhong)(zhong)斷(duan)計(ji)數(shu)(shu)(shu),同(tong)時(shi)(shi)分(fen)(fen)(fen)析(xi)(xi)判(pan)(pan)斷(duan)lsi分(fen)(fen)(fen)頻標(biao)(biao)(biao)志(zhi)更新(xin)(xin)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju)是(shi)否(fou)等于(yu)第(di)三(san)閾值(zhi),得到(dao)第(di)三(san)分(fen)(fen)(fen)析(xi)(xi)判(pan)(pan)斷(duan)結(jie)果,當第(di)三(san)分(fen)(fen)(fen)析(xi)(xi)判(pan)(pan)斷(duan)結(jie)果為lsi分(fen)(fen)(fen)頻標(biao)(biao)(biao)志(zhi)更新(xin)(xin)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju)等于(yu)第(di)三(san)閾值(zhi)時(shi)(shi),rtc中(zhong)(zhong)(zhong)斷(duan),并更新(xin)(xin)rtc中(zhong)(zhong)(zhong)斷(duan)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju)記(ji)錄(lu)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju),然后分(fen)(fen)(fen)析(xi)(xi)判(pan)(pan)斷(duan)更新(xin)(xin)rtc中(zhong)(zhong)(zhong)斷(duan)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju)記(ji)錄(lu)數(shu)(shu)(shu)據(ju)(ju)(ju)(ju)(ju)是(shi)否(fou)等于(yu)第(di)三(san)閾值(zhi),得到(dao)第(di)四分(fen)(fen)(fen)析(xi)(xi)判(pan)(pan)斷(duan)結(jie)果,并根據(ju)(ju)(ju)(ju)(ju)第(di)四分(fen)(fen)(fen)析(xi)(xi)判(pan)(pan)斷(duan)結(jie)果進(jin)行(xing)rtc時(shi)(shi)鐘分(fen)(fen)(fen)頻獲取(qu)。
11、進一步地(di),當rtc中斷(duan)時(shi),還(huan)判斷(duan)lsi分(fen)頻(pin)標(biao)志(zhi)更新(xin)數(shu)據(ju)(ju)是否等于0,得到第(di)五分(fen)析判斷(duan)結果,根據(ju)(ju)第(di)五分(fen)析判斷(duan)結果在lsi分(fen)頻(pin)標(biao)志(zhi)更新(xin)數(shu)據(ju)(ju)不(bu)等于0時(shi),針對rtc中斷(duan)mseccount自增計數(shu)進行(xing)數(shu)據(ju)(ju)分(fen)析,并將lsi分(fen)頻(pin)標(biao)志(zhi)更新(xin)數(shu)據(ju)(ju)的大(da)小調(diao)整為(wei)第(di)三閾值。
12、進一步地,根據rtc時鐘分頻進行分頻比預估,包括:
13、根據rtc時鐘分頻確定(ding)rtc時鐘實際輸出信(xin)號頻率(lv),得到(dao)rtc_prereal;
14、獲取(qu)rtc中斷情況(kuang)下的(de)自增(zeng)計數累計數據,并結合第二閾值(zhi)進行均值(zhi)計算,確定rtc中斷情況(kuang)下的(de)計數平均值(zhi),得到mseccountavg;
15、利用rtc_prereal結合mseccountavg進(jin)行分頻比預估分析計算(suan),得到rtc時鐘預估分頻比。
16、進一步地,按(an)照(zhao)rtc時(shi)鐘預估分頻比(bi)結(jie)合lsi分頻標志針(zhen)對rtc時(shi)鐘原(yuan)分頻進行校正,包括(kuo):
17、根(gen)據(ju)rtc時(shi)鐘預估分(fen)(fen)頻(pin)比確定rtc時(shi)鐘目標分(fen)(fen)頻(pin);
18、針對rtc時(shi)鐘(zhong)進行當前rtc時(shi)鐘(zhong)分(fen)頻(pin)獲取(qu),得到rtc時(shi)鐘(zhong)原分(fen)頻(pin);
19、結合(he)rtc時(shi)鐘目(mu)標分頻(pin)分析rtc時(shi)鐘原分頻(pin)與(yu)rtc時(shi)鐘目(mu)標分頻(pin)之(zhi)間的相對關系,確定校正方向(xiang);
20、將rtc時(shi)鐘(zhong)原(yuan)分頻與rtc時(shi)鐘(zhong)目(mu)標(biao)(biao)分頻進行差(cha)值分析,獲取目(mu)標(biao)(biao)分頻校正調整(zheng)差(cha)值;
21、基于目(mu)標校正調整差值進行分頻比分析,確定(ding)目(mu)標分頻比校正值;
22、按照校(xiao)正方向進行校(xiao)正控制(zhi)指令匹(pi)配(pei)(pei),并將目標分頻比校(xiao)正值在匹(pi)配(pei)(pei)結果(guo)中進行目標位置填充,得到目標校(xiao)正指令;
23、利用(yong)目標(biao)校正指令針對當前(qian)rtc時鐘(zhong)分頻進行調整(zheng),并在調整(zheng)完成(cheng)后針對rtc時鐘(zhong)的校準位置進行溫度獲取與(yu)當前(qian)溫度更新。
24、進(jin)(jin)一步(bu)地,根據(ju)電子(zi)計時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)和(he)定時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)進(jin)(jin)行(xing)(xing)rtc時(shi)(shi)(shi)(shi)(shi)(shi)(shi)鐘誤差(cha)分(fen)析時(shi)(shi)(shi)(shi)(shi)(shi)(shi),針對(dui)多(duo)次(ci)(ci)校(xiao)正(zheng)(zheng)(zheng)的(de)情況進(jin)(jin)行(xing)(xing)誤差(cha)分(fen)析,獲取每(mei)(mei)次(ci)(ci)校(xiao)正(zheng)(zheng)(zheng)過(guo)程(cheng)中基于設(she)置的(de)鬧鐘喚醒時(shi)(shi)(shi)(shi)(shi)(shi)(shi)間定時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)進(jin)(jin)行(xing)(xing)時(shi)(shi)(shi)(shi)(shi)(shi)(shi)間計數(shu)的(de)數(shu)據(ju)信(xin)息(xi),得(de)到定時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)計時(shi)(shi)(shi)(shi)(shi)(shi)(shi)時(shi)(shi)(shi)(shi)(shi)(shi)(shi)間,將(jiang)定時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)計時(shi)(shi)(shi)(shi)(shi)(shi)(shi)時(shi)(shi)(shi)(shi)(shi)(shi)(shi)間結(jie)合設(she)置的(de)鬧鐘喚醒時(shi)(shi)(shi)(shi)(shi)(shi)(shi)間進(jin)(jin)行(xing)(xing)誤差(cha)分(fen)析,得(de)到校(xiao)正(zheng)(zheng)(zheng)誤差(cha)數(shu)據(ju),然(ran)后獲取電子(zi)計時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)在每(mei)(mei)次(ci)(ci)校(xiao)正(zheng)(zheng)(zheng)過(guo)程(cheng)的(de)數(shu)據(ju)信(xin)息(xi),得(de)到電子(zi)計時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)數(shu)據(ju)計量信(xin)息(xi),然(ran)后根據(ju)電子(zi)計時(shi)(shi)(shi)(shi)(shi)(shi)(shi)器(qi)(qi)數(shu)據(ju)計量信(xin)息(xi)確(que)定時(shi)(shi)(shi)(shi)(shi)(shi)(shi)鐘源分(fen)頻(pin),將(jiang)時(shi)(shi)(shi)(shi)(shi)(shi)(shi)鐘源分(fen)頻(pin)結(jie)合校(xiao)正(zheng)(zheng)(zheng)誤差(cha)數(shu)據(ju)進(jin)(jin)行(xing)(xing)整體分(fen)析,確(que)定校(xiao)正(zheng)(zheng)(zheng)最優結(jie)果。
25、進(jin)(jin)一步(bu)地(di),針(zhen)對校(xiao)準(zhun)位置(zhi)進(jin)(jin)行(xing)(xing)(xing)當(dang)前(qian)溫(wen)(wen)度獲取時(shi)(shi)(shi),在(zai)校(xiao)準(zhun)位置(zhi)進(jin)(jin)行(xing)(xing)(xing)多點溫(wen)(wen)度獲取,得到多個監(jian)(jian)測(ce)(ce)溫(wen)(wen)度數(shu)(shu)(shu)(shu)據,然后針(zhen)對多個監(jian)(jian)測(ce)(ce)溫(wen)(wen)度數(shu)(shu)(shu)(shu)據進(jin)(jin)行(xing)(xing)(xing)初步(bu)分(fen)析(xi),判斷監(jian)(jian)測(ce)(ce)溫(wen)(wen)度數(shu)(shu)(shu)(shu)據是(shi)否一致,當(dang)監(jian)(jian)測(ce)(ce)溫(wen)(wen)度數(shu)(shu)(shu)(shu)據一致時(shi)(shi)(shi),監(jian)(jian)測(ce)(ce)溫(wen)(wen)度數(shu)(shu)(shu)(shu)據即(ji)為(wei)(wei)rtc時(shi)(shi)(shi)鐘(zhong)校(xiao)準(zhun)位置(zhi)的當(dang)前(qian)溫(wen)(wen)度,當(dang)監(jian)(jian)測(ce)(ce)溫(wen)(wen)度數(shu)(shu)(shu)(shu)據不一致時(shi)(shi)(shi),針(zhen)對監(jian)(jian)測(ce)(ce)溫(wen)(wen)度進(jin)(jin)行(xing)(xing)(xing)最值(zhi)分(fen)析(xi),并將(jiang)最值(zhi)分(fen)別(bie)作(zuo)為(wei)(wei)當(dang)前(qian)溫(wen)(wen)度與歷史溫(wen)(wen)度進(jin)(jin)行(xing)(xing)(xing)差值(zhi)分(fen)析(xi)。
26、進(jin)一(yi)(yi)步地(di),判斷溫(wen)(wen)度差值(zhi)是(shi)否大于(yu)第(di)一(yi)(yi)閾(yu)(yu)值(zhi)時(shi),將溫(wen)(wen)度差值(zhi)與第(di)一(yi)(yi)閾(yu)(yu)值(zhi)進(jin)行數(shu)值(zhi)大小比較(jiao),其(qi)中(zhong),第(di)一(yi)(yi)閾(yu)(yu)值(zhi)是(shi)預先設置好(hao)的,在設置第(di)一(yi)(yi)閾(yu)(yu)值(zhi)時(shi)針對(dui)目標設置數(shu)據進(jin)行即時(shi)轉(zhuan)換,包括:
27、獲取目標設(she)置數(shu)據,并確(que)定目標設(she)置數(shu)據的單位信(xin)息;
28、分(fen)析目標(biao)設置數據的單(dan)位(wei)信息與當前(qian)溫度的單(dan)位(wei)信息是否相(xiang)同,得(de)到溫度單(dan)位(wei)分(fen)析判斷結果;
29、根據溫(wen)度(du)單位分(fen)析判斷結果在目標設置(zhi)數據的(de)(de)單位信息與當前溫(wen)度(du)的(de)(de)單位信息不(bu)相同時,確定目標設置(zhi)數據的(de)(de)單位信息與當前溫(wen)度(du)的(de)(de)單位信息之(zhi)間(jian)的(de)(de)單位換(huan)算規則;
30、按照目(mu)標(biao)設置(zhi)數(shu)據的單(dan)(dan)位(wei)信(xin)息與當前溫度的單(dan)(dan)位(wei)信(xin)息之間的單(dan)(dan)位(wei)換算(suan)規則針對目(mu)標(biao)設置(zhi)數(shu)據進行單(dan)(dan)位(wei)換算(suan)。
31、本發(fa)(fa)明(ming)(ming)結合定(ding)(ding)時(shi)(shi)(shi)(shi)器(qi)計數來(lai)校(xiao)(xiao)準(zhun)rtc低(di)速時(shi)(shi)(shi)(shi)鐘(zhong)(zhong)源,實(shi)現(xian)了基于(yu)低(di)速內(nei)部(bu)時(shi)(shi)(shi)(shi)鐘(zhong)(zhong)源的(de)(de)(de)rtc時(shi)(shi)(shi)(shi)鐘(zhong)(zhong)自動化(hua)(hua)(hua)智能校(xiao)(xiao)準(zhun),從而提(ti)高lsi的(de)(de)(de)校(xiao)(xiao)準(zhun)全(quan)溫(wen)度(du)(du)范圍精度(du)(du),進(jin)而提(ti)升rtc時(shi)(shi)(shi)(shi)鐘(zhong)(zhong)的(de)(de)(de)準(zhun)確(que)度(du)(du)。通(tong)(tong)(tong)過(guo)初(chu)始(shi)化(hua)(hua)(hua)設(she)置(zhi)定(ding)(ding)時(shi)(shi)(shi)(shi)器(qi),不僅方便(bian)針對(dui)定(ding)(ding)時(shi)(shi)(shi)(shi)器(qi)按需設(she)置(zhi),還能夠(gou)(gou)避免(mian)定(ding)(ding)時(shi)(shi)(shi)(shi)器(qi)歷史(shi)設(she)置(zhi)數據的(de)(de)(de)干(gan)擾,保障計時(shi)(shi)(shi)(shi)器(qi)的(de)(de)(de)準(zhun)確(que)性,通(tong)(tong)(tong)過(guo)電子計數器(qi)與計時(shi)(shi)(shi)(shi)器(qi)形成比較,將rtc時(shi)(shi)(shi)(shi)鐘(zhong)(zhong)誤差數據化(hua)(hua)(hua),使得能夠(gou)(gou)更(geng)加直觀的(de)(de)(de)明(ming)(ming)確(que)誤差,為校(xiao)(xiao)準(zhun)優化(hua)(hua)(hua)提(ti)供便(bian)捷(jie),而且通(tong)(tong)(tong)過(guo)獲取當前溫(wen)度(du)(du),使得校(xiao)(xiao)正位置(zhi)在溫(wen)度(du)(du)發(fa)(fa)生變化(hua)(hua)(hua)時(shi)(shi)(shi)(shi)能夠(gou)(gou)及(ji)時(shi)(shi)(shi)(shi)進(jin)行(xing)校(xiao)(xiao)準(zhun),并且通(tong)(tong)(tong)過(guo)lsi分頻(pin)標志(zhi)的(de)(de)(de)更(geng)新實(shi)現(xian)對(dui)lsi分頻(pin)標志(zhi)的(de)(de)(de)調整,使得lsi能夠(gou)(gou)穩定(ding)(ding)輸出(chu),降低(di)溫(wen)度(du)(du)變化(hua)(hua)(hua)對(dui)lsi的(de)(de)(de)影響,提(ti)高lsi的(de)(de)(de)校(xiao)(xiao)準(zhun)全(quan)溫(wen)度(du)(du)范圍精度(du)(du),進(jin)而提(ti)升rtc時(shi)(shi)(shi)(shi)鐘(zhong)(zhong)的(de)(de)(de)準(zhun)確(que)度(du)(du)。
32、本發(fa)明的其它特征和(he)(he)優點(dian)將在隨后的說明書中闡述,并且,部分地從(cong)說明書中變(bian)得(de)顯而(er)易見,或者通(tong)過(guo)(guo)實施本發(fa)明而(er)了解。本發(fa)明的目的和(he)(he)其他優點(dian)可通(tong)過(guo)(guo)在所寫的說明書、權利要求書、以及附圖中所特別指出(chu)的結構來實現和(he)(he)獲(huo)得(de)。
33、下面通過附圖和實施例,對本發明的技術方案做進一步的詳(xiang)細描述。