基于单片机的日历时钟模块设计.pdf
文本预览下载声明
第18卷第12期 电子设计工程 2010年12月
V01.18 No.12 Electronic Dec.2010
DesignEngineering
基于单片机的日历时钟模块设计
汪川,樊泽明
(西北工业大学自动化学院,陕西西安710129)
摘要:针对目前测控系统中对时间控制的需要.结合实时时钟PSl288的类型与特点,提出一种基于单片机的El历时
钟的设计方法。该系统以AT89C52单片机为控制核心,采用实时日历时钟芯片DSl2887作为实时日历时钟芯片。为
系统提供详细的年、月、日、星期和小时、分等时间信息。通过对DSl2887的详细分析,设计其与单片机的硬件接1:7.阐
述该系统的硬件构成和软件设计过程,并给出了相应的硬件原理图和软件流程图。结果表明,DSl2887时钟芯片具有
低功耗、外围接口简单、精度高、工作稳定可靠等优点。可广泛用于各种需要较高精度的实时时钟场合中。
关键词:单片机;DSl2887;时钟;硬件设计;软件设计
中图分类号:TP368.1 文献标识码:A
of basedonMCU
calendarclock
Design
WANG
Chuan,FAN
Ze-ming
(CollegeofAutomation,NorthwesternPolytechnicalUniversity,Xi’帆710129,China)
of
atthecurrentneedsthetimecontr01.combinedwit}Ireal-timeclock andcharacteristics.In
Abstract:Aiming chiptype
ATMEL a8
this calendarclock Was basedonMCU.Thisused AT89C52
paper.a systemdesignproposed system Company’S
Dallas clock DSl2887asthereal—timeclock to
thecontrolCOleandused real-timecalendar
Company’S chip chipprovide
time thedetail ofthe
the withdetailed minute
system year,month,day,week,hour,andinformation.Throughanalysis
thehardware with thehardware andsoftware
DSl2887,thispaperDesigned interfaceMCU,described configuration design
the hardwareandsoftwareflowchart resultsshow
显示全部