电子万年历中英文翻译_第1页
电子万年历中英文翻译_第2页
电子万年历中英文翻译_第3页
电子万年历中英文翻译_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、design of the digital perpetual calendar based onreal-time clock chipabstract:this electronic calendar uses the at89s52 microcontroller as the core for the control. time circuit which is constituted by dallass ds12c887a real-time clock chip achieved a time and date display, it increased functionalit

2、y for the temperature display and the whole point timekeeping. this paper discusses the hardware circuit of the system, principle in detail,and gives the flow chart of the software design and the major source code. keywords:microcontroller; real-time clock; temperature measurement1 introduction e-ca

3、lendar-bedroom at home,schools,stations and more and more extensive use of plaza for peoples lives,study,work great convenience. electronics calendar for the past need to re-adjust after power-off time and date,and time is a big error. designed the system using real-time clock chip (ds12c887a) as a

4、timer parts,the chip comes with an internal crystal oscillator,so that effectively guarantee the accuracy of the time and hang own internal battery power makes the situation will continue to update the time information . this design uses at89s52 as the main controller,in order to improve the practic

5、ality of the circuit add temperature measurement circuit,timekeeping and alarm functions. 2 system hardware design schematic circuit shown in figure 2: real-time clock core片audio signal generator and driver single-chip controllerat89s52ledkey circuittemperature measurement circuitpower circuit syste

6、m architecture diagram2.1 power supply circuit in order to reduce circuit costs,the system power supply circuit by the transformer transformer,three-terminal integrated regulator (l7805 circuit 5v, has a simple,reliable, inexpensive and so on. 2.2 host controller host controller using atmels latest

7、mcu products at89s52. apart from the single-chip microcomputer has a mcs-51 series single-chip all the benefits of things,also has 8kb of internal in-system programmable flash memory,free and low-power brown-out mode, greatly reducing the power circuit . in addition,also has a watchdog circuit,a rel

8、iable job for the circuit provides greater assurance. 2.3 digital tube display circuit show circuit with a high brightness,long life,low cost features such as the led digital tube. throughout the show circuit by the digital control and display led drive circuit and decoding circuit. because of the s

9、ystem to display the contents of more,a total of 16 digital tube, respectively,with eight shows year,month,day,four show time,show that 22 weeks,2 show the temperature. controller in order to save resources,between the controller and displays add a decoding circuit 16 so that would have required the

10、 line of control into the circuit only 4 control lines,a great save system resources. the decoder by the decoder constitute both 3-8. 2.4 real-time clock chip this design uses the united states dallas company ds12c887a, the chip can automatically generate century,year,month,day,hour,minute,second,su

11、ch as time information. century the use of internal registers with the software will be able to resolve the millennium, the problem. the chip has its own internal battery-keng,external brown-out,the internal time information also be able to maintain for 10 years. time for a single day record of 12 h

12、ours and there is a 24-hour mode. time table ways that also has two kinds of binary numbers,and the other with bcd code express. the chip with 128 bytes of internal ram,one of 11 bytes used to store time information,4 bytes of memory chips used to control information,known as the control register,11

13、3-byte general-purpose ram for users to store temporary information. in addition,users can also program the chip to control a variety of square-wave output,and its internal three-way through the software interrupt shielding. 2.5 buttons and temperature measurements and circuit the system in order to

14、 make the circuit more easy,button circuit design only three keys, which are set,+,-, three keys to adjust the calendar and clock. the system in order to improve the practicality of the circuit,an increase of a temperature display. the system temperature measurement circuit using dallass ds1280. the

15、 device because of its low price,easy circuits,measurement precision,etc. 2.6 audio signal generator and driver circuit the circuits function is to receive control circuit to send to the entire point of time and timing signal,according to system settings produce different frequencies of audio signal

16、s,amplification by the drive circuit to drive speakers to voice their opinions in order to realize the whole point timekeeping and alarm functions. 3 system software design procedures of the system by the main program interrupt service function and pose a number of functions. main function and inter

17、rupt the completion of the initialization function. timer interrupt function main timing clock chip to complete scanning and keypad scanning. clock chip main function is to read and write time,read out the calendar information and to amend the specific value of the internal write clock chip. the mai

18、n source code is as follows: 中文译文:基于实时钟芯片的电子万年历的设计摘要:电子万年历以at89s52单片机为控制核心,采用dallas公司的ds12c887a实时钟芯片构成计时电路,实现了时间和日期的显示,还增加了温度显示和整点报时的功能。文章对该系统的硬件电路、工作原理做了详细介绍,同时给出了软件设计的流程图及主要程序源代码。关键词:单片机,实时钟.温度测量1引言电子万年历在家庭居室、学校、车站和广场使用越来越广泛,给人们的生活、学习、工作带来极大的方便。针对以往的电子万年历断电后需重新调整时间与日期,且计时误差大的现象。本系统设计采用实时钟芯片(ds12c8

19、87a)作为计时器件,该芯片内部自带晶体振荡器,这样就有效的保证了计时的精确性,并且内部自带铿电池使得在断电情况能继续更新时间信息。本设计采用at89s52作为主控制器,为了提高电路的实用性加入温度测量电路、报时和闹钟功能。2系统硬件的设计电路原理图如图所示:实时时钟芯片音频信号产生及驱动电路电源电路 单片机控制器at89s52数码显示管按键电路温度测量电路 该系统的结构框图系统的工作原理是:主控制器每隔一段时间(小于一秒钟)读一次时钟芯片的内部寄存器的值,将读出的日历、时间信息实时的显示在led数码显示器一上。同时,主控制器不断的扫描按键电路和温度测量电路,当有键按下时,识别出按键的值并调整

20、相应的时间或日历的值再写入时钟芯片内部。温度数据由测量电路(ds1280)获得的温度值送入显示电路显示。2. 1电源电路为了减少电路成本,本系统电源电路由变压器变压、三端集成稳压(l7805电路产生5v,具有简单、可靠、价格低廉等特点。2. 2主控制器主控制器采用atmel公司的最新系列单片机产品at89s52。该单片机除了拥有mcs-51系列单片机的所有优点外,内部还具有8kb的在系统可编程flash存储器,低功耗的空闲和掉电模式,极大的降低了电路的功耗。另外,还具有一个看门狗电路,为电路的可靠工作提供了更大的保证。2. 3数码管显示电路显示电路采用具有高亮度、使用寿命长、价格低廉等特点的led数码管。整个显示电路由led数码管和显示驱动电路和译码电路构成。由于本系统中显示的内容较多,共需要16个数码管,分别用八位显示年、月、日,四位显示时间,二二位显示星期,二位显示温度。为了节省控制器的资源,在控制器和显示器之间加入一个译码电路使本来需要16根控制线的电路变成只需四根控制线,极大的节省了系统资源。该译码器由两个3

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论