单片机病床呼叫及输液监控系统(编辑修改稿)内容摘要:

le and simulation module with four integrated digital pipe display of Yang, dropping speed and hospital. When the module and simulation module press call selfclosing, host module can detect the first press the button, and hospital beds, and alarm. With the principle of using water, astigmatism photoelectric sensor detection of dropping speed. Using serial munication. This scheme, high precision and reliability of the system can satisfy the requirements. This design USES 8 bits STC89C52 microcontroller, has the advantages of small size, high capacity, and integration driven high, easy extension, high reliability, low power consumption, simple structure, interrupt handling ability, high processing speed. Keywords: SCM, Photoconductive resistance, 12864 LCD, Digital pipe, Serial munication 原理图 Q22N3906Q32N3906Q42N3906Q52N3906Q62N3906Q12N3906Q82N3906Q72N3906+51H 2H 3H 4H 5H 6H 7H 8H 1KR1Res21KR2Res21KR3Res21KR4Res21KR5Res21KR6Res21KR7Res21KR8Res2*Component_1*Component_11H 2H 3H4H5H 6H 7H8HA AB BC CD DE EF FGGDP DP150R10Res2150R12Res2150R14Res2150R17Res2150R11Res2150R13Res2150R15Res2150R18Res2ABCDEFGDP12345678RST91011121314151617XTAL218XTAL119VSS202122232425262728PSEN29ALE/PROG30EA/VPP313233343536373839VCC40U2P89C51RD2BN/011234567816151413121110910KR19Res Pack4+5+5+512Y2XTAL30pFC1Cap Semi30FC2Cap SemiXTAL1 XTAL21KR9Res2Q92N3906+5*1GNDD1LED01KR16Res2+5X12X23VCC21GND4RST5I/O6SCLK7VCC18U1DS1302+5 +31 2Y1XTALGNDGND10KR15Res2S1SWPB10μfC3Cap Pol2GND+5RST1234 5678*6n137200R21Res2200R20Res2+5+5TX RXGND1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2012864GND GND10KR30Res Tap+5+5 C1+1VDD2C13C2+4C25VEE6T2OUT7R2IN8R2OUT9T2IN10T1IN11R1OUT12R1IN13T1OUT14GND15VCC16U?MAX232ACPEC4CapC5CapC6Cap C7CapC8Cap+5GNDGNDGND2311411ALM324ADD1D Schottky2KR30Res21KR31Res2D2LED05KR32Res Adj2560R33Res2GND+5 浙江纺织服装学院毕业论文 12 清单 元件名称 型号 数量 用途 单片机 STC89C52 3 控制核心 晶振 3 晶振电路 电容 30pf 6 晶振电路 电解电容 10uf 3 晶振电路 电阻 10k 3 复位电路 按键 3 复位键 按键 3 病房数据传送按钮 按键 3 病房报警按钮 按键 6 病床编号设置按钮 电源 5v 1 电源供电 L78050V 5V 稳压 3 电源电路 4 位一体数码管 4 从站显示 液晶 12684 1 主站显示 三极管 8550 32 从站显示 电位器 103 1 液晶显示 蜂鸣器 有源 2 报警电路 三极管 8550 2 报警电路 发光二极管 2 报警电路 电阻 560 欧 2 报警电路 光敏电阻 2 液滴检测 稳压二极管 1 液滴检测 发光二极管 4 液滴检测 电位器 103 1 液滴检测 电阻 2k 1 液滴检测 LM324 gk8481c7 1 液滴检测 MAX232 2 串口通信电路 电解电容 3 串口通信电路 电线 30 米 串口通信电路 6N137 1 串口通信电路 源程序 //主机程序 include include define uchar unsigned char define uint unsigned int uchar flag,flag1,flag2,flag3,flag4,flag5,flag6,biao, wo,a,fan,num1,b,temp,shu,shu1,shu2,duo,hao,hao1,c,i4,i5,z,g,tt,tt1,shuzhi,yedi,i,qie,xs,cs, pan,huxian,q1,abc,abc1。 sbit SCLK=P1^0。 //位定义 1302 芯片的接口,时钟输出端口定义在 引脚 浙江纺织服装学院毕业论文 13 sbit IO=P1^1。 //位定义 1302 芯片的接口,数据输出端定义在 引脚 sbit RST=P1^2。 //位定义 1302 芯片的接口,复位端口定义在 引脚 sbit RS=P2^0。 //寄存器选择位,将 RS 位定义为 引脚 sbit RW=P2^1。 //读写选择位,将 RW 位定义为 引脚 sbit E=P2^2。 //使能信号位,将 E 位定义为 引脚 sbit BF=P0^7。 //忙碌标志位,将 BF 位定义为 引脚 sbit key=P1^4。 sbit key1=P1^5。 sbit key2=P1^6。 sbit d1=P1^3。 sbit fmq=P3^6。 uchar data table4[15]。 uchar data shuju[3]。 uchar code table0[]= 『星期 』。 uchar code table[]=※ 20 年 月 日。 uchar code table1[]=№ : : £。 uchar code table2[]={0123456789}。 uchar code table3[]= 温度 . ℃。 uchar code kaishi[]={ 欢迎使用医院病床 呼叫输液监控系统 程序初始化中 }。 uchar code bing[]={病床 液滴 }。 uchar code bing1[]={号 }。 uchar code bing2[]={d/min}。 uchar code hujiao[]={病床有人呼叫 }。 uchar code baoj[]={病床滴液异常 }。 uchar code bingc[]={病床 }。 void delay(uint z) { uchar a。 while(z) { for(a=0。 a115。 a++)。 } } void beep() { fmq=0。 d1=0。 delay(500)。 d1=1。 浙江纺织服装学院毕业论文 14 fmq=1。 delay(500)。 } void jianpan() { if(key==0) { delay(20)。 if(key==0) { shu=1。 while(!key)。 } } if(key1==0) { delay(20)。 if(key1==0) { shu1=1。 while(!key1)。 } } if(key2==0) { delay(20)。 if(key2==0) { shu2=1。 while(!key2)。 } } } void writelcd_(uchar ) //向 LCD 写指令 { RS=0。 RW=0。 E=0。 P0=。 delay(1)。 浙江纺织服装学院毕业论文 15 E=1。 delay(1)。 E=0。 } void writelcd_date(uchar date) //向 LCD 写数据 { RS=1。 RW=0。 E=0。 P0=date。 delay(1)。 E=1。 delay(1)。 E=0。 } void xy(uchar X,uchar Y) { uchar pos。 if(X==0) {X=0x80。 } else if(X==1) {X=0x90。 } else if(X==2)。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。