- 1、本文档共80页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于C8051F350的称重系统软件设计
摘 要
随着对称重仪表的准度、精度、速度的要求越来越高,快速发展的单片机被运用到其中并逐步形成了一套集称重、处理、显示、和监控的电子称重系统。本文介绍了电子称重系统的工作原理、硬件电路设计,重点介绍了软件设计。本系统在设计中紧密结合市场需求,参考了国内著名的称重仪器生产商的产品,并且在功能设计上进行了一些新的改进。本系统采用目前使用最广泛、技术较为成熟的SOC单片机C8051F350作为控制核心,实现了自动采样、处理、显示功能,并能通过异步串行口与上位机通信。其中测量功能由以MAVIN足立NA2型传感器为核心的传感器电路、以OPA27为核心的放大电路和单片机内部的24位A/D转换实现;显示电路采用LCD显示。整个系统具有精确、快捷、方便、实用的显著特点
关键词: 称重系统;C8051F350;传感器;A/D转换;LCD
ABSTRACT
With the more and more higher request of the accuracy, precision and speed of weighing instrument, the singlechip with rapidly development is applied and a suit of electronic weighing system including weighing, processing, displaying and monitoring has been formed gradually. This text introduces the work principle, the hardware electronic circuit design, especially the software design of the electronic weighing system. During the process of design, the demand of market was especially noticed, many products of domestic famous weighing instrument producer were consulted and some new improvements were made on the function design. The system uses SOC SCM C8051F350 which is most extensively applied currently and relatively mature on techinique as the core of control, realizing the function of sampling, processing and displaying automatically, and can communicate with epigyny computer through the asynchronous serial port. Thereinto the measure is completed by sensor circuit based on MAVIN NA2 sensor, amplification circuit based on OPA227 and A/D converter in C8051F350, the LCD is applied in displaying circuit, which makes the whole system has the marked characteristics of precise, fast, convenience and applied.
Keyword: weighing system; C8051F350;Sensor;A/D conversion;LCD
摘 要 I
ABSTRACT II
第一章 绪 论 1
1.1 课题来源 1
1.2 课题研究的目的和意义 1
1.3 国内外现状 2
1.4 论文的主要内容 2
第二章 设计要求 3
2.1总体要求 3
2.2性能指标 3
2.3本章小结 3
第三章 硬件设计 4
3.1 仪器功能简介 4
3.2 硬件设计 4
3.2.1系统原理框图 4
3.2.2电路分析 4
3.3 本章小结 10
第四章 系统软件设计 12
4.1主程序的设计 12
4.2子程序的设计 13
4.2.1时钟初始化子程序 13
4.2.2 I/O端口初始化子程序 18
4.2.3 A/D转换初始化子程序 22
4.2.4 A/D转换子程序 29
4.2.5显示子程序 33
4.2.6
文档评论(0)