摘要:本设计以单片机STC90C516为核心,通过单片机对信息的分析与处理,控制外围设备,实现电子万年历功能。系统由复位模块、时钟模块、温度模块、光识模块及显示模块共五个模块组成,后来在时钟模块的基础上又加载了日历、星期的模块。结合DS1302时钟芯片和24C02FLASH存储器,完成时间的自动调整和掉电保护,全部信息用液晶显示。时间、日期调整由三个按键来实现。日历能显示 年、月、日以及星期、时、分、秒。另外,系统附加了显示实时温度的功能。20028
关键词: 电子万年历 ;STC90C516单片机;时钟芯片;液晶显示
LCD display time system design
Abstract: The key of the circuit in this design is STC90C516, using the micro control system to process information to control the outer-ring circuit. The system is made up of circuit, clock circuit, music circuit, temperature circuit, and shine circuit. Date and week modul is the external part. The design adopts the core of STC90C516 single chip microcomputer, which constitutes controlling circuit, and integrates DS1302 clock chip and 24C02FLASH memory, which achieve self-adjusting of time and no power protecting. LCD displays all information. Time and date adjusting is carried out by three keys, which can also set the alarm clock. The calendar can display month, day, week, hour, minute, second.
Keywords: electronic calendar;STC90C516 chip microcomputer;clock chip;LCD
目录
摘要 ii
Abstract ii
1 绪论 1
1.1 课题背景 1
1.2 单片机的概述 1
1.3 本课题研究思路 2
1.3.1 研究目标与意义 2
1.3.2 研究思路 3
1.3.3 研究难点 3
2 系统的总体设计 4
2.1 系统方案的构想与确定 4
2.2 基本设计方案 4
2.2.1 单片机核心芯片的选择 4
2.2.2 显示部分的选择 5
2.3 设计最终方案 5
3 硬件电路设计与分析 6
3.1 系统核心主芯片STC90C516 6
3.1.1 STC90C516单片机简介 6
3.1.2 STC90C516的引脚及功能 7
3.2 DS1302时钟电路 8
3.2.1 DS1302芯片介绍 8
3.2.2 DS1302 的应用 12
3.3 液晶显示电路 13
3.3.1 3.3.1 1602液晶显示屏简介 13
3.3.2 1602液晶显示屏引脚说明 13
3.4 键盘电路 14
3.5 温度电路 14
3.6 硬件电路的整体实现 15
4 软件程序的设计与分析 17
4.1 日历程序的设计 17
4.2 时间调整程序设计 18
5 测试结果 20
6 总结和展望 21
致谢 22
参考文献 23
附录 24