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