1、 I 摘摘 要要 日常生活中,实时地掌握温度和时间信息对于人们来说必不可少。本设计 是基于单片机的多功能温度计,实现时间显示和温度显示两种功能。 整个硬件系统采用 AT89S52 单片机作为主芯片,协调整机工作并进行数据 处理。温度测量模块以 DS18B20 数字温度传感器作为核心,单线接口即可实现 与处理器的双向通讯; 时钟模块则采用实时时钟电路 DS1302, 提供秒、 分、 时、 日期的信息; 1602字符液晶提供的32个字符的显示容量足以显示时间和温度; 电源方面,直接使用 USB 接口供电;由四个按键组成的键盘电路用以设置日期 时间。 本设计采用 Proteus 作为仿真软件,根据硬
2、件设计思想,将系统所需要的 元件在 ISIS 中连接好后,在 AT89S52 单片机中加载编译好的 hex 文件,即可进 行仿真。仿真运行正常后,进入实物制作阶段,最终实物实现了设想功能。 关键字:AT89S52; DS18B20; DS1302; 1602 字符液晶; Proteus II AbstractAbstract Its necessary to get the information about the real-time and temperature in our daily life。This design is expect to display the real-tim
3、e and temperature by a multifunctional thermometer which is based on one type of singlechip . The hardware system uses AT89S52 Micro-chip Controller Unit as a core to coordinate the whole systems work and process the datas.In the temperature measure module ,temperature sensor DS18B20 is a good choic
4、e since it can achieve a two-way communication with the singlechip by only one interface.The real-time module is based on the real-timer DS1302 which can provide the the information about the present year,date and time.As a monitor,Character Mode LCD(Liquid Crystal Display)1602 has a big enough display capacity of 32 characters to show the real-time and temperature information.A USB(Universe Serial Bus) interface was used to take charge of power supply. This design uses Proteus as the simu