1、摘要 I 商用电子秤的设计 摘要 在日常生活中,经常需要测量物体的质量,测量的准确性从而显得很重要。称重技术 的改革影响着人民的生活,随着计量技术和电子技术的发展,以前常用的纯机械结构的杆 秤、台秤等存在不精确、速度慢、不能计价易作弊等问题,已逐步被电子产品替代。本次 电子秤设计将运用单片机来完成,具有小型化、智能化、准确度高等特点。 本设计以 51 系列单片机 AT89S52 为控制核心,实现电子秤的基本功能,即准确采集 物体的质量,直观显示重量、单价及总价,并可对不同物品的重量、单价进行调整,此外 系统还具有超量程报警功能。显示部分采用的是 1602 液晶显示器,运用独立式键盘实现 重量、
2、单价的调整和切换显示功能。软件设计以 C 语言作为编程语言,采用模块化编程思 想,在 Keil uVision开发环境下编写应用程序,结合硬件电路做整体调试,最终实现了所 设计功能。整个系统结构简单、使用方便、功能齐全、精度高,具有一定的实用价值。 关键词:电子秤;单片机;1602 液晶;独立键盘 ABSTRACT II The Design of Commercial Electronic Scales ABSTRACT In our daily life,we usually measure somethingswight.The accuracy of measurement seem
3、to be very important.The reform in weighting technology is affecting our life. With the development of measurement technology and electronics,the traditional mechanical steelyard which we used previously are sifted out step by step.Because the problem which including inaccuracy、slow、valuation or eas
4、y to cheating can be resolved by electronic products.The design is based on programming of SCM,then it can transform products to be minitype、 modularization and intelligentize,the technical function of products become faster、more accurate and more reliable. The design for the control of 51 computers AT89S52 core, to achieve the basic control functions of electronic scales.measuring the weight exactly、displaying the weight and unit price exactly、 displaying the total price exactly、 displa