赵文龙, 钟敏, 张鹏. 同步实时时钟系统研究[J]. 南昌航空大学学报(自然科学版), 2015, 29(2): 87-92,97. DOI: 10.3969/j.issn.1001-4926.2015.02.015
引用本文: 赵文龙, 钟敏, 张鹏. 同步实时时钟系统研究[J]. 南昌航空大学学报(自然科学版), 2015, 29(2): 87-92,97. DOI: 10.3969/j.issn.1001-4926.2015.02.015
ZHAO Wen-long, ZHONG Min, ZHANG Peng. The Research of Time Clock Synchronization System[J]. Journal of nanchang hangkong university(Natural science edition), 2015, 29(2): 87-92,97. DOI: 10.3969/j.issn.1001-4926.2015.02.015
Citation: ZHAO Wen-long, ZHONG Min, ZHANG Peng. The Research of Time Clock Synchronization System[J]. Journal of nanchang hangkong university(Natural science edition), 2015, 29(2): 87-92,97. DOI: 10.3969/j.issn.1001-4926.2015.02.015

同步实时时钟系统研究

The Research of Time Clock Synchronization System

  • 摘要: 通过对嵌入式系统中定时的时间常数计算公式进行分析,发现定时器定时不准存在3个因素。通过选择STC15F2K60S2控制器可以解决第3个因素,通过设计由时钟源和被校钟的同步时钟系统可以避免第2个因素的影响。在介绍同步校时思想的基础上推导了校时算法,分析了校时脉冲延迟、冻结操作延迟以及修正时间常数的必要性。通过实验验证了校时算法的正确性,实现了3 min同步且校时误差在±10μs之内,达到了研究的目的。

     

    Abstract: In this paper, the time constant of the embedded system timing calculation formula are analyzed, it is found that there are three factors of inaccurate timing timer. By selecting the STC15F2K60S2 controller can solve the third factor, the synchronous clock system design by the clock source and the calibrated clock can avoid the influence of the second factor. Based on the introduction of synchronous correction, the algorithm of the time is deduced. The necessity of the pulse delay, the freezing operation delay and the time constant of the correction are analyzed. Through the experiment verified the correctness of timing algorithm, realized the synchronization and timing error of 3 minutes within 10 microseconds, and achieved the purpose of the research.

     

/

返回文章
返回