精品文档---下载后可任意编辑摘 要随着科学技术的不断开展,单片机在多个领域均有应用,其中电子秤作为其中之一在日常生活中已经非常普遍。本论文主要论述的内容为基于单片机的小型超市电子秤的设计。本文主要论述基于单片机的小型超市电子秤的设计与实现。本系统的控制核心为单片机,此外还包括 A/D 转换模块、矩阵键盘、显示模块等电路。主要实现重量显示手动输入单价并自动显示总价的功能,有用性高。硬件局部的核心是 AT89C52 单片机,对整个系统进行控制,输入端用压力传感器进行数据采集并转变为电压信号,再将模拟量传递给 24 位的 A/D 转换芯片 HX711 转换为数字量后送入单片机,手动输入物品单价,经单片机处理后由液晶显示屏显示物品重量,单价和总价。本文内容主要为:绪论、系统元器件选型、硬件电路设计、软件编程以及实物调试。系统软件局部采纳 c语言编程,其中包括转换程序、数字处理程序、显示程序、报警程序等。本系统根本实现了预期的实验结果,实现的功能功能有物品称重、单价输入、总价计算以及超重报警。关键词:单片机;电子秤;c 语言I精品文档---下载后可任意编辑AbstractWith the development of science and technology, single chip has been used in many fields, including electronic scales as one of which has been very common in everyday life.This paper mainly discusses the design of small supermarket electronic scale based on single chip microcomputer.This paper mainly discusses the design and implementation of the electronic scale of small supermarket based on MCU. The whole system is the core of the microcontroller, and contains the matrix keyboard, conversion chip, display circuit, reset circuit, etc.The main realization of the weight display, manually enter the unit price and automatically display the total value of the function, high practicality. Hardware part is to STC89S52 SCM as the core control, data acquisition by a pressure sensor, again by 24 bit AD conversion chip hx711 convert analog to digital quantity into the microcontroller, manually enter the item pric...