以下是网学网为您推荐的电子机械-微量注射泵控制系统软件开发,希望本篇文章对您学习有所帮助。
机械设计制造及其自动化论文,论文编号:JX1245 论文字数:16422.页数:50
摘要
目前,我国大多数医院临床输液普遍采用人工方法,所需人力资源巨大,且不易管理。为此,我们研制一智能输液泵系统。虽然目前市场上已经出现了此类产品,但由于价格和精度等问题,在国内还没有被推广使用。微量泵有单、双和多通道之分,多通道可分别对多个通道设置、保存参数,本次毕业设计准备制作一单通道微量泵,将降低微量泵的生产成本和提高控制精度,这有助于微泵的推广应用。
在了解了微量注射泵的工作原理,性能指标和优缺点后,本文着重进行了微量注射泵的软件设计。微量注射泵控制系统采用单片机(STC89C58)作为主控芯片,降低生产成本;利用C51进行软件编程,提高编程效率;利用液晶屏LCD作为人机界面,显示中文菜单和命令,为用户提供了方便。
本文共分为绪论、正文(四章)和结论等六部分。
绪论主要介绍了本课题的背景和国内外发展现状等情况;
第二章介绍了微量注射泵控制系统的分析和总体方案的设计,包括微量泵要实现的功能以及应达到的性能指标等要求,根据具体的要求分析、选择合理的控制方案;
第三章简单介绍在本软件设计中涉及的硬件设备,包括按键扫描处理、LCD显示屏驱动、步进电机驱动等硬件介绍说明,主要用于软件功能的分析;
第四章是本文的重点,在这一章节中详细地叙述了微量注射泵的软件设计过程,以及各软件模块的功能和实现方法;
第五章介绍系统各软件模块的调试方法,以及系统整体调试的情况;
第六章是本次毕业设计的结论、参考文献和程序附录。
关键词: 微量注射泵 系统 软件设计 单片机
Abstract
Currently, the hospital used microinjection pump commonly known as "micro-pump" in the operating room to use more wards, to some extent alleviate the medical staff in the labor intensity, to provide sustained delivery, avoided a drug delivery and other peak effect on the human liver and kidney and other organ damage, greatly reducing the total amount of medicinal, to bring the Gospel of patients to medical staff convenience. As micro-pump to higher prices and promotes the use of domestic prices of a few thousand to 10,000 yuan, and import prices from 20,000 to 50,000 yuan,in a certain extent, limited its use, and hence the price factor is whether it can use its root causes. Clinical mercury sphygmomanometer in each of about 100 yuan, at all levels of medium and small hospitals generally use is a good proof. Therefore, produced a small microinjection pump is very meaningful.
After understanding the theory, the standards, the advanced and the disadvanced of the micro-injection pump, this article will put emphasis upon designing for its software.The system of the micro-injection pump adopt STC89C58 as a controller chip,to reduce cost; and use the C language to program for improving efficiency;and to provide a convenient way for users, we use a lcd screen as a man-machine device,that can display menus and commands in Chinese.
This article was divided by six parts ,and will show you as list as following:
The first chapter will introduce the background and development of the micro-injection pump in the world.
The second chapter will analysis fuctions, standards and requirements of the micro-injection pump. And according to that, we will give out a design of its controller’s system.
The next chapter will tell you some hardwares and devices, that was refered in software designing.It will say something about key scanning,lcd screen driving and step-motor driving,and so on, in order to analysis fuctions of software.
The fourth chapter is the most important part in this article. This part will introduce the process of software designing, and some fuctional modules and how it carry out.
The fifth chapter will debug the software that already completed.
The sixth part is conclusion about this graduating design,including some reference literatures and program list.
Key word : Micro-injection pump control system software designing MCU
目 录
摘要 i
Abstract ii
目 录 iii
第一章 绪论 1
1.1引言..1
1.2 国内外的现状及发展趋势..1
1.3 本课题主要研究内容.2
第二章 微量注射泵系统分析及总体方案设计 3
2.1功能及要求分析说明.3
2.2控制方案设计说明.4
第三章 微量注射泵控制系统硬件构成 5
3.1 控制系统硬件构成介绍.5
3.2 主控板介绍.6
3.3 LCD液晶屏选型7
3.4 步进电机驱动选择9
第四章 微量注射泵控制系统软件设计 10
4.1 系统总控制程序流程10
4.2各功能模块软件设计.11
4.3 头文件模块11
4.3.1 config头文件定义 12
4.3.2 keydisplay头文件定义 13
4.3.3 lcddriver头文件定义 14
4.3.4 LCD显示菜单头文件定义 14
4.4主函数模块介绍15
4.5 系统初始化模块介绍.16
4.6 T0中断控制程序模块介绍..18
4.6.1 键值读取模块介绍 18
4.6.2 LCD显示输出模块的介绍 20
4.7 LCD驱动模块介绍21
4.7.1 发送命令 24
4.7.2 发送数据 25
4.7.3 LCD初始化 25
4.7.4 字符串显示 27
4.8显示模块介绍..27
4.8.1 字符串显示 28
4.8.2 数字显示 28
4.8.3 数字调整模块 29
4.8.4 清除显示屏 30
4.9 键值处理模块介绍30
4.9.1 键值设定 31
4.9.2 功能键处理32
4.10 步进电机驱动模块介绍38
4.10.1 脉冲控制程序 38
4.10.2 步进电机状态参数控制程序 40
第五章 系统软件调试说明 42
5.1 按键调试..42
5.2 LCD显示调试..42
5.3 步进电机调试.42
5.4 整机调试43
第六章 总 结 44
致谢45
参考文献 46