外文翻译一种基于DS18B20的温度探测系统.docx

上传人:b****5 文档编号:6366329 上传时间:2023-01-05 格式:DOCX 页数:7 大小:35.57KB
下载 相关 举报
外文翻译一种基于DS18B20的温度探测系统.docx_第1页
第1页 / 共7页
外文翻译一种基于DS18B20的温度探测系统.docx_第2页
第2页 / 共7页
外文翻译一种基于DS18B20的温度探测系统.docx_第3页
第3页 / 共7页
外文翻译一种基于DS18B20的温度探测系统.docx_第4页
第4页 / 共7页
外文翻译一种基于DS18B20的温度探测系统.docx_第5页
第5页 / 共7页
点击查看更多>>
下载资源
资源描述

外文翻译一种基于DS18B20的温度探测系统.docx

《外文翻译一种基于DS18B20的温度探测系统.docx》由会员分享,可在线阅读,更多相关《外文翻译一种基于DS18B20的温度探测系统.docx(7页珍藏版)》请在冰豆网上搜索。

外文翻译一种基于DS18B20的温度探测系统.docx

外文翻译一种基于DS18B20的温度探测系统

附录Ⅲ

ADesignoftheTemperatureTestSystemBased

onGroupingDS18B20

Abstract

AlltheDS18B20sensors,usedforthemultipointtesttemperature,areconnectedwithMCUononeofIObus,andtemperaturedataarecollectedbyturns.Ifthesystemhasalargeamountofsensors,thetimeofMCUusedinprocessingthetemperaturedataisobviouslyprolonged,sothecycleofalternatetestgetslonger.Inthispaper,anewmethodthatDS18B20arerationallygroupedispresented,andsomemeasuresaretakeninsoftware;asaresult,thespeedofalternatetestadvancesdistinctly.

Keywords-DS18B20Group,temperaturetest,timespentonthealternatetest.

1.INTRODUCTION

Asthesimplestructure,convenientinstallment,lowlossandwiderangeoftemperaturetest,DS18B20temperaturetestsensorsareappliedtothefieldswhichneedthemultipointtemperaturetest,suchasthechemicalindustry,thegrain,theenvironmentsupervisionandsoon.BecauseoftheadoptionofonebusintheDS18B20multipointtemperaturetestsystem,allDS18B20arehungononebus,andthenthetemperatureconversionvalueofeachtestpointisreadbyturns.Astheconversionvaluemustbereadafterreading-pinstatefor8times,andpositionandstoredatamustbemoved,sotimespendmuchinreadingonepointofthedatasystembyeverytime.Ifthetemperaturetestsystemislarge-scaled,thesystemlosscausedbyitisrathermuch,andthenthealternatetestspeedofthesystemdecreasesobviously,whichinfluencestheefficiencyofthemultipointtemperaturetestsystemseriously.Inthispaper,DS18B20arehungonsomeI/ObusesbygroupingDS18B20evenly,andtheconversiontemperaturedataisobtainedbyreadingthestateofDS18B20,thenthesystemlossdecreasesandthealternatetestspeedincreasesobviously,whichwon’tinfluencetheprecisionandthereliabilityoftheconversion.Asetofmultipointtemperaturetestofartificialenvironmentlaboratoryisachievedinthispaper,whichincreasesthetestefficiencyoftheformersystem.

2.CHARACTERISTICSOFDS18B20

DS18B20isthesinglebusdigitaltemperaturesensorfromAmericanDallasCompany.DS18B20isconsistedofthe64figuresROMengravedbylaser,thetemperaturesensitivitycomponent,non-volatiletemperaturealarmstrigger(DeviceTHandTL).DS18B20communicateswiththemicroprocessorbythesinglebusportandthetestrangeofDS18B20isfrom-55centigradeto+125centigrade,andtheincrementalvalueiscentigrade.Thetemperaturecanbechangedintofigureswithin720msandeachDS18B20hasthesole64figuresserialnumber.

