《基于单片机论文》由会员分享,可在线阅读,更多相关《基于单片机论文(52页珍藏版)》请在金锄头文库上搜索。
1、华东交通大学毕业设计1电子钟的设计与实现硬件部分摘 要单片计算机即单片微型计算机,是一种集成的电路芯片,是采用超大规模集成电路 技术把具有数据处理能力的中央处理器 CPU、随机存储器 RAM、只读存储器 ROM、多 种 I/O 口和中断系统、定时器/计时器等功能(可能还包括显示驱动电路、脉宽调制电路、 模拟多路转换器、A/D 转换器等电路)集成到一块硅片上构成的一个小而完善的计算机系 统。它体积小,成本低,功能强,广泛应用于智能产品和工业自动化上。而 51 单片机是 各单片机中最为典型和最有代表性的一种。本次设计主要为实现一款可正常显示时钟/日 历、带有定时闹铃的电子钟。电子钟主要是利用电子技
2、术将时钟电子化、数字化,拥有时钟精确、体积小、界面 友好、可扩展性能强等特点,被广泛应用于生活和工作当中。另外,在生活和工农业生 产中,也常常需要电子时钟具有多功能性。本设计应用 AT89S52 芯片作为核心,LCD 液晶显示,使用 DS1302 实时时钟日历芯 片完成时钟/日历的基本功能。这种实现方法的优点是电路简单,性能可靠,实时性好, 时间精度高,操作简单,编程容易。该电子钟可以应用于一般的生活和工作中,也可通过改装,提高性能,增加新功能, 从而给人们的生活和工作带来更多的方便。关键词:电子钟;时钟日历芯片;AT89S52陈薪羽:带日历电子钟的设计2The Design and Impl
3、ementation of Electron Clock The Design of the HardwareAbstractThe monolithic computer is a monolithic microcomputer, be one kind of integrated circuit chip, be that the width demonstrating drive circuit , pulse modulates breadboarding adopt the grand scale IC technology central authority processor
4、CPU , random memory RAM , god of the earth read memory ROM , diversified I/O mouths and function (possibility such as interruption system , timer/ calculagraph having a data-handling capacity to be included, multi-path converter, A/D converter and so on circuit) integrated arrive at a piece of silic
5、on slice upper formation one small but perfect computer system. Its volume is small , cost is low , the function is strong, apply to the intelligence product and the industrial automation broadly go ahead. But, 51 monolithic machine are that every representative and a kind of having representativene
6、ss most in monolithic machine. Design that being to realize one but to demonstrate the clock/ calendar regularly mainly, as well as electronic clock having noisy bell the regular time time. The electronic clock is to electronize , digitize mainly make use of electron technology with the clock , own
7、the clock is accurate , volume is small , the interface is amicable , expansion the function waits for a characteristic by force , the quilt applies to life and the job broadly middle. Require that the electron clock has multifunctional also often in besides, giving birth to a child in life and indu
8、stry and agriculture. Design that the chip applying AT89S52 is core , LCD liquid crystal display , uses the DS1302 real time clock calendar chip to accomplish fundamental clock/ calendar function originally. This realization method merit is that the circuit is simple , the function is reliable , rea
9、l time nature is good , time accuracy is high , the simplicity , the programming are easy to handle. That electronic clock is not bad apply to also may bring about more going to the lavatory by refitting , improving the function , life and job increasing the new function , giving peoples thereby in
10、the same life and job.Key words:electronic clock; DS1302; AT89S52华东交通大学毕业设计3目 录摘 要.1ABSTRACT.2第一章 引 言.51.1 多功能电子时钟研究的背景和意义 .51.2 电子时钟的功能 .5第二章 电子时钟设计方案分析.72.1 FPGA 设计方案.72.2 NE555 时基电路设计方案.72.3 单片机设计方案 .8第三章 电子时钟硬件设计.93.1 单片机特点 .93.2 元器件选择.93.2.1 微处理器选择.93.2.2 DS1302 的片内寄存器.133.3 电子时钟硬件电路设计.143.3.1 晶振电路设计.153.3.2 复位电路设计.163.3.3 按键电路设计.17陈薪羽:带日历电子钟的设计43.3.4 显示电路设计.183.3.4 时钟电路设计.193.3.5 闹铃电路设计.2