APP下载

基于STM32的GPS授时系统设计

2016-10-14吴彦霖刘瑞敏王兴隆杨智勇

价值工程 2016年5期

吴彦霖  刘瑞敏 王兴隆 杨智勇

摘要: 本文设计了一种基于STM32高速单片机的GPS卫星授时时钟,它由四部分组成,分别是接收机、中央处理单元、LCD显示和输出接口。其中接收机用于接收标准时间信号,中央处理单元的作用是处理数据,可同步输出时间数据,保证高精度授时。这不仅能解决时间获取问题,而且能真正实现全球范围内的时间校准。该方法不仅具有实现手段简单、精度高、范围大等特点,还具有无需通道联系,不受地理和气候条件限制等优势,是理想的时钟同步方法。本文介绍了基于STM32的GPS授时时钟装置的硬件;根据装置要实现的功能,给出了主程序和中断程序的流程图和程序介绍。

Abstract: This paper designed a GPS satellite timing clock based on STM32 high speed microprocessor, which is composed of four parts: receiver, CPU, LCD display and output interface. The receiver is used to receive standard time signal, and the CPU is used for data processing, which can output time data synchronously, thus ensuring high precision timing. This can not only solve the problems of time acquisition, but can truly realize global time calibration. This method has features of simple implementation means, high precision and large scope and there is no need of channel contact. It is free from the restriction of geographical and climate conditions. So it is the optimal clock synchronization method. This paper introduces the hardware of the GPS timing clock device based on STM32 and the supposed function. The main program and interrupt program flow chart and program introduction are presented.

关键词: 授时系统;STM32;GPS;中央处理单元

Key words: timing system;STM32;GPS;central proceeding section

中图分类号:TP273 文献标识码:A 文章编号:1006-4311(2016)05-0117-03

0 引言

在计算机革命的影响下,于20世纪70年代诞生了一批新的时间用户,这些用户需要精确的计算机时间。然而,计算机时钟同腕表、家里的挂钟等时钟相比,其性能要较弱,不可否认,计算机时钟的守时能力并不强。

由于很多计算机应用需要精确的计算机时间,而计算机时钟不良的性能给其带来了很多负面问题。比如用于金融系统的计算机,出于安全方面的考虑,必须精确的记录每次转账、交易的时间。对于电视基站、无线电台等同步通信系统而言,必须保证能够在正确的时间建立链路连接,这离不开授时系统的支持,它是实现仪器或者计算机与国际标准时间精确同步的关键。……

登录APP查看全文