DS12C887的参数设置与应用.pdf
·136· ((测控技术》2009牟第28卷专刊
DS12C887的参数设置与应用
张杰,董爱先,龙子夜,秦玉英
(海军装备研究院,北京102249)
和独特的数据方法,可保证时钟数据10年内不会丢失,大大提高了时钟精度和可靠性。而且内部有专门的接t:/
电路,与各种微处理器的接口简单。详细介绍了DSl2C887的功能特性和内部控制寄存器参数,指出了应用中需
注意的事项,并给出了初始化和获取内部时间的程序。
关键词:时钟;单片机;DSl2C887;寄存器
中图分类号:TP368文献标识码:A 文章编号:1000.8829(2009)S0.0136.04
andParameterofDSl2C887
Application Setting
ZHANG
Jie,DONGAi-xian,LONGZi—ye,QIN
Yu—ymg
1
(NavalAcademyofArmament,Beijing02249,China)
Abstract:DALLASnewclockcalendarDSl2C887ofAmericanhasthe In
Corporation’S chip widespreadapplication
theembedded usesthebuilt.in oscillatorandthe data ensurethatclockanddata
system.It crystal uniquemethod,may
willnotbelostwithin and
ten the oftheclock.Moreoverithas
years,greatlyimprovingaccuracyreliability simple
connectionwith tlleDS12C887
featuresof andinternalcon仃ol are
everymicroprocessor.The registerparameters
whichmust attentioninthe are the ofinitializationand
described,some
things pay applicationpointedout,andprogram
howto theinternaltimeare
get given.
l
Keywords:clock;microcontroller;DS2C887;register
随着微型计算机技术的发展,单片机在各行各业 时钟、警报器、百年历、可编程中断、方波发生器和
114
得到广泛应用。在许多嵌入式系统中,都需要用到实 B的非易失静态RAM。在断电情况下仍能保持时
时时钟芯片…。串行时钟芯片很多,如DSl302、间及内存,是其与众不同的特点。
DSl307、PCF8485等,这些芯片接口简单、价格低廉、
使用方便,被广泛地采用。但这些芯片都存在时