1、 编号: 嵌入式系统设计 实训 (论文)说明书 题 目: 基于嵌入式基于嵌入式 ARMARM 的日历的制作的日历的制作 院 (系) : 应用科技学院 专 业: 电子信息工程 2011 年 01 月 19 日 第 1 页 摘 要 日历在生活中经常用到,电子制作的带时钟的日历更是在生活中广泛用到。 本课题是基于 ARM 芯片的日历制作,采用 LPC2138 中央控制单元,五个按键分别用 于调节和查询时间日期,设定生日等。用 LCD1602 显示。整个设计元器件少,简洁美观, 且模块化。模块化的设计和调试方法在整个课题研究过程中至关重要,事实上在任何设 计中也同样关键和有效。 关键字:日历;LPC2
2、138;按键;LCD1602; 第 2 页 Abstract Calendar in life are often used, electronic made with clock calendar is widely used in life. This topic is based on the ARM of the chip making, use the calendar LPC2138 central control unit, five buttons respectively used to regulate and inquires the time or date, set
3、a birthday, etc. With LCD1602 display. The whole design components less, concise and beautiful, and modularization. Modular design and debug method in the whole subject research process is of vital importance to in fact in any design also key and effectively. Keywords:Calendar; LPC2138; Button; LCD1
4、602 第 1 页 目 录 引言. 1 1 设计任务 2 2 硬件设计 2 2.1 总体设计方案与系统构成 2 2.2 LPC2138 芯片 . 2 2.2.1LPC2138 管脚 . 2 2.2.2LPC2138 主要性能 . 3 2.2.3LPC2138 的应用 . 4 2.3 RTC 实时时钟模块 . 5 2.3.1RTC 特性 . 5 2.3.2RTC 寄存器 . 5 2.3.3RTC 使用注意事项 . 8 2.4 硬件电路图 8 2.5 硬件电路 PCB . 9 3 软件设计 10 3.1 整体设计 10 3.2 初始化程序流程图 12 3.3 生日提示程序流程图 13 4 基于 ARM日历的调试 . 13 4.1 硬件电路检测 13 4.2 功能调试 13 5 改进方案 14 第 2 页 结论. 15 谢 辞 16 参考文献 . 17 附 录 .1 第 1 页 引言 RTC 的英文全称是 Real-Time Clock,翻译过来是实时时钟芯片. RTC 是 PC 主板上的 晶振及相关电路组成的时钟电路的生成脉冲, RT