1、河北工程大学毕业设计 I 摘要 随着社会快速的发展,人们的生活节奏变得越来越快,人们对时间观念也愈来愈重视。自动化、智能化技术的发展,机电产品的智能度愈来愈高,用到时间提示、定时控制的地方也会愈来愈多,因此,设计开发数字时钟具有良好的应用前景。 由于单片机价格的低成本、高性能,在自动控制产品中得到了广泛的应用。本文以 STC89C52 为核心控制芯片, DS1302 为时钟芯片, DS18B20 为温度传感器,通过液晶显示器 AMPIRE128X64 实时显示时间及温度,通过按键设置年月日和星期以及定时闹钟,定时闹钟时间到自动发出警报,应用 C语言 进行软件编程,并用 Altium Desig
2、ner Summer 09 软件 进行演示、验证。经过测试,系统可以正常完成预定的功能。 关键词: 单片机 STC89C52 电子时钟 C 语言 河北工程大学毕业设计 II Abstract With rapid development of society, peoples life rhythm becomes faster and faster, people to the concept of time is also more and more attention. Automation, intelligent technology development, the intelli
3、gence degree of mechanical and electronic products become more and more high, use time reminder, timing control will be more and more, therefore, design and develop digital clock has a good application prospect. Because of the price of low-cost, high-performance microcontroller, has been widely used
4、 in automatic control of the products. With STC89C52 as the core control chip, this paper DS1887 for the clock chip, DS18B20 as temperature sensor, through the LCD display AMPITE128X64 real-time display of time and temperature, through the button and set the date and week timing alarm clock, timer a
5、larm clock time to alert automatically, using C language for software programming, using Altium Designer Summer 09 for demonstration, software validation. Program download by general technology of PZ - ISP software made by the company to complete. After the test, the system can accomplish the functions normally. Key words: single chip microcomputer C language STC89C52 electronic clock