Fig1DS18B2064bitROM

ThespecificcontentisrevealedasFig1:

Therearetwo8figuresstoragesandforstoringtemperaturevalueinDS18B20.storagestorescomplementofthetemperaturevalue,andstoressymbolsofthetemperaturevalue.Theusercandefinenon-volatiletemperaturealarmssetsanddistinguishthealarmssearchorderandseekthecomponenttemperaturealarmsstateoutsidethescheduledlimit.Therearetwoalternativewaysofpowersupply:

Signalbushigh-levelborrowpowerisadopted,orthe+5vpowersupplyexternallyisadopteddirectly.

3.APPLICATIONTHEGROUPINGTESTMETHOD

ThispaperillustratesthegroupingmethodwiththeinterfaceofDS18B20and89C52.AssumingtheamountofthebusesonP1portis4andthetemperaturetestsystemneeds100DS18B20sensors,whichcanbedistributedequallytothe4I/Olines.Ifthenumberofsensorscannotbedividedbythenumberofbuseseven,thenumberdisparityofsensorsonbusesisnomorethanone,whichcanbehandledwhilereadingnumbers.Thepowerissuppliedexternally.OwningtothesynchronisticconversionineachDS18B20,theintensecurrentisneeded,andthesignalbuscannotbeusedforthepowersupply,otherwisethesystemcannotworkinorder.TheschematiccircuitisshownasFig2(theDS18B20signalbusesofthesamegrouparehungonsomebusesofP1port).WhenreadandwritetheDS18B20,thestrictschedulemustbekept.FirstareversionpulseissenttoallDS18B20.Afterthereversion,SkipROMorderissenttoeachcircuitsimultaneouslyfromtheI/Oport,andtheconversionorderissent,thenallsensorsbegintransform.Aftertheconversion,MatchRomorderissenttoeachcircuitsimultaneously,and64bitsserialnumberissent.DS18B20isselectedforeachgroup,andScratchPaddataisread.Finallythedataistransformed.Thedataofserial-readistransformedintotheactualtemperaturevalue.OnealternatetestisfinishedaftertheDS18B20temperaturedataisreadcompletelybythecyclicalreadingfor25times.

Fig2DS18B20groupingsketchmap

Nowthetime-consuminginthetestsystemofthesinglebusandthegroupinganalysesmethodisillustratedrespectively.Thereversiontimesequenceandthetimesequenceofwritingandreadingonebitforthemicroprocessorarerevealedinfigures4-6.Thefigureshow:

ThereversionperiodofDS18B20is495us-1020us;thewritingperiodofonebitis60us-120us;thereadingperiodofonebitisabove60us;thespanofwritingorreadingthenextbitis1us.AstheA/Dconversiontimeis(9precisions),ifitiscountedbytheshortestway,thetotaltime-consumingofalternatetestiscalculatedrespectivelyasfollows:

(1)Singlebus

495us+2*(8*60+7)us++495us+100*(64*60+

63+8*60+7+9*60+8)us=

(2)Groupingmode

495us+2*(8*60+7)us++20(64*60+63+8*60+7+9*60+8)us=

Asthesmallproportionofthenumerationsystemconversionandthestoragetimeinthewholeperiod,theunknowncrystal-oscillatorfrequency,thenumerationsystemconversionandstoragetimeisnotcounted.Accordingly,thealternatetesttimewhichgroupingmodeconsumesismuchshorterthansinglebusmodeobviously.

4.EXAMPLEOFTHEDESIGN

