DS18B20分组方式温度测试系统设计
DSI.VIIIBII0分组方式温度测试系统设计
摘要当用于多点测温时,所有的DSI.VIIIBII0都连接在单片机的某根总线上,采用轮流采集温度数据的方式.当系统有多个传感器时,单片机用于处理温度数据的时间就会明显延长,从而导致测温系统周期增长.在本文中,采取对DSI.VIIIBII0合理的分组的方式,并在软件上采取I.定措施,从而明显的提高交替检测速度.
关键字:DSI.VIIIBII0,温度测试,交替检测时间.
引言
由于结构简单,安装方便,损耗低和测温范围宽,DSI.VIIIBII0温度测试传感器被广泛应用于需要多点温度测试的地方,如化工,粮食,环境监督等.由于多点温度检测系统采用单总线方式,所有DSI.VIIIBII0传感器挂在I.条总线上,需要轮流阅读每个测试点的温度转换值.由于读取单个传感器的转换值必须阅读VIII次引脚的状态,并要进行移位存储数据,所以系统在阅读I.个点的数据时需要花不少时间.如果温度测试系统规模较大,系统由它引起的损耗是相当多的,从而交替测试该系统的速度明显降低,这会严重影响多点温度检测系统的效率.在本文中,DSI.VIIIBII0平均分租并挂到多根I/O线上,通过同时读取DSI.VIIIBII0的状态得到转换的温度数据,从而明显提高交替检测速度,同时又不会影响转换的精度和可靠性.本文实现I.套人工环境实验室多点温度测试,明显提高原有测试系统测试效率.
DSI.VIIIBII0的特性
DSI.VIIIBII0是美国达拉斯公司研制的单总线数字温度传感器.DSI.VIIIBII0是由VIIV数字光刻印ROM,温度敏感性组成元件,非易失性温度报警触发器(设备TH和TL)组成.DSI.VIIIBII0与单片机的通信采用单线接口,DSI.VIIIBII0测试范围是从-VV摄氏度至+I.IIV摄氏度,温度 *好棒文|www.hbsrm.com +Q: 3 5 1 9 1 6 0 7 2
变换为数字可在VIIII0ms内完成.每个DSI.VIIIBII0有唯I.的VIIV位数据序列号.具体内容透露,作为图I.:有两个VIII位数据储存(0号和I.号),用于存储在DSI.VIIIBII0温度值.0号存储存储补充温度值,并定义温度值的符号.用户可以定义非易失性温度报警设置和区分报警搜索顺序,并寻求该组件的温度外的预定上限报警状态.有两种信号总线高层:电源供应借用电源,或直接采用外部+VV电源.
VIII-位crc码IVVIII-位串行口VIII-位FAMILY码
应用分组测试方法
本文阐述了DSI.VIIIBII0和VIIIIXCVII接口的分组方法.假设量PI.口的总线数为IV,温度测试系统需要I.00个DSI.VIIIBII0传感器,它可以被平均分布到IV个I/O线.如果传感器的数量不能被总线数目整除,可使连在总线上的传感器数量差别不超过I.个,这样读数时就能解决.每个DSI.VIIIBII0的电源由外部提供,较强的同步转换电流是必不可少的,不能用信号线供电,否则该系统无法正常工作.当读取和写入DSI.VIIIBII0时,必须严格的保留时间表.复位脉冲被发送到所有DSI.VIIIBII0.复位后,从I/O端口发送跳转ROM命令,跳转后,匹配ROM命令同时发送到每个电路,并VIIV位的序列号被发送.DSI.VIIIBII0选择用于每组,读取ScratchPad数据.最后进行数据转化,串行读数据被变换成实际温度值.周期性阅读IIV次将所有DSI.VIIIBII0的温度数据完全读完.
实例设计
沥青运输车辆是用于材料领域和道路之间的主要交通运输设备.由于沥青运输车辆在高寒地区作业或运输距离过长时不可避免的产生温度降低.这会II影响路面的摊铺质量,所以必须根据外壳的散热状况采取具体的保温措施.本文设计了I.套采用DSI.VIIIBII0分组模式测试沥青的温度和运输车辆的外壳,总共I.II0个点.温度测试系统软件采用模块化设计.该hypogenous机采集数据,存储数据,建立了DSI.VIIIBII0,无线运输等.该epigenous机采用PC机,主要是接收温度数据并进行显示,存储和数据管理.该人与机器之间的简单通信由epigenous机上进行.本文将不说明在epigenous机的简单程序细节.下面是hypogenous的部分的插图机.包括系统硬件的组成部分,软件的功能和过程.
系统硬件
考虑的多点温度数临时存储期间相当大的内部RAM值转换,主要控制芯片采用ATMELVIIIIXCVII单片机与IIVVI字节RAM和VIIIKB的EIIPROM程序存储.作为DSI.VIIISII0的区别代码读取和编号,液晶模块(AO克拉中国集成模块OCMJ锦鹏公司)和键盘模块是补充说.无线数字传输采用无线模块在整个接收发送形式IIIVIIV模块,这V月有两个业余频段选择和调控波特率(最大为II0Kbit/秒),单芯片微机串口数据可以直接接收.该系统的硬件结构如图VII所示:图VII系统硬件图DSI.VIIIBII0,具有电源,分成VIII组挂在PI.口(PI..0-PI..VII).无线模块挂在直接串行端口和硬件看门狗采用MAXVIIII.III芯片.当电源被加到系统中,反转信号从MAXVIIII.III发送回归引脚,逆向脉冲的值是II00毫秒.当该程序是在命令,I.个脉冲信号必须被发送到MAXV *好棒文|www.hbsrm.com +Q: 3 5 1 9 1 6 0 7 2
IIII.III的WDI引脚在比I..VI秒的间隔不清除看门狗定时器.如果该间隔大于为I..VIs,没有接收到脉冲信号,然后将VIIIIXCVII必须扭转.I.II0DSI.VIIIBII0的序列号必须被存储在系统中,数据存储DSI.IIIIV(VIIIK)对电源故障被显影.
系统软件部分DSI.VIIIBII0的收集和转换数据,执行无线通信,管理键盘等等.对于便利的程序调试和可靠性,采用模块设计,主要包括键盘处理模块,无线通信模块,所述温度的采集和处理时,显示模块等.VIIIIXCVII自我检查,然后分配每个分支程序模块.首席过程管理的键盘,初始化系统和传输各功能模块.长途线保持执行DSI.VIIIBII0的编辑任务.序号I.II0点DSI.VIIIBII0是读通过键盘和显示器协调到DSI.IIIIVY上的编号.第I.,无线模块被设置为接收状态接收采集参数和启动顺序(传输内容包传送;相同的内容被发送III次;两个在外的逻辑执行按位.
该epigenous机软件流程图
无线模块被设置为睡眠状态,在进行温度数据上传时设置为发送状态.将温度数据和DSI.VIIIBII0系统编号发送给上位机.采集和转换部分启动DSI.VIIIBII0转换,读取温度数据和存储数据通过分组的方法.下面主要为收集和转换模块的内容:
无效的get_温度(无效)
{UCHARI,J,temp_LSB,temp_;(i=0;I {skip_rom(I);//跳过序列号检查write_bytes(0×IVIV);}
//(J=0;? //延长时间为0.I.秒,等待转换结束延迟(I.000);}
对于(J=0;? {MATCH_ROM(J);READ_存x(J);}
//(J=0;? {temp_lsb=temp_pad[J][0];
//温度值的数据转换
temp_msb=temp_pad[J][I.];
temp_lsb>>=IV;temp_msb<<=IV;
temp_lsb|=temp_msb;temp_msb=(temp_lsb/I.0);
temp_msb<<=IV;temp_lsb%=I.0;
temp_lsb|=temp_msb;temperature_德维尔[J]=
temp_lsb;}}
总结
作者创建以下新思路????
I.?通过分析单总线方式和分组方式的多点温度测试系统的交替检测时间的差别,得出分组方式能明显提高交替检测速度.
II?设计了I.套DSI.VIIIBII0分组方式的无线多点温度测试系统,这套系统已经被应用于沥青运输车的技术改造中,并取得良好效果.
附件II:外文原文(复印件)
ADesignoftheTemperatureTestSystemBasedonGroupingDSI.VIIIBII0
Abstract-AlltheDSI.VIIIBII0sensors,usedforthemultiplanttesttemperature,areconnectedwithMCUononeofIObus,andtemperaturedataarecollectedbyturns.Ifthesystemhasaglareamountofsensors,thetimeofMCUusedinprocessingthetemperaturedataisobviouslyprolonged,sothecycleofalternatetestgetslonger.Inthispaper,anewmethodthatmeasuresaretakeninsoftware;asaresult,thespeedofalternatetestadvancesdistinctly.
Keywords-DSI.VIIIBII0Group,temperaturetest,time
spentonthealternatetest.
I.INTRODUCTION
Asthesimplestructure,convenientinstallment,lowlossandwiderangeoftemperaturetest,DSI.VIIIBII0temperatenesssensorsareappliedtothefieldswhichneedthemultigenerationaltest,suchasthechemicalindustry,thegrain,microenvironmentsupervisionandsoon.BecauseoftheadoptionofonebusintheDSI.VIIIBII0multiporttemperaturetestsystem,allDSI.VIIIBII0arehungononebus,andthenthetemperatureconversionvalueofeachtestpointisreadbyturns.Astheconversionvaluemustbereadafterreading-pinstateforVIIItimes,andpositionandstoredatamustbemoved,sotimespendmuchinreadingonepointofthedatasystembyevery
time.Ifthetemperaturetestsystemislarge-scaled,thesystemlosscausedbyitisrathermuch,andthenthealternatetestspeedofthesystemdecreasesobviously,whichinfluencestheefficiencyofthemultiplanttemperaturetestsystemseriously.
Inthispaper,DSI.VIIIBII0arehungonsomeI/ObusesbygroupingDSI.VIIIBII0evenly,andtheconversiontemperaturedataisobtainedbyreadingthestateofDSI.VIIIBII0,thenthesystemlossdecreasesandthealternatetestspeedincreasesobviously,whichwon’tinfluencetheandthereliabilityoftheconversion.Asetofmultipoletemperaturetestofartificialenvironmentlaboratoryisachievedinthispaper,whichincreasesthetestefficiencyoftheformersystem.????????CHARACTERISTICSOFDSI.VIIIBII0
DSI.VIIIBII0isthesinglebusdigitaltemperaturesensorfromAmericanDallasCompany.DSI.VIIIBII0isconsistedoftheVIIVfiguresROMengravedbylaser,thetemperaturesensitivitycomponent,non-volatiletemperaturealarmstrigger(DeviceTHandTL).DSI.VIIIBII0communicateswiththemicroprocessorbythesinglebusportandthetestrangeofDSI.VIIIBII0isfrom-VVcentigradeto+I.IIVcentigrade,andtheincrementalvalueis0.Vcentigrade.ThetemperaturecanbechangedintofigureswithinVIIII0msandeachDSI.VIIIBII0hasthesoleVIIVfiguresaretwoVIIIfiguresstorages(No.0andNo.I.)forstoring
temperaturevalueinDSI.VIIIBII0.No.0storagestorescomplementofthetemperaturevalue,andNo.I.storessymbolsofthetemperaturevalue.Theusercandefinenon-volatiletemperaturealarmssetsanddistinguishthealarmssearchorderandseekthecomponenttemperaturealarmsstateoutsidethescheduledlimit.Therearetwoalternativewaysofpowersupply:Signalbushigh-levelborrowpowerisadopted,orthe+Vvpowersupplyexternallyisadopteddirectly.
????.
APPLICATIONTHEGROUPINGTESTMETHOD
ThispaperillustratesthegroupingmethodwiththeinterfaceofDSI.VIIIBII0andVIIIIXCVII.AssumingtheamountofthebusesonPI.portisIVandthetemperaturetestsystem
needsI.00DSI.VIIIBII0sensors,whichcanbedistributedequallytotheIVI/Olines.Ifthenumberofsensorscannotbedividedbythenumberofbuseseven,thenumberdisparityofsensorsonbusesisnomorethanone,whichcanbehandledwhile
readingnumbers.Thepowerissuppliedexternally.OwningtothesynchronisticconversionineachDSI.VIIIBII0,theintensecurrentisneeded,andthesignalbuscannotbeusedforthepowersupply,otherwisethesystemcannotworkinorder.TheschematiccircuitisshownasFigII(theDSI.VIIIBII0signalbusesofthesamegrouparehungonsomebusesofPI.port).WhenreadandwritetheDSI.VIIIBII0,thestrictschedulemust
bekept.FirstareversionpulseissenttoallDSI.VIIIBII0.Afterthereversion,SkipROMorderissenttoeachcircuitsimultaneouslyfromtheI/Oport,andtheconversionorderissent,thenallsensorsbegintransform.Aftertheconversion,MatchRomorderissenttoeachcircuitsimultaneously,andVIIVbitsserialnumberissent.DSI.VIIIBII0isselectedforeachgroup,andScratchPaddataisread.Finallythedatais
transformed.Thedataofserial-readistransformedintotheactualtemperaturevalue.OnealternatetestisfinishedaftertheDSI.VIIIBII0temperaturedataisreadcompletelybythecyclicalreadingforIIVtimes.Thewholeflowchartisshown
asFigIII.
Authorizedlicenseduselimitedto:CHONGQINGUNIVOFPOSTANDTELECOM.DownloadedonDecemberI.IX,II00IXatIIII:IV0fromIEEEXplore.Restrictionsapply.
FigIIDSI.VIIIBII0groupingsketchmap
FigIIIthediagramofcollectingtemperaturebygroupedDSI.VIIIBII0
Nowthetime-consuminginthetestsystemofthesinglebusandthegroupinganalysesmethodisillustratedrespectively.Thereversiontimesequenceandthetime
sequenceofwritingandreadingonebitforthemicroprocessorarerevealedinfiguresIV-VI.Thefigureshow:ThereversionperiodofDSI.VIIIBII0isIVIXVus-I.0II0us;thewritingperiodofonebitisVI0us-I.II0us;thereadingperiodofonebitisaboveVI0us;thespanofwritingorreadingthenextbitisI.us.AstheA/DconversiontimeisIXVII.IIIVms(IXprecisions),ifitiscountedbytheshortestway,thetotaltime-consumingofalternatetestiscalculatedrespectivelyasfollows:
(I.)SinglebusIVIXVus+II*(VIII*VI0+VII)us+IXVII.IIIVms+IVIXVus+I.00*(VIIV*VI0+
VIIII+VIII*VI0+VII+IX*VI0+VIII)us=VVII.VIIIIVms
(II)Groupingmode
IVIXVus+II*(VIII*VI0+VII)us+IXVII.IIIVms+II0(VIIV*VI0+VIIII+VIII*VI0+
VII+IX*VI0+VIII)us=I.VIIIIX.VIII0IVms
Asthesmallproportionofthenumerationsystemconversionandthestoragetimeinthewholeperiod,theunknowncrystal-oscillatorfrequency,thenumerationsystem
conversionandstoragetimeisnotcounted.Accordingly,thealternatetesttimewhichgroupingmodeconsumesismuchshorterthansinglebusmodeobviously
FigIVDSI.VIIIBII0reversiontimesequence
FigVthetimesequenceforwritingonefigureinDSI.VIIIBII0
FigVIthetimesequenceforreadingonebitinDSI.VIIIBII0
IV.EXAMPLEOFTHEDESIGN
Theasphalttransportationvehicleisthemaintransportationequipmentbetweenthematerialfieldandroadsurface.Theunavoidabletemperaturedecreasingbecauseof
theasphalttransportationvehicle’slongworkingandtransportationdistanceinfluencesthepavingqualityoftheroadsurface,thespecificmeasuresmustbetakenaccordingtotheheatreleaseoftheshell.Thispaperdesignedasetof
wirelesstemperatureusingDSI.VIIIBII0groupingmodetestsystemfortestingthetemperatureoftheasphalttransportationvehicleshell,andthetotalpointsisI.II0.Temperaturetestsystemsoftwareadoptsthemodulardesign.Thehypogenousmachinecollectsdata,storesdata,setsupDSI.VIIIBII0,andsendsthewirelessmoduleandsoon.TheepigenousmachineadoptsPCmachines,mainlyreceivesthetemperaturedatafromthehypogenousmachine.Theepigenousmachinedisplays,storesandmanagesdata.Thesimplecommunicationbetweenpeopleandmachinesisperformedbytheepigenousmachine.Thispaperwillnotillustratethesimpleprocedureoftheepigenousmachineindetail.Thefollowingistheillustrationofpartsofhypogenousmachine.includingthecomponentsofsystemhardware,softwarefunctionsandprocess.
Authorizedlicenseduselimitedto:CHONGQINGUNIVOFPOSTANDTELECOM.DownloadedonDecemberI.IX,II00IXatIIII:IV0fromIEEEExplore.Restrictionsapply.
SystemhardwareConsideringthemultiplanttemperaturenumberofthetemporarystorageandtheconsiderableinternalRAMduringthevalueconversion,thechiefcontrollingchipadoptsATMELVIIIIXCVIISingle-ChipMicrocomputerwithIIVVIbytes
RAMandVIIIKBEIIPROMprocedurestorage.AsthedistinguishablecodeofDSI.VIIISII0isreadandnumbered,theliquidcrystalmodule(AmoKolaChineseintegratedmoduleof
OCMJJinPengCompany)andthekeyboardtransmissionadoptsthewirelessmodule????????????????????????????????inthewholeeareadded.Thewirelessdigitalinterception-sendingform,whichmayhastwoamateurbandstochooseandtheregulativeBaudRate(themaxisII0Kbit/s),andtheSingle-ChipMicrocomputerserialportdatacanbereceiveddirectly.
reversionsignalistransmittedfromtheMAXVIIII.IIIreversionpin,andthevalueofthereversionpulseisII00ms.Whentheprocedureisinorder,apulsesignalmustbesenttoMAXVIIII.IIIWDIpininnomorethantheintervalofI..VIstoclearawaythewatch-dogtimer.IftheintervalismorethanI..VIs,thepindoesnotreceivethepulsesignal,andthentheVIIIIXCVIImustbereversed.AsI.II0DSI.VIIIBII0serialnumbersmustbestoredinthesystem,thedatastorageDSI.IIIIV(VIIIK)againstthepowerfailureisdeveloped.
Systemsoftwarefunctionandprocess
ThesoftwarepartofthetemperaturetestsystemnumbersDSI.VIIIBII0,collectsandtransformsdata,performsthewirelesscommunication,manageskeyboardandsoon.Fortheconvenienceoftheproceduredebuggingandthereliability,themoduledesignisadopted,mainlyincludingthekeyboardprocessingmodule,thewirelesscommunicationmodule,themoduleoftemperaturecollectionandprocessing,thedisplaymoduleandsoon.ThesoftwareflowchartisshownasFigVIIIAfterthereversionofaddpower????VIIIIXCVIIself-checksfirst,thenallocateseachbranchproceduremodule.Thechiefproceduremanagesthekeyboard,initializesthesystemandtransferseachfunctionalmodule.ThehaullineiskepttoperformDSI.VIIIBII0editmission.I.II0pointsserialnumberofDSI.VIIIBII0isreadbythekeyboardanddisplaycoordinationandnumberedintoDSI.IIIIVY.Firstthewirelessmoduleissetupasthereceptionstatetoreceivethecollectionparametersandstarttheorder(Thetransmissioncontentissentbypack;thesamecontentissentforthreetimes;twooutofthreelogicisperformedaccordingtothebit).
Thewirelessmoduleissetupasthesleepstateduringtheconversionandthetransformingstateduringthetemperaturedatatransmission.PackingsendsthetemperaturedataandtheDSI.VIIIBII0numbersinthesystemtoepigenousmachine.The
partsofcollectionandconversionstarttheDSI.VIIIBII0conversion,readthetemperaturedatabygroupingmethods,storedataandsoon.Thefollowingprocedureisthemain
contentofcollectingandconversionmodules:
voidGet_Temperature(void)
{uchari,j,temp_lsb,temp_msb;
for(i=0;i {skip_rom(i);//skipovertheserialnumberstocheck
write_bytes(0xIVIV);}
//transformthetemperatureineachcircuitatthesametime
for(j=0;j //prolongthetimefor0.I.s;waitfortheendofconversion
{delay(I.000);}
For(j=0;j {match_rom(j);read_scratchpads(j);}
//eachtemperaturevalueisreadinVIIIbuses
for(j=0;j {temp_lsb=temp_pad[j][0];
//thedataconversionofthetemperaturevalue
temp_msb=temp_pad[j][I.];
temp_lsb>>=IV;temp_msb<<=IV;
temp_lsb|=temp_msb;temp_msb=(temp_lsb/I.0);
temp_msb<<=IV;temp_lsb%=I.0;
I.IX0II00VIISecondIEEEConferenceonIndustrialElectronicsandApplications
Authorizedlicenseduselimitedto:CHONGQINGUNIVOFPOSTANDTELECOM.DownloadedonDecemberI.IX,II00IXatIIII:IV0fromIEEEXplore.Restrictionsapply.
temp_lsb|=temp_msb;temperature_vel[j]=temp_lsb;}}
IV.CONCLUCTION
Authorscreatethefollowingnewideas????I.????Alternatetesttimedifferenceofthemultipowertemperaturetestsysteminthegroupingmethodandthesingle
busmethodisanalyzed,thenthealternatetestspeedcanbeincreasedgreatlybygroupingmethod.
IIAsetofwirelessmultiporttemperaturetestsystemisdesignedbyDSI.VIIIBII0groupingmethod.Thissystemisappliedtothetechnologyreformoftheasphalttransportation
vehicleinsomedomesticlarge-scaleengineeringmechanicalcompanyandthegoodresultoftheapplicationisachieved.
摘要当用于多点测温时,所有的DSI.VIIIBII0都连接在单片机的某根总线上,采用轮流采集温度数据的方式.当系统有多个传感器时,单片机用于处理温度数据的时间就会明显延长,从而导致测温系统周期增长.在本文中,采取对DSI.VIIIBII0合理的分组的方式,并在软件上采取I.定措施,从而明显的提高交替检测速度.
关键字:DSI.VIIIBII0,温度测试,交替检测时间.
引言
由于结构简单,安装方便,损耗低和测温范围宽,DSI.VIIIBII0温度测试传感器被广泛应用于需要多点温度测试的地方,如化工,粮食,环境监督等.由于多点温度检测系统采用单总线方式,所有DSI.VIIIBII0传感器挂在I.条总线上,需要轮流阅读每个测试点的温度转换值.由于读取单个传感器的转换值必须阅读VIII次引脚的状态,并要进行移位存储数据,所以系统在阅读I.个点的数据时需要花不少时间.如果温度测试系统规模较大,系统由它引起的损耗是相当多的,从而交替测试该系统的速度明显降低,这会严重影响多点温度检测系统的效率.在本文中,DSI.VIIIBII0平均分租并挂到多根I/O线上,通过同时读取DSI.VIIIBII0的状态得到转换的温度数据,从而明显提高交替检测速度,同时又不会影响转换的精度和可靠性.本文实现I.套人工环境实验室多点温度测试,明显提高原有测试系统测试效率.
DSI.VIIIBII0的特性
DSI.VIIIBII0是美国达拉斯公司研制的单总线数字温度传感器.DSI.VIIIBII0是由VIIV数字光刻印ROM,温度敏感性组成元件,非易失性温度报警触发器(设备TH和TL)组成.DSI.VIIIBII0与单片机的通信采用单线接口,DSI.VIIIBII0测试范围是从-VV摄氏度至+I.IIV摄氏度,温度 *好棒文|www.hbsrm.com +Q: 3 5 1 9 1 6 0 7 2
变换为数字可在VIIII0ms内完成.每个DSI.VIIIBII0有唯I.的VIIV位数据序列号.具体内容透露,作为图I.:有两个VIII位数据储存(0号和I.号),用于存储在DSI.VIIIBII0温度值.0号存储存储补充温度值,并定义温度值的符号.用户可以定义非易失性温度报警设置和区分报警搜索顺序,并寻求该组件的温度外的预定上限报警状态.有两种信号总线高层:电源供应借用电源,或直接采用外部+VV电源.
VIII-位crc码IVVIII-位串行口VIII-位FAMILY码
应用分组测试方法
本文阐述了DSI.VIIIBII0和VIIIIXCVII接口的分组方法.假设量PI.口的总线数为IV,温度测试系统需要I.00个DSI.VIIIBII0传感器,它可以被平均分布到IV个I/O线.如果传感器的数量不能被总线数目整除,可使连在总线上的传感器数量差别不超过I.个,这样读数时就能解决.每个DSI.VIIIBII0的电源由外部提供,较强的同步转换电流是必不可少的,不能用信号线供电,否则该系统无法正常工作.当读取和写入DSI.VIIIBII0时,必须严格的保留时间表.复位脉冲被发送到所有DSI.VIIIBII0.复位后,从I/O端口发送跳转ROM命令,跳转后,匹配ROM命令同时发送到每个电路,并VIIV位的序列号被发送.DSI.VIIIBII0选择用于每组,读取ScratchPad数据.最后进行数据转化,串行读数据被变换成实际温度值.周期性阅读IIV次将所有DSI.VIIIBII0的温度数据完全读完.
实例设计
沥青运输车辆是用于材料领域和道路之间的主要交通运输设备.由于沥青运输车辆在高寒地区作业或运输距离过长时不可避免的产生温度降低.这会II影响路面的摊铺质量,所以必须根据外壳的散热状况采取具体的保温措施.本文设计了I.套采用DSI.VIIIBII0分组模式测试沥青的温度和运输车辆的外壳,总共I.II0个点.温度测试系统软件采用模块化设计.该hypogenous机采集数据,存储数据,建立了DSI.VIIIBII0,无线运输等.该epigenous机采用PC机,主要是接收温度数据并进行显示,存储和数据管理.该人与机器之间的简单通信由epigenous机上进行.本文将不说明在epigenous机的简单程序细节.下面是hypogenous的部分的插图机.包括系统硬件的组成部分,软件的功能和过程.
系统硬件
考虑的多点温度数临时存储期间相当大的内部RAM值转换,主要控制芯片采用ATMELVIIIIXCVII单片机与IIVVI字节RAM和VIIIKB的EIIPROM程序存储.作为DSI.VIIISII0的区别代码读取和编号,液晶模块(AO克拉中国集成模块OCMJ锦鹏公司)和键盘模块是补充说.无线数字传输采用无线模块在整个接收发送形式IIIVIIV模块,这V月有两个业余频段选择和调控波特率(最大为II0Kbit/秒),单芯片微机串口数据可以直接接收.该系统的硬件结构如图VII所示:图VII系统硬件图DSI.VIIIBII0,具有电源,分成VIII组挂在PI.口(PI..0-PI..VII).无线模块挂在直接串行端口和硬件看门狗采用MAXVIIII.III芯片.当电源被加到系统中,反转信号从MAXVIIII.III发送回归引脚,逆向脉冲的值是II00毫秒.当该程序是在命令,I.个脉冲信号必须被发送到MAXV *好棒文|www.hbsrm.com +Q: 3 5 1 9 1 6 0 7 2
IIII.III的WDI引脚在比I..VI秒的间隔不清除看门狗定时器.如果该间隔大于为I..VIs,没有接收到脉冲信号,然后将VIIIIXCVII必须扭转.I.II0DSI.VIIIBII0的序列号必须被存储在系统中,数据存储DSI.IIIIV(VIIIK)对电源故障被显影.
系统软件部分DSI.VIIIBII0的收集和转换数据,执行无线通信,管理键盘等等.对于便利的程序调试和可靠性,采用模块设计,主要包括键盘处理模块,无线通信模块,所述温度的采集和处理时,显示模块等.VIIIIXCVII自我检查,然后分配每个分支程序模块.首席过程管理的键盘,初始化系统和传输各功能模块.长途线保持执行DSI.VIIIBII0的编辑任务.序号I.II0点DSI.VIIIBII0是读通过键盘和显示器协调到DSI.IIIIVY上的编号.第I.,无线模块被设置为接收状态接收采集参数和启动顺序(传输内容包传送;相同的内容被发送III次;两个在外的逻辑执行按位.
该epigenous机软件流程图
无线模块被设置为睡眠状态,在进行温度数据上传时设置为发送状态.将温度数据和DSI.VIIIBII0系统编号发送给上位机.采集和转换部分启动DSI.VIIIBII0转换,读取温度数据和存储数据通过分组的方法.下面主要为收集和转换模块的内容:
无效的get_温度(无效)
{UCHARI,J,temp_LSB,temp_;(i=0;I
//(J=0;?
对于(J=0;?
//(J=0;?
//温度值的数据转换
temp_msb=temp_pad[J][I.];
temp_lsb>>=IV;temp_msb<<=IV;
temp_lsb|=temp_msb;temp_msb=(temp_lsb/I.0);
temp_msb<<=IV;temp_lsb%=I.0;
temp_lsb|=temp_msb;temperature_德维尔[J]=
temp_lsb;}}
总结
作者创建以下新思路????
I.?通过分析单总线方式和分组方式的多点温度测试系统的交替检测时间的差别,得出分组方式能明显提高交替检测速度.
II?设计了I.套DSI.VIIIBII0分组方式的无线多点温度测试系统,这套系统已经被应用于沥青运输车的技术改造中,并取得良好效果.
附件II:外文原文(复印件)
ADesignoftheTemperatureTestSystemBasedonGroupingDSI.VIIIBII0
Abstract-AlltheDSI.VIIIBII0sensors,usedforthemultiplanttesttemperature,areconnectedwithMCUononeofIObus,andtemperaturedataarecollectedbyturns.Ifthesystemhasaglareamountofsensors,thetimeofMCUusedinprocessingthetemperaturedataisobviouslyprolonged,sothecycleofalternatetestgetslonger.Inthispaper,anewmethodthatmeasuresaretakeninsoftware;asaresult,thespeedofalternatetestadvancesdistinctly.
Keywords-DSI.VIIIBII0Group,temperaturetest,time
spentonthealternatetest.
I.INTRODUCTION
Asthesimplestructure,convenientinstallment,lowlossandwiderangeoftemperaturetest,DSI.VIIIBII0temperatenesssensorsareappliedtothefieldswhichneedthemultigenerationaltest,suchasthechemicalindustry,thegrain,microenvironmentsupervisionandsoon.BecauseoftheadoptionofonebusintheDSI.VIIIBII0multiporttemperaturetestsystem,allDSI.VIIIBII0arehungononebus,andthenthetemperatureconversionvalueofeachtestpointisreadbyturns.Astheconversionvaluemustbereadafterreading-pinstateforVIIItimes,andpositionandstoredatamustbemoved,sotimespendmuchinreadingonepointofthedatasystembyevery
time.Ifthetemperaturetestsystemislarge-scaled,thesystemlosscausedbyitisrathermuch,andthenthealternatetestspeedofthesystemdecreasesobviously,whichinfluencestheefficiencyofthemultiplanttemperaturetestsystemseriously.
Inthispaper,DSI.VIIIBII0arehungonsomeI/ObusesbygroupingDSI.VIIIBII0evenly,andtheconversiontemperaturedataisobtainedbyreadingthestateofDSI.VIIIBII0,thenthesystemlossdecreasesandthealternatetestspeedincreasesobviously,whichwon’tinfluencetheandthereliabilityoftheconversion.Asetofmultipoletemperaturetestofartificialenvironmentlaboratoryisachievedinthispaper,whichincreasesthetestefficiencyoftheformersystem.????????CHARACTERISTICSOFDSI.VIIIBII0
DSI.VIIIBII0isthesinglebusdigitaltemperaturesensorfromAmericanDallasCompany.DSI.VIIIBII0isconsistedoftheVIIVfiguresROMengravedbylaser,thetemperaturesensitivitycomponent,non-volatiletemperaturealarmstrigger(DeviceTHandTL).DSI.VIIIBII0communicateswiththemicroprocessorbythesinglebusportandthetestrangeofDSI.VIIIBII0isfrom-VVcentigradeto+I.IIVcentigrade,andtheincrementalvalueis0.Vcentigrade.ThetemperaturecanbechangedintofigureswithinVIIII0msandeachDSI.VIIIBII0hasthesoleVIIVfiguresaretwoVIIIfiguresstorages(No.0andNo.I.)forstoring
temperaturevalueinDSI.VIIIBII0.No.0storagestorescomplementofthetemperaturevalue,andNo.I.storessymbolsofthetemperaturevalue.Theusercandefinenon-volatiletemperaturealarmssetsanddistinguishthealarmssearchorderandseekthecomponenttemperaturealarmsstateoutsidethescheduledlimit.Therearetwoalternativewaysofpowersupply:Signalbushigh-levelborrowpowerisadopted,orthe+Vvpowersupplyexternallyisadopteddirectly.
????.
APPLICATIONTHEGROUPINGTESTMETHOD
ThispaperillustratesthegroupingmethodwiththeinterfaceofDSI.VIIIBII0andVIIIIXCVII.AssumingtheamountofthebusesonPI.portisIVandthetemperaturetestsystem
needsI.00DSI.VIIIBII0sensors,whichcanbedistributedequallytotheIVI/Olines.Ifthenumberofsensorscannotbedividedbythenumberofbuseseven,thenumberdisparityofsensorsonbusesisnomorethanone,whichcanbehandledwhile
readingnumbers.Thepowerissuppliedexternally.OwningtothesynchronisticconversionineachDSI.VIIIBII0,theintensecurrentisneeded,andthesignalbuscannotbeusedforthepowersupply,otherwisethesystemcannotworkinorder.TheschematiccircuitisshownasFigII(theDSI.VIIIBII0signalbusesofthesamegrouparehungonsomebusesofPI.port).WhenreadandwritetheDSI.VIIIBII0,thestrictschedulemust
bekept.FirstareversionpulseissenttoallDSI.VIIIBII0.Afterthereversion,SkipROMorderissenttoeachcircuitsimultaneouslyfromtheI/Oport,andtheconversionorderissent,thenallsensorsbegintransform.Aftertheconversion,MatchRomorderissenttoeachcircuitsimultaneously,andVIIVbitsserialnumberissent.DSI.VIIIBII0isselectedforeachgroup,andScratchPaddataisread.Finallythedatais
transformed.Thedataofserial-readistransformedintotheactualtemperaturevalue.OnealternatetestisfinishedaftertheDSI.VIIIBII0temperaturedataisreadcompletelybythecyclicalreadingforIIVtimes.Thewholeflowchartisshown
asFigIII.
Authorizedlicenseduselimitedto:CHONGQINGUNIVOFPOSTANDTELECOM.DownloadedonDecemberI.IX,II00IXatIIII:IV0fromIEEEXplore.Restrictionsapply.
FigIIDSI.VIIIBII0groupingsketchmap
FigIIIthediagramofcollectingtemperaturebygroupedDSI.VIIIBII0
Nowthetime-consuminginthetestsystemofthesinglebusandthegroupinganalysesmethodisillustratedrespectively.Thereversiontimesequenceandthetime
sequenceofwritingandreadingonebitforthemicroprocessorarerevealedinfiguresIV-VI.Thefigureshow:ThereversionperiodofDSI.VIIIBII0isIVIXVus-I.0II0us;thewritingperiodofonebitisVI0us-I.II0us;thereadingperiodofonebitisaboveVI0us;thespanofwritingorreadingthenextbitisI.us.AstheA/DconversiontimeisIXVII.IIIVms(IXprecisions),ifitiscountedbytheshortestway,thetotaltime-consumingofalternatetestiscalculatedrespectivelyasfollows:
(I.)SinglebusIVIXVus+II*(VIII*VI0+VII)us+IXVII.IIIVms+IVIXVus+I.00*(VIIV*VI0+
VIIII+VIII*VI0+VII+IX*VI0+VIII)us=VVII.VIIIIVms
(II)Groupingmode
IVIXVus+II*(VIII*VI0+VII)us+IXVII.IIIVms+II0(VIIV*VI0+VIIII+VIII*VI0+
VII+IX*VI0+VIII)us=I.VIIIIX.VIII0IVms
Asthesmallproportionofthenumerationsystemconversionandthestoragetimeinthewholeperiod,theunknowncrystal-oscillatorfrequency,thenumerationsystem
conversionandstoragetimeisnotcounted.Accordingly,thealternatetesttimewhichgroupingmodeconsumesismuchshorterthansinglebusmodeobviously
FigIVDSI.VIIIBII0reversiontimesequence
FigVthetimesequenceforwritingonefigureinDSI.VIIIBII0
FigVIthetimesequenceforreadingonebitinDSI.VIIIBII0
IV.EXAMPLEOFTHEDESIGN
Theasphalttransportationvehicleisthemaintransportationequipmentbetweenthematerialfieldandroadsurface.Theunavoidabletemperaturedecreasingbecauseof
theasphalttransportationvehicle’slongworkingandtransportationdistanceinfluencesthepavingqualityoftheroadsurface,thespecificmeasuresmustbetakenaccordingtotheheatreleaseoftheshell.Thispaperdesignedasetof
wirelesstemperatureusingDSI.VIIIBII0groupingmodetestsystemfortestingthetemperatureoftheasphalttransportationvehicleshell,andthetotalpointsisI.II0.Temperaturetestsystemsoftwareadoptsthemodulardesign.Thehypogenousmachinecollectsdata,storesdata,setsupDSI.VIIIBII0,andsendsthewirelessmoduleandsoon.TheepigenousmachineadoptsPCmachines,mainlyreceivesthetemperaturedatafromthehypogenousmachine.Theepigenousmachinedisplays,storesandmanagesdata.Thesimplecommunicationbetweenpeopleandmachinesisperformedbytheepigenousmachine.Thispaperwillnotillustratethesimpleprocedureoftheepigenousmachineindetail.Thefollowingistheillustrationofpartsofhypogenousmachine.includingthecomponentsofsystemhardware,softwarefunctionsandprocess.
Authorizedlicenseduselimitedto:CHONGQINGUNIVOFPOSTANDTELECOM.DownloadedonDecemberI.IX,II00IXatIIII:IV0fromIEEEExplore.Restrictionsapply.
SystemhardwareConsideringthemultiplanttemperaturenumberofthetemporarystorageandtheconsiderableinternalRAMduringthevalueconversion,thechiefcontrollingchipadoptsATMELVIIIIXCVIISingle-ChipMicrocomputerwithIIVVIbytes
RAMandVIIIKBEIIPROMprocedurestorage.AsthedistinguishablecodeofDSI.VIIISII0isreadandnumbered,theliquidcrystalmodule(AmoKolaChineseintegratedmoduleof
OCMJJinPengCompany)andthekeyboardtransmissionadoptsthewirelessmodule????????????????????????????????inthewholeeareadded.Thewirelessdigitalinterception-sendingform,whichmayhastwoamateurbandstochooseandtheregulativeBaudRate(themaxisII0Kbit/s),andtheSingle-ChipMicrocomputerserialportdatacanbereceiveddirectly.
reversionsignalistransmittedfromtheMAXVIIII.IIIreversionpin,andthevalueofthereversionpulseisII00ms.Whentheprocedureisinorder,apulsesignalmustbesenttoMAXVIIII.IIIWDIpininnomorethantheintervalofI..VIstoclearawaythewatch-dogtimer.IftheintervalismorethanI..VIs,thepindoesnotreceivethepulsesignal,andthentheVIIIIXCVIImustbereversed.AsI.II0DSI.VIIIBII0serialnumbersmustbestoredinthesystem,thedatastorageDSI.IIIIV(VIIIK)againstthepowerfailureisdeveloped.
Systemsoftwarefunctionandprocess
ThesoftwarepartofthetemperaturetestsystemnumbersDSI.VIIIBII0,collectsandtransformsdata,performsthewirelesscommunication,manageskeyboardandsoon.Fortheconvenienceoftheproceduredebuggingandthereliability,themoduledesignisadopted,mainlyincludingthekeyboardprocessingmodule,thewirelesscommunicationmodule,themoduleoftemperaturecollectionandprocessing,thedisplaymoduleandsoon.ThesoftwareflowchartisshownasFigVIIIAfterthereversionofaddpower????VIIIIXCVIIself-checksfirst,thenallocateseachbranchproceduremodule.Thechiefproceduremanagesthekeyboard,initializesthesystemandtransferseachfunctionalmodule.ThehaullineiskepttoperformDSI.VIIIBII0editmission.I.II0pointsserialnumberofDSI.VIIIBII0isreadbythekeyboardanddisplaycoordinationandnumberedintoDSI.IIIIVY.Firstthewirelessmoduleissetupasthereceptionstatetoreceivethecollectionparametersandstarttheorder(Thetransmissioncontentissentbypack;thesamecontentissentforthreetimes;twooutofthreelogicisperformedaccordingtothebit).
Thewirelessmoduleissetupasthesleepstateduringtheconversionandthetransformingstateduringthetemperaturedatatransmission.PackingsendsthetemperaturedataandtheDSI.VIIIBII0numbersinthesystemtoepigenousmachine.The
partsofcollectionandconversionstarttheDSI.VIIIBII0conversion,readthetemperaturedatabygroupingmethods,storedataandsoon.Thefollowingprocedureisthemain
contentofcollectingandconversionmodules:
voidGet_Temperature(void)
{uchari,j,temp_lsb,temp_msb;
for(i=0;i
write_bytes(0xIVIV);}
//transformthetemperatureineachcircuitatthesametime
for(j=0;j
{delay(I.000);}
For(j=0;j
//eachtemperaturevalueisreadinVIIIbuses
for(j=0;j
//thedataconversionofthetemperaturevalue
temp_msb=temp_pad[j][I.];
temp_lsb>>=IV;temp_msb<<=IV;
temp_lsb|=temp_msb;temp_msb=(temp_lsb/I.0);
temp_msb<<=IV;temp_lsb%=I.0;
I.IX0II00VIISecondIEEEConferenceonIndustrialElectronicsandApplications
Authorizedlicenseduselimitedto:CHONGQINGUNIVOFPOSTANDTELECOM.DownloadedonDecemberI.IX,II00IXatIIII:IV0fromIEEEXplore.Restrictionsapply.
temp_lsb|=temp_msb;temperature_vel[j]=temp_lsb;}}
IV.CONCLUCTION
Authorscreatethefollowingnewideas????I.????Alternatetesttimedifferenceofthemultipowertemperaturetestsysteminthegroupingmethodandthesingle
busmethodisanalyzed,thenthealternatetestspeedcanbeincreasedgreatlybygroupingmethod.
IIAsetofwirelessmultiporttemperaturetestsystemisdesignedbyDSI.VIIIBII0groupingmethod.Thissystemisappliedtothetechnologyreformoftheasphalttransportation
vehicleinsomedomesticlarge-scaleengineeringmechanicalcompanyandthegoodresultoftheapplicationisachieved.
版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/lwqt/wxzs/252.html