资源描述:
《本科论文基于单片机的智能传感器设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、xx大学学士学位论文基于单片机的智能传感器设计摘要随着自动化技术的发展和微电子技术的进步,以及现场总线技术的日益成熟,数控技术在生产过程中的应用越来越广泛,对现场信号的采集、传输和数据处理提出更高的要求。本论文阐述了现场信号通信的发展概况和智能变送器的现状,分析了智能变送器的作用和工作原理,针对应用中使用的不同的传感器输出不同幅值的弱直流电信号的要求,设计了智能变送器系统。它实现了弱直流电信号放大,并能根据信号的幅值大小来自动改变放大系数,提高测量灵敏度,对采样数据处理后,既能输出4~20mADC标准电流信号,又能通过RS—485总线与其他
2、上位机或同位机进行数字通信。系统根据传感器输出的信号范围通过编程设定由集成测量放大器AD623和非易失性数控电位器X9241组成的放大环节的增益,将弱信号放大到0~5VDC,通过多通道12位串行A/D转换器TLC2543进行A/D转换,将采集到的数据送给单片机80C52,由单片机进行滤波、标度变换等数据处理后,通过8位并行D/A转换器DAC0832将数据转换成4~20mADC信号输出,或通过隔离后的RS—485总线将数据传送给上位机。系统设计有独立的看门狗电路和EEPROM存储器电路,提高了系统可靠性。系统软件采用MCS—51单片机汇编语言
3、,模块化程序设计方法,设计了仪表监控主程序、放大器增益设定程序、ADC转换和处理子程序、DAC转换等子模块,并设计了相应的通信协议。关键词 智能变送器;通信;单片机;现场总线;测量信号-II-xx大学学士学位论文Intelligentsensorbasedonsingle-chipdesignAbstractWiththedevelopmentofAutomationandtheprogressofthemicroelectronicstechnology,andthematureofFieldBus,digitalcontroltechn
4、ologyiswidelyusedinproductionprocess,socollection,transitionandtreatmentofsignalshouldmeethigherrequirements.Thisthesisisaboutgeneraldevelopmentoffieldsignalcommunicationandstatusofintelligenttransducer,analyzesfunctionandoperationprincipleofintelligenttransducer.Thetransd
5、ucerisdesignedchieflyfordifferentweakoutputsignalofnon-standardsensors.Itcanamplifytheweaksignal,altertheamplificationfactoraccordingtothesizeoftheweaksignalandimprovesystemsensitivity.Aftersampledataprocessed,itnotonlycanoutput4~20mAstandarddirectcurrent,butalsocancommuni
6、catewithothercomputersandsinglechipbymeanofRS—485bus.Accordingtotheoutputsignalrangeofthesensor,thesystemsetsthegainofamplificationlinkwhichiscomposedofAD623andX9241bywayofprogram,amplifiestheweaksignaltoDC0~5V,thenmakesA/Dtransitionthrough,multi—passagesand12bitTLC2543,br
7、ingsthesampleddatatosinglechip89C52,filteringthedata,andtransferringsurveyoretc,thentransitsthedatato4~20mADCsignalbyDAC0832,orsendsthedatatoothercomputersthroughisolatedRS—485bus.ThedesignofthesystemhasitsownseparatewatchdogandEEPROMmemorycircuit;Thereforeitcanimprovesyst
8、emreliability.Softwareofthesystemdesignsmainprogram,amplifiergainsettingprogram,ADCtransi