1、毕业设计毕业设计 多功能电子计价秤的设计 学生姓名学生姓名 学学 号号 学学 院院 计算机与信息工程学院 专专 业业 电子信息工程 班班 级级 指导教师指导教师 职职 称称 年年 月月 内容摘要内容摘要 生活中人们与质量、称重息息相关,小到天平,大到磅秤、地秤。最常见的莫过于 电子秤了,不论是超市的计数秤,还是体重秤。电子秤就是装有电子装置的秤,具有反 应速度快、测量范围广、应用面广、结构简单、使用操作方便、便于计算机控制等特点。 随着现代电子技术的不断进步,电子秤趋向小型化、智能化、集成化,精确度更高,携 带更加方便,从而广泛的应用到生活中的各个领域。 本设计是一个单片机控制的多功能电子计价
2、秤,采用 AT89C52 作为整个系统的控 制中心,通过键盘进行人机交互,并通过 LCD 使其具有数码显示,显示重量、单价、 总额等信息;具有去皮功能和总额累加计算功能;能预存 10 种商品的单价,可以随意 调出使用的功能。 本文主要可分为两大部分,系统硬件部分和系统软件部分。硬件部分主要包括重量 传感器、信号处理、A/D 转换、单片机、键盘输入和 LCD 模块等;软件部分主要内容 有主程序设计、程序流程图和子程序模块设计等。最后,本文还将附录仿真图和源程序 设计,以便参考之用。 关键词关键词 单片机;传感器;A/D 转换;电子秤;LCD ABSTRACT People in life is
3、closely related to the quality, weighing,smaller to balance, and bigger to the proud scale, truck scale. The most common way of electronic scale,not only counting scales in supermarket ,and your weighing scale. Electronic scale is equipped with electronic devices,it has quick response speed, wide me
4、asuring range, wide application, simple structure, convenient operation, easy to computer control and so on. With the progress of modern electronic technology, electronic scale tend to miniaturization, intelligence, integration, higher precision, more convenient to carry, which is widely applied to
5、every field of life. This design is a single-chip microcomputer control of multi-function electronic price computing scale, using AT89C52 as the control center of the whole system, through the keyboard for human interaction,and show the information such as weight, unit price, total amount; has the f
6、unction of peel and accumulative total computation; can deposit 10 kinds of the unit price of goods, and to use . This paper can be divided into two parts, the system hardware and system software. The hardware part mainly includes the weight sensor, signal processing, A/D conversion, single-chip microcomputer, keyboard input and LCD module, software part main content are the main program, program flow chart and the subprogram. Finally, the article will also appendix simulati