1 / 33
文档名称:

实时钟与I2C总线电路设计及软件编程.doc

格式:doc   页数:33
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

实时钟与I2C总线电路设计及软件编程.doc

上传人:智客网 2011/12/30 文件大小:0 KB

下载得到文件列表

实时钟与I2C总线电路设计及软件编程.doc

文档介绍

文档介绍:实时钟与I2C总线电路设计及软件编程
摘要
实时钟,自从它被发明的那天起,就成为人们生活中必不可少的一种工具,尤其是在现在这个讲究效率的年代,时钟更是在人类生产、生活、学习等多个领域得到广泛的应用。然而随着时间的推移,科学技术的不断发展,人们不仅对于实时钟精度的要求越来越高,而且对于时钟功能的要求也越来越多,实时钟已不仅仅是一种用来显示时间的工具,在很多实际应用中它还需要能够实现更多其它的功能。本文主要以PCF8563时钟芯片为核心制成并通过ZLG7290键盘LED控制器进行显示的数字实时时钟。其中用到的时钟芯片PCF8563是低功耗的CMOS 实时时钟/日历芯片,它提供一个可编程时钟输出,一个中断输出和掉电检测器,所有的地址和数据通过I2C总线接口串行传递。最大总线速度为400Kbits/s,每次读写数据后,内嵌的字地址寄存器会自动产生增量。本电路在实验板上进行,采用软件和硬件组合的方法,其最大特点是:硬件电路简单,安装方便易于实现,软件设计独特、可靠。
关键词:寄存器,定时器,I2C总线,实时时钟,PCF8563
Re Real-time clock and I2C-bus circuit’s design and Software programming
Abstract
Real-time clock, since the day it was invented, has e indispensable to people’s lives in a tool, particularly now that it has the efficiency of the era, in the human production and living, learning and other fields, the clock has a wide range of apply. But with the passage of time, the continuous development of science and technology, not only demanding of people for the accuracy of real-time clock is increasing, but also we have more and more demands for the clock functions, real-time clock is not just a tool used to show time, and it is able to achieve more other features in many practical applications. This paper introduces PCF8563 clock chip used as the core and ZLG7290 used to display. The PCF8563 clock chip is a CMOS low-power device. It provides a programmable clock output; a power-fail interrupt output and detector, all the addresses and dates are transferred through real-time clock / calendar chip Serial I2C-bus. The biggest Bus speed is 400Kbits/s, after data is read or written, embedded word address register will automatically generate incremental. The circuit is carried on the experiment board using sing software and hardware portfolio, and the largest features are as follows: simple hardware circuit, easy installation, software design unique and reliable.
Key words: Register, Timer, Real-Time Dock, I2C-bus, PCF8563
目录
1 绪论 1
课题背景及目的 1
国内外研究现状 1
课题的研究方法 1
课题研究内容及构成 2
2 元器件介绍 3
时钟芯片