{$cfg_webname}
主页 > 电子信息 > 单片机 >

基于AVR单片机万年日历的设计(附答辩记录,c语言程序)

来源:wenku163.com  资料编号:WK1632863 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9AWK1632863
资料介绍

基于AVR单片机万年日历的设计(附答辩记录,c语言程序)(含选题审批表,任务书,开题报告,中期检查表,毕业论文12700字)
摘 要:单片机以其高可靠性,低廉的价格,低电压,低功耗等一系列优点,近些年得到了迅猛的发展和大范围推广,广泛的应用于工控系统,通讯设备及日常消费类产品中,并已深入到工业生产和人民生活中的各个方面中。
本设计使用ATMEL公司的ATMEGA16单片机作控制核心,采用Dallas公司的实时时钟芯片DS1302提供时钟。DS1302时钟芯片是美国DALLAS公司推出的具有涓细电流充电功能的低功耗实时时钟芯片,它可以对年、月、日、时、分、秒进行计时,还具有闰年补偿等多种功能,而且DS1302的使用寿命长,误差小;LED显示屏,支持动态和字符显示,可同时显示年、月、日、星期、时、分、秒等信息。另外,该电子时钟还具有时间修改校对功能。实现了时钟的显示,调整以及断电恢复。并使用DS18B02提供了温度显示以及使用ATMEGA16的片内EEPROM提供闹铃等附加功能。
关键词:单片机;AVR;DS1302;日历

Design of Permanent Calendar Based AVR Single Chip Microcomputer
Abstract:In recent years, microcontroller has been the rapid development and large-scale promotion with its high reliability, low cost, low voltage, low power consumption and series of advantages. It has been widely used in industrial control systems, communication equipment and everyday consumer products. In addition, it has gone deep into all aspect of industrial production and our day lives.
This design using ATMEL's ATMEGA16 microcontroller as the core for the control. Time Circuit which is constituted by Dallas's DS1302 real-time clock chip. DS1302clock chip is introduced by American DALLAS Corporation has fine current trickle charging function low power real-time clock chip, it can be years, months, days, hours, minutes, seconds for time, also has a variety of functions such as a leap year compensation, but also DS1302has long service life, small error; LED display screen, support for dynamic and character display, can also show the year, month, day, week, time, minutes and seconds, and other information. In addition, the electronic clock also has time to modify the proofreading function. Finally it achieved a clock display, clock adjusts and power-failure recover .It increased functionality for the temperature display by DS18B20 and the alarm by ATMEGA16 on-chip EEPROM.
Keywords: Microcontroller; AVR;DS1302;Calendar
 
本设计使用了ATMEGA16,DS1302,DS18B20,LCD1602等主要芯片,利用了成熟的平台搭建了设计环境。因此硬件部分布局合理,操作简单,运行稳定。软件部分的设计中,决大部分功能实现了模块化,使其可读性大大增强,方便修改和移植到其它硬件平台上。最终,硬件与软件的良好配合实现了所有预期的目标。

总体方案的决定
根据以上各模块方案所述,本设计最终采用ATMEGA16单片机作为主控,DS1302提供时钟,LCD1602作为显示模块,DS18B02作为温度传感器,矩阵键盘提供用户所需的操作。
3 系统硬件电路设计
根据系统设计方案和功能要求,初步确定系统由主控模块,时钟模块,显示模块,测温模块,闹铃模块,键盘接口模块六个模块组成,电路系统构成如图1所示。主控芯片使用美国ATMEL公司生产的ATMEGA16单片机,时钟芯片使用美国DALLAS公司推出的DS1302,温度传感器采用美国DALLAS公司的DS18B20,显示设备使用的是LCD1602。
 

基于AVR单片机万年日历的设计(附答辩记录,c语言程序)
基于AVR单片机万年日历的设计(附答辩记录,c语言程序)
基于AVR单片机万年日历的设计(附答辩记录,c语言程序)
基于AVR单片机万年日历的设计(附答辩记录,c语言程序)

推荐资料