高精度PCI授时板卡的设计与实现
发布时间:2018-01-11 13:29
本文关键词:高精度PCI授时板卡的设计与实现 出处:《计算机应用》2017年S1期 论文类型:期刊论文
更多相关文章: 参考时钟源 本地时钟 实际频率 中断信号 授时误差 频率误差 自守时误差 同步误差
【摘要】:针对普通计算机自身时间频率稳定性较差、准确度较低的问题,提出一种利用外部硬件授时板卡同步计算机时间的设计方案。首先,将国际通用的美国靶场仪器组B型时间码(IRIG-B)或全球定位系统(GPS)信号接收机输出的时间信息作为参考时钟源来同步授时板卡的本地时钟;其次,利用参考时钟源准时秒脉冲和板卡上晶振频率在时间误差上互补的特点,对多个连续秒脉冲间的晶振计数脉冲计数值进行动态平均,周期性求取晶振的实际频率;最后,利用分频模块结合晶振实际频率产生1 k Hz的外设部件互连(PCI)总线中断信号来将计算机时间同步到毫秒级。实际测试结果表明,当外部参考时钟源有效时,授时板卡本地时钟授时误差约为250 ns,利用晶振实际频率产生的PCI中断信号频率误差比直接利用晶振标称频率产生的PCI中断信号频率误差小40 Hz以上;当外部参考时钟源失效时,利用晶振实际频率产生的本地时钟自守时误差比利用晶振标称频率产生的本地时钟自守时误差小约20μs/min。利用晶振实际频率的设计方案相比直接利用晶振标称频率的设计方案能够有效减小计算机时间同步误差。
[Abstract]:In order to solve the problem of poor time frequency stability and low accuracy of common computer, a design scheme of synchronizing computer time using external hardware timing card is proposed. The local clock of the time service card is synchronized with the time information output from the international common American range instrument Group B time code IRIG-B or the GPS signal receiver as a reference clock source. Secondly, using the characteristics of the reference clock source just-in-time second pulse and the crystal frequency on the board to complement each other in the time error, the counting value of the crystal oscillator counting pulse between several continuous second pulses is dynamically averaged. Periodic calculation of the actual frequency of the crystal oscillator; Finally, the time of the computer is synchronized to millisecond by the frequency division module combined with the actual frequency of the crystal oscillator to generate the 1 kHz interrupt signal of the PCI bus. The actual test results show that the time of the computer is synchronized to the millisecond level. When the external reference clock source is valid, the local clock timing error of the timing card is about 250 ns. The frequency error of PCI interrupt signal generated by crystal oscillator is more than 40 Hz lower than that of PCI interrupt signal produced by using crystal oscillator nominal frequency directly. When the external reference clock source fails. The local clock self-punctuality error generated by the crystal oscillator is about 20 渭 s / min lower than that by the crystal oscillator nominal frequency. Compared with the design scheme of the actual frequency of the crystal oscillator, it is more direct. The time synchronization error of computer can be effectively reduced by using the design scheme of crystal oscillator nominal frequency.
【正文快照】: 收稿日期: 2016-06-27 ; 修回日期: 2016-08-23。 基金项目: 国家自然科学基金资助项目( 61473021 ) 。 作者简介: 师启军( 1991— ) ,男,山西大同人,硕士研究生,主要研究方向: 测试系统与仪器 、 航电检测技术 、 无线传感器网络; 于宁 ( 1980— ,
本文编号:1409722
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1409722.html