1、I 智能定时闹钟设计 学生:XXX 指导教师:XXX 内容摘要:学习和巩固单片机技术、电子技术、传感器技术及智能仪器等知识,使对 已学过的基础知识能有更深入的理解,并融会贯通。学会独立思考、独立工作,培养一 定的自学能力和独立分析问题能力,以及增强系统地运用已学理论知识去解决实际问题 的能力,同时培养成良好的科学态度和严谨的设计习惯 本设计采用单片机 AT89C51 作为核心元件, 12MHZ 晶振, 由 P0 口输出所要显示的字 形段码,由 P2 口输出字位信号。在其基础上扩展外围芯片与电路,附加时钟电路及 LED 电路。LED 采用共阴极接法,低电平有效选中相应的 LED。 单片机具有集成
2、度高、功能强、通用性好、特别是它能耗低、价格便宜、可靠性高、 抗干扰能力强和使用方便等独特的优点,所以单片机现在广泛的应用到家用电器、机电 产品、儿童玩具、机器人、办公自动化产品等领域。为了进一步的熟悉并掌握单片机的 应用及开发,认真的做好此次课程设计非常必要。 一个单片机的定时闹钟系统离不开软件和硬件,硬件是软件的依托,软件是硬件 的内核。设计硬件电路时应该先设计一个单片机的最小系统,它是单片机应用系统的设 计基础,然后在此基础上添加外围器件,如显示器、按键等构成闹钟的硬件电路图。在 设计应用程序时遵循模块化的设计方法,在明确了设计方向之后按照分成的几大模块分 别画出流程图,然后根据流程图写
3、出程序,在每个模块编写好之后分别调试、修改、完 善。最后在主程序下调用再次调试、修改。 通过这次设计让我更深入了解单片机基本电路、如何控制和定时器和中断编程的 基本方法,从而锻炼了我学习、设计和开发软、硬件的能力。 关键词:定时闹钟系统 传感器技术 智能仪器 阴极接法 II S Smartmart timertimer alarm alarm clockclock designdesign Abstract:Abstract: Learning and consolidation of the knowledge of microcomputer technology, electronic
4、technology, sensor technology and intelligent instruments, and have learned the basics to have a more in-depth understanding and mastery. Learn to think independently, work independently, develop self-learning ability and independent analysis of capacity and enhancing the system the ability to use t
5、heoretical knowledge to solve practical problems, while cultivating a good scientific attitude and a rigorous design habits. This design uses AT89C51 microcontroller as the core component, 12MHZ crystal, shaped segment code to be displayed by the P0 port output signal from the P2 port output word. E
6、xpansion on the basis of the peripheral chips and circuits, additional clock circuit and the LED circuit. LED common cathode connection, active-low select the appropriate LED. Microcontrollers, high integration, functionality, versatility, its low energy consumption, cheap, high reliability, strong anti-interference ability and ease of use and other unique advantages, so the microcontroller is now widely applied to household appliances, electrical and mechanical products, childrens toy