基于STC89C52单片机的医院门诊排队叫号系统设计 下载本文

目 录

前 言 .................................................................................................................................................. 1 第一章 单片机的概述 ...................................................................................................................... 2

第一节 单片机的定义和特点 ................................................................................................... 2

一、单片机的定义 ................................................................................................................ 2 二、单片机的特点 ................................................................................................................ 2 第二节 单片机的发展现状和趋势 ........................................................................................... 3

一、单片机的发展现状 ........................................................................................................ 3 二、单片机的发展趋势 ........................................................................................................ 4 第三节 编程语言的选择 ........................................................................................................... 5 第二章 系统方案论证 ...................................................................................................................... 6

第一节 设计要求 ....................................................................................................................... 6 第二节 单片机芯片的选择方案和论证 ................................................................................... 6 第三节 显示模块选择方案和论证 ........................................................................................... 6 第三节 系统方案选择和论证 ................................................................................................... 7 第三章 系统硬件设计 ...................................................................................................................... 9

第一节 protel99应用介绍 ...................................................................................................... 9 第二节 单片机处理部分设计 ................................................................................................. 10

一、时钟电路 ...................................................................................................................... 10 二、复位及复位电路 .......................................................................................................... 11 三、引脚介绍 ...................................................................................................................... 13 第三节 LCD1602介绍 .............................................................................................................. 15

一、显示原理 ...................................................................................................................... 15 二、基本参数及引脚功能 .................................................................................................. 15 三、指令说明及时序 .......................................................................................................... 16 第四节 时钟振荡电路 ............................................................................................................. 18 第五节 复位电路 ..................................................................................................................... 19 第六节 叫号电路 ..................................................................................................................... 19 第七节 按键电路 ..................................................................................................................... 20 第四章 系统软件设计 .................................................................................................................... 21

第一节 Keil介绍 .................................................................................................................... 21 第二节 程序流程图 ................................................................................................................. 22 第三节 部分程序代码 ............................................................................................................. 23

- I -

第五章 硬件调试 ............................................................................................................................ 25 结 论 ................................................................................................................................................ 28 致 谢 ................................................................................................................................................ 29 参考文献 ............................................................................................................................................ 30 附 录 ................................................................................................................................................ 31

一、英文原文: ........................................................................................................................... 31 二、英文翻译: ......................................................................................................................... 36 三、工程设计图纸: ................................................................................................................. 40 四、源程序: ............................................................................................................................. 41 五、详细器件清单: ................................................................................................................. 46

摘 要

排队叫号管理系统是针对银行、工商、税务、通讯、政府机构等部门的大厅工作流程设计的,是利用电脑的科学管理客户排队的系统,很好地解决了客户在服务机构办理业务时所遇到的各种排队、拥挤和混乱现象,为客户办理业务带来莫大的方便和愉悦。本课题研究的目的是研制一款无人排队的排队叫号机,它主要由主控制器、键盘、显示电路、蜂鸣器电路等部分构成。 系统利用单片机进行控制,通过串行通信方式传输处理数据;通过按键取号,在LCD1602上显示排队的号码以及当前正在等待的人数;通过按键叫号,在LCD1602上显示叫到的号码,由扬声器发出声音提示客户。同时免除了令客户不舒服的站立式排队,这种现代化的高科技产品彻底解决了医院普遍存在的站立等候,服务无序的问题,深化并完善了服务的质量。本系统采用单片机进行控制,利用LCD1602显示,蜂鸣器鸣叫提示的人机交互界面,模拟排队管理系统,科学地处理各种排队情况。操作简便,控制灵活,显示清晰,制作成本低,性价比较高。

【关键词】STC89C52 LCD1602 蜂鸣器

- II -

ABSTRACT

The queuing management system of the design is aimed at Banks, industry and commerce, taxation, communication, government institutions and other departments of the working process , Is using a scientific management system of customer queue ,is very good solution to the customers in the service agencies for business encounter all sorts of queuing crowded and chaotic phenomenon, for the customer has brought great convenience to transact business with pleasure. The purpose of this research is to develop a line of No queuing machine, and it mainly consists of the main controller, keyboard, display circuit, buzzer circuit part. System controlled by microcontroller, through serial communication mode processing data; through the key take number, LCD1602 lined up in display on the number and the number of waiting; through buttons, In LCD1602 display on the number, called by the speaker sound tip customers. Meanwhile from customers' uncomfortable stand type, the modernization of queue high-tech products thoroughly solved the hospitals widespread stood waiting, service disorder and perfected the problem, deepen the quality of the service. The system adopts single-chip microcomputer controlling, showing by LCD1602, man-machine interface of Buzzer chirping hinting, Simulating queue management system, Scientific dealing with various kinds of queuing. It has simple operation, control, display, making clear flexible low cost, high cost performance.

【Key words】STC89C52 LCD1602 buzzer

- III -