介绍了多功能数字钟的系统设计。系统具有时间设置及显示、闹钟、温度显示等功能。系统以 AT89C52为核心,主要进行基于AT89C52低功耗MCU的字符型数字钟及其系统的研究。系统带有液晶显示器,配合按键提供友好的用户界面,操作简单,同时具有温度检测功能,时钟数据和温度数据也可通过RS232向上位机传送。该数字钟能长期、连续、可靠、稳定的工作;同时还具有体积小、功耗低等特点,便于携带,使用方便。系统软件设计包括单片机计算机两部分的编程。计算机软件编程主要实现参数设置、串行口数据接收、指令发送以及数据的显示和存储,采用Visual Basic语言编程。单片机软件编程主要实现键盘、液晶显示、温度检测等各模块的功能,采用C语言编程。该系统通过串行口与计算机通信,计算机给单片机发指令实现数据采集及系统控制,并将数据实时地传回计算机。
关键词:数字钟、液晶显示、温度检测、串口通信
ABSTRACT
This paper describes the design of a multi-functiond digital clock system.It as displaying and setting time for clock and alarm,this system has other special features such as temperature measurement and data protection at power faillure.The core part of the system is based on a king of advanced MCU,AT89C52,this system mainly carries on low power consume MCU the character list type the research of the digital clock and its system according to the AT89 C52.The system takes liquid crystal display, matching with a key to provide amity of customer interface, the operation is simple, having the temperature examination function in the meantime, the clock data and the temperature data can also heading up a machine transmission through aRS232. consecution,credibility,stable work;Still have a physical volume in the meantime small,the power consume a low etc. characteristics, easy to take, the usage convenience.The system software design includes a single slice a plait distance with two parts of machine calculator.The calculator software plait distance mainly carries out a parameter constitution,string to go a people's data to receive,the instruction send out and data of manifestation with saving, the adoption Visual Basic languageplaitdistance.Singlelicethemachinesoftwareplaitdistance,LCDmanifestation,temperature examination each mold of etc. piece, adoption the C language plait distance.
That system goes and calculator correspondence through a string, the calculator give single slice machine hair the instruction carry out a data to collect and the system control, and is solid the data the ground send back a calculator.