学士学位毕业设计(论文)基于单片机的GPS高精度授时时钟设计学生姓名:指导教师:所在学院:专业:农业电气化—I—摘要本文设计了一种基于P89LPC952高速单片机的GPS卫星授时时钟。它由接收机、中央处理单元、LCM显示、键盘、输出接口组成。利用接收机提供的标准时间信号,通过中央处理单元对数据的处理,从而可同步输出时间数据,保证高精度授时。这不仅解决了时间获取问题,而且能真正实现全球范围内的时间校准。更创新性地集成了全世界212个城市的实时时间显示。与传统方法相比,这种全新的时钟同步方法具有实现手段简单、精度高、范围大、不需通道联系、不受地理和气候条件限制等众多优点,是时钟同步的理想方法。本文介绍了基于P89LPC952的GPS授时时钟装置的硬件;根据装置要实现的功能,给出了主程序和中断程序的流程图和程序介绍。关键词:授时时钟P89LPC952GPS中央处理单元—II—ABSTRACTABSTRACTAkindofGPSsatellitetimingclockbasedontheP89LPC952High-speedMCUisrecommendedinthefollowingthesis.Itiscomposedofreceptors、centralproceedingsections,LCM,keyboardandoutputconnectors.Thecentralproceedingsectioncoulddealwiththedatatomaketheoutputtimedatabyuseofthestandardtimesignalssuppliedbyreceptors,thus,keepinghighlyprecisiontiming.Bythisway,notonlysolvetheproblemofthetimeobtained,butalsothetimeintheworldwideisreallycompletelyunified.Evenmore,creativelyintegrates212citiesoftheworldwide’sreal-timedisplay.Comparedwithconventionalmethod,thisnewsynchronousclockplanhasmanyadvantages,suchassimple,highprecision,wideextension,nochannelsneeded,noconfineofgeographyandweatherenvironmentandsoon.Itistheidealwaytosynchronizetheclock.Inthefollowingpaper,representthehardwareoftheGPStimingclockbasedontheP89LPC952High-speedMCU.Accordingtothefunctionofthedevice,listtheflowchartofthemainprogramandtheinterruptprogramandtheintroductionofthoseprograms.Keywords:TimingclockP89LPC952GPSCentralproceedingsection—III—目录目录摘要......................................................................................................IABSTRACT................................................................................................II前言...................................................................................................IV1.绪论...................................................................................................11.1设计提出的意义.............................................................11.2课题主要内容...................................................................12.系统设计基础.........................................................................22.1设计思想................................................................................22.2方案选择................................................................................22.3本章小结................................................................................33.系统组成原理及硬件设计.........................................43.1系统的组成和原理......................................................43.2硬件电路的设计.............................................................43.3本章小结.............................................................................104.软件设计...................................................................................114.1软件系统结构................................................................114.2主要算法设计................................................................124.3本章小结.............................................