Theasphalttransportationvehicleisthemaintransportationequipmentbetweenthematerialfieldandroadsurface.Theunavoidabletemperaturedecreasingbecauseoftheasphalttransportationvehicle’slongworkingandtransportationdistanceinfluencesthepavingqualityoftheroadsurface;thespecificmeasuresmustbetakenaccordingtotheheatreleaseoftheshell.ThispaperdesignedasetofwirelesstemperatureusingDS18B20groupingmodetestsystemfortestingthetemperatureoftheasphalttransportationvehicleshell,andthetotalpointsis120.Temperaturetestsystemsoftwareadoptsthemodulardesign.Thehypogenousmachinecollectsdata,storesdata,setsupDS18B20,andsendsthewirelessmoduleandsoon.TheepigenousmachineadoptsPCmachines,mainlyreceivesthetemperaturedatafromthehypogenousmachine.Theepigenousmachinedisplays,storesandmanagesdata.Thesimplecommunicationbetweenpeopleandmachinesisperformedbytheepigenousmachine.Thispaperwillnotillustratethesimpleprocedureoftheepigenousmachineindetail.Thefollowingistheillustrationofpartsofhypogenousmachine.

hardware

ConsideringthemultipointtemperaturenumberofthetemporarystorageandtheconsiderableinternalRAMduringthevalueconversion,thechiefcontrollingchipadoptsATMEL89C52Single-ChipMicrocomputerwith256bytesRAMand8KBE2PROMprocedurestorage.AsthedistinguishablecodeofDS18S20isreadandnumbered,theliquidcrystalmodule(AoKelaChineseintegratedmoduleofOCMJJinPengCompany)andthekeyboardmoduleareadded.Thewirelessdigitaltransmissionadoptsthewirelessmodule375inthewholereception-sendingform,whichmayhastwoamateurbandstochooseandtheregulativeBaudRate(themaxis20Kbit/s),andtheSingle-ChipMicrocomputerserialportdatacanbereceiveddirectly.

DS18B20,withthepowersupply,dividedinto8groupshungonP1portThewirelessmoduleishungonserialportdirectlyandthehardwarewatchdogadoptstheMAX813chip.Whenthepowerisaddedtothesystem,thereversionsignalistransmittedfromtheMAX813reversionpin,andthevalueofthereversionpulseis200ms.Whentheprocedureisinorder,apulsesignalmustbesenttoMAX813WDIpininnomorethantheintervaloftoclearawaythewatch-dogtimer.Iftheintervalismorethan,thepindoesnotreceivethepulsesignal,andthenthe89C52mustbereversed.As120DS18B20serialnumbersmustbestoredinthesystem,thedatastorageDS1225(8K)againstthepowerfailureisdeveloped.

softwarefunctionandprocess

ThesoftwarepartofthetemperaturetestsystemnumbersDS18B20,collectsandtransformsdata,performsthewirelesscommunication,manageskeyboardandsoon.Fortheconvenienceoftheproceduredebuggingandthereliability,themoduledesignisadopted,mainlyincludingthekeyboardprocessingmodule,thewirelesscommunicationmodule,themoduleoftemperaturecollectionandprocessing,thedisplaymoduleandsoon.Thechiefproceduremanagesthekeyboard,initializesthesystemandtransferseachfunctionalmodule.ThehaullineiskepttoperformDS18B20editmission.120pointsserialnumberofDS18B20isreadbythekeyboardanddisplaycoordinationandnumberedintoDS1225Y.Firstthewirelessmoduleissetupasthereceptionstatetoreceivethecollectionparametersandstarttheorder(Thetransmissioncontentissentbypack;thesamecontentissentforthreetimes;twooutofthreelogicisperformedaccordingtothebit).

Thewirelessmoduleissetupasthesleepstateduringtheconversionandthetransformingstateduringthetemperaturedatatransmission.PackingsendsthetemperaturedataandtheDS18B20numbersinthesystemtoepigenousmachine.ThepartsofcollectionandconversionstarttheDS18B20conversion,readthetemperaturedatabygroupingmethods,storedataandsoon.Thefollowingprocedureisthemaincontentofcollectingandconversionmodules.

5.CONCLUCTION

Authorscreatethefollowingnewideas:

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 自然科学 > 化学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1