你好,欢迎来到经管之家 [登录] [注册]

设为首页 | 经管之家首页 | 收藏本站

数字温度电子钟设计_电气工程论文

发布时间:2014-10-13 来源:人大经济论坛
目录 摘要I AbstractII 1 绪 论1 2 PIC单片机在设计中的应用3 2.1 PIC16F877A单片机功能简介3 2.2 外围功能模块特性3 2.3 外部引脚说明4 2.3.1主电源引脚4 2.3.2 外接晶体引脚4 2.3.3 输入/输出引脚4 2.4 存储器概述6 2.4.1 程序存储器6 2.4.2 数据存储器7 2.5 PIC16F877A单片机的中断8 2.5.1 中断源的分类8 2.5.2 中断的使能方式9 3 方案设计10 3.1 电路框图10 3.1.1 时钟模块10 3.1.2 DS1302的电路原理图14 3.2 温度模块15 3.2.1 DS18B20的电路原理图17 3.3 显示模块18 3.4 按键模块24 4. 程序设计25 4.1 主程序流程图25 4.1.1 中断程序流程图:26 5 结 论27 致 谢28 参考文献29 附录30 附件1 DS1302子程序30 附件2 DS18B20子程序34 附录3 总电路图36 摘要 在此设计中所设计的钟表不但具有普通钟表的功能,它还能实现多个额外的功能:温度测量、年,月,日,星期。 本设计主要分为硬件电路设计和软件实现两大部分。硬件电路设计采用模块设计:中央处理电路、时钟电路、温度测量电路三大部分;软件采用C语言编程实现,设计采用按功能模块划分,包括:主程序、显示程序、温度测量程序、时钟程序。 单片机又称微控制器,即MCU,是Microcontroller Unit的英文缩写。PIC系列单片机是美国微芯科技公司(MIicrochip公司)的微控制器产品。本次设计的CPU的采用PIC16F877。 在时间功能上主要依靠时间芯片DS1302来完成大部分功能。它的主要特点是采用串行数据传输,可为掉电保护电源提供可编程的充电功能,并且可以关闭充电功能。采用普通32.768kHz晶振。此款芯片来实现时间功能是完全能满足电路的要求。 温度方面工作由数字式温度传感器DS18B20来完成,这款温度传感器是具有线路简单,体积小,方便易用等特点,温度测量范围为-55℃~+125℃,选用这个芯片使电路简化,提高了效率。 关键词:单片机、时钟芯片、温度传感器 Abstract In this design in the design of watches and clocks, watches and clocks, not only has the general function, it can achieve a number of additional functions: temperature measurement, year, month, day, week. The design can be divided into hardware and software circuit design to achieve two major parts. Hardware circuit design uses modular design: the central processing circuit, the clock circuit, the three most temperature measurement circuit; software used C programming language, designed with functional module division, including: the main program that process, temperature measurement procedures, the clock procedutes. SCM also known as micro-controllers, that is, MCU, a Microcontroller Unit of the initials. PIC MCU is a micro-core technology companies in the United States (MIicrochip) of the microcontroller products. The design of the CPU used PIC16F877. In the main function of the time relying on the chip DS1302 time to complete the majority of functionality. Its main feature is a serial data transmission, power-down protection for the provision of programmable power charging capabilities, and can close charging function. Using ordinary 32.768 kHz crystal.In this chip to achieve a fully functional time to meet the requirements of circuit. Key words: single chip microcomputer Clock Chip Temperature Sensor
经管之家“学道会”小程序
  • 扫码加入“考研学习笔记群”
推荐阅读
经济学相关文章
标签云
经管之家精彩文章推荐