为了正常的体验网站,请在浏览器设置里面开启Javascript功能!
首页 > SHT 中文资料

SHT 中文资料

2020-03-01 2页 pdf 656KB 85阅读

用户头像 个人认证

上兵伐谋

暂无简介

举报
SHT 中文资料SHT30温湿度传感器部分翻译资料3PinAssignment3、引脚分配TheSHT3x-DIScomesinatiny8-pinDFNpackageseeTable6.SHT3x-DIS是一个8位的DFN小包,见表63.1PowerPins(VDD,VSS)3.1、电源引脚(VDD,VSS)TheelectricalspecificationsoftheSHT3x-DISareshowninTable3.Thepowersupplypinsmustbedecoupledwitha100nFcapacitorthatshal...
SHT 中文资料
SHT30温湿度传感器部分翻译资料3PinAssignment3、引脚分配TheSHT3x-DIScomesinatiny8-pinDFNpackageseeTable6.SHT3x-DIS是一个8位的DFN小包,见表63.1PowerPins(VDD,VSS)3.1、电源引脚(VDD,VSS)TheelectricalspecificationsoftheSHT3x-DISareshowninTable3.Thepowersupplypinsmustbedecoupledwitha100nFcapacitorthatshallbeplacedasclosetothesensoraspossible–seeFigure11foratypicalapplicationcircuit.SHT3x-DIS的电气参数如表3所示。电源引脚必须与一个100nF的电容器尽可能地隔离,以便尽可能靠近传感器——请参见典型应用电路图11。3.2SerialClockandSerialData(SCL,SDA)3.2、串行时钟和串行数据(SCL,SDA)SCLisusedtosynchronizethecommunicationbetweenmicrocontrollerandthesensor.Theclockfrequencycanbefreelychosenbetween0to1000kHz.CommandswithclockstretchingaccordingtoI2CStandard11aresupported.SCL用于同步微控制器和传感器之间的通信。时钟频率可以在0到1000千赫之间自由选择。支持按I2C标准11进行时钟扩展的命令。TheSDApinisusedtotransferdatatoandfromthesensor.Communicationwithfrequenciesupto400kHzmustmeettheI2CFastMode11standard.Communicationfrequenciesupto1MhzaresupportedfollowingthespecificationsgiveninTable20.SDA引脚用于向传感器传递数据和从传感器传递数据。频率高达400kHz的通信必须满足I2C快速模式11标准。根据表20给出的规格,支持1兆赫的通信频率。BothSCLandSDAlinesareopen-drainI/OswithdiodestoVDDandVSS.Theyshouldbeconnectedtoexternalpull-upresistors(pleaserefertoFigure11).AdeviceontheI2Cbusmustonlydrivealinetoground.Theexternalpull-upresistors(e.g.Rp=10kΩ)arerequiredtopullthesignalhigh.Fordimensioningresistorsizespleasetakebuscapacityandcommunicationfrequencyintoaccount(seeforexampleSection7.1ofNXPsI2CManualformoredetails11).Itshouldbenotedthatpull-upresistorsmaybeincludedinI/Ocircuitsofmicrocontrollers.ItisrecommendedtowirethesensoraccordingtotheapplicationcircuitasshowninFigure11.SCL和SDA线均为开路漏极,有二极管连到VDD和VSS。它们应该与外部上拉电阻相连接(请参见图11)。I2C总线上的设备必须只有一条线接地。外部上拉电阻(如Rp=10kΩ)需要高的信号。关于尺寸标注的电阻,请将线路容量和通信频率考虑在内(更多细节请参见NXPs12C第7.1节)。需要注意的是,在微控制器的I/O电路中可以包括上拉电阻。建议根据图11应用电路连接传感器。3.3DiePad(centerpad)3.3、模具衬垫或中心衬垫Thediepadorcenterpadisvisiblefrombelowandlocatedinthecenterofthepackage.ItiselectricallyconnectedtoVSS.Henceelectricalconsiderationsdonotimposeconstraintsonthewiringofthediepad.However,duetomechanicalreasonsitisrecommendedtosolderthecenterpadtothePCB.Formoreinformationondesign-in,pleaserefertothedocument“SHTxxDesignGuide”.从下面可见位于小包中心的模具衬垫或中心衬垫。它与VSS相连。因此,电气方面的考虑不会对接线板接线造成限制。然而,由于机械原因,建议将焊盘焊到PCB。关于设计中更多的信息,请参阅文档“SHTxx设计”。3.4ADDRPin3.4、ADDR引脚ThroughtheappropriatewiringoftheADDRpintheI2Caddresscanbeselected(seeTable7fortherespectiveaddresses).TheADDRpincaneitherbeconnectedtoVDDorVSS,oritcanbeusedasaselectorpin.ThismeansthattheaddressofthesensorcanbechangeddynamicallyduringoperationbyswitchingthelevelontheADDRpin.TheonlyconstraintisthatthelevelhastostayconstantstartingfromtheI2Cstartconditionuntilthecommunicationisfinished.ThisallowstoconnectmorethantwoSHT3x-DISontothesamebus.ThedynamicalswitchingrequiresindividualADDRlinestothesensors.通过ADDR引脚合适的接线,可以选择I2C地址(见表7中的相应地址)。ADDR引脚可以直接连接到VDD或VSS,或者也可以作为一个选择销。这意味着传感器的地址可以改变,在运行过程中动态切换水平上的地址引脚。唯一的限制是电平必须保持恒定,从I2C开始状态直到通信结束。这允许将超过两sht3xDIS连接在同一总线。动态切换要求单个地址线传感器。PleasenotethattheI2Caddressisrepresentedthroughthe7MSBsoftheI2Creadorwriteheader.TheLSBswitchesbetweenreadorwriteheader.ThewiringforthedefaultaddressisshowninTable7andFigure11.TheADDRpinmustnotbeleftfloating.Pleasenotethatonlythe7MSBsoftheI2CRead/WriteheaderconstitutetheI2CAddress.请注意,I2C地址是通过I2C读写头的7位表达出来的。LSB在读写头之间切换。默认地址的接线如表7和图11所示。addr引脚不能悬空。请注意,只有I2C读写头的7位构成了I2C地址。3.5ALERTPin3.5、警报引脚Thealertpinmaybeusedtoconnecttotheinterruptpinofamicrocontroller.TheoutputofthepindependsonthevalueoftheRH/Treadingrelativetoprogrammablelimits.Itsfunctionisexplainedinaseparateapplicationnote.Ifnotused,thispinmustbeleftfloating.Thepinswitcheshigh,whenalertconditionsaremet.ThemaximumdrivingloadsarelistedinTable3.Beawarethatself-heatingmightoccur,dependingontheamountofcurrentthatflows.Self-heatingcanbepreventediftheAlertPinisonlyusedtoswitchatransistor.警报引脚可用于连接微控制器的中断引脚。引脚的输出取决于相对于可编程限制的RH/T读数的值。它的功能会在单独的应用说明中解释。如果不使用,该引脚必须悬空。当警报状态满足时,引脚开关调高。最大驱动载荷列于表3中。请注意,可能会发生自加热,这取决于流过的电流量。如果警报引脚仅用于开关晶体管,则可以防止自加热。3.6nRESETPin3.6、NRESET引脚ThenResetpinmaybeusedtogeneratearesetofthesensor.Aminimumpulsedurationof1µsisrequiredtoreliablytriggeraresetofthesensor.Itsfunctionisexplainedinmoredetailinsection4.Ifnotuseditisrecommendedtoleavethepinfloating.NRESET引脚可用于传感器复位。至少1µ的脉冲持续时间需要可靠地触发传感器重置。第4节对其功能作了更详细的解释。如果不使用,建议让引脚悬空。4OperationandCommunication4、操作和通信TheSHT3x-DISsupportsI2Cfastmode(andfrequenciesupto1000kHz).Clockstretchingcanbeenabledanddisabledthroughtheappropriateusercommand.FordetailedinformationontheI2Cprotocol,refertoNXPI2C-busspecification12.SHT3x-DISs支持I2C快速模式(频率高达1000kHz)。可以通过适当的用户命令启用或禁用时钟扩展。关于I2C的详细信息,参见NXPI2C总线规范12。AllSHT3x-DIScommandsanddataaremappedtoa16-bitaddressspace.Additionally,dataandcommandsareprotectedwithaCRCchecksum.Thisincreasescommunicationreliability.The16bitscommandstothesensoralreadyincludea3bitCRCchecksum.Datasentfromandreceivedbythesensorisalwayssucceededbyan8bitCRC.所有SHT3x-DIS的命令和数据映射到16位地址空间。此外,数据和命令用CRC校验和进行保护。这增加了通信的可靠性。传感器的16位命令已经包含一个3位CRC校验和。传感器发送和接收的数据总是由8位CRC校验成功。Inwritedirectionitismandatorytotransmitthechecksum,sincetheSHT3x-DISonlyacceptsdataifitisfollowedbythecorrectchecksum.Inreaddirectionitislefttothemastertoreadandprocessthechecksum.在写取方向上必须发送校验和,因为如果后续有正确的校验和,SHT3x-DIS只接受数据。在读取方向上,留给主控制器读取和处理校验和。4.1Power-UpandCommunicationStart4.1、启动和通信启动Thesensorstartspowering-upafterreachingthepower-upthresholdvoltageVPORspecifiedinTable3.AfterreachingthisthresholdvoltagethesensorneedsthetimetPUtoenteridlestate.Oncetheidlestateisentereditisreadytoreceivecommandsfromthemaster(microcontroller).传感器在达到表3中规定的阈值电压后会达到启动功率。达到这个阈值电压后,传感器需要时间t进入空闲状态。一旦进入空闲状态,它就可以接收来自主控制器(微控制器)的命令。EachtransmissionsequencebeginswithaSTARTcondition(S)andendswithaSTOPcondition(P)asdescribedintheI2C-busspecification.Thestopconditionisoptional.Wheneverthesensorispoweredup,butnotperformingameasurementorcommunicating,itautomaticallyentersidlestateforenergysaving.Thisidlestatecannotbecontrolledbytheuser.每个传输序列以起始条件开始,以I2C总线规范中描述的停止条件(p)结束。停止条件是可选的。当传感器接通电,但不进行测量或通信时,它就自动进入空闲状态以节约能源。此空闲状态不能由用户控制。4.2StartingaMeasurement4.2、开始测量AmeasurementcommunicationsequenceconsistsofaSTARTcondition,theI2Cwriteheader(7-bitI2Cdeviceaddressplus0asthewritebit)anda16-bitmeasurementcommand.Theproperreceptionofeachbyteisindicatedbythesensor.ItpullstheSDApinlow(ACKbit)afterthefallingedgeofthe8thSCLclocktoindicatethereception.AcompletemeasurementcycleisdepictedinTable8.测量通信序列由一个START条件,I2C写头(7位I2C设备地址加0作为写取位)和一个16位的测量命令组成。传感器会显示每个字节的正确接收。它将SDA引脚(ACK位)拉倒低于第八SCL时钟的下降沿,以显示接收。完整的测量周期如表8所示。Withtheacknowledgementofthemeasurementcommand,theSHT3x-DISstartsmeasuringhumidityandtemperature.随着测量命令的确认,SHT3x-DIS就开始测量温度和湿度。4.3MeasurementCommandsforSingleShotDataAcquisitionMode4.3、单镜头数据采集模式的测量命令Inthismodeoneissuedmeasurementcommandtriggerstheacquisitionofonedatapair.Eachdatapairconsistsofone16bittemperatureandone16bithumidityvalue(inthisorder).DuringtransmissioneachdatavalueisalwaysfollowedbyaCRCchecksum,seesection4.4.在这种模式下,一个发出的测量命令触发一个数据对的采集。每个数据对由一个16位温度和一个16位湿度值(按此顺序)组成。在传输过程中,每个数据值总是紧跟着一个CRC校验和,见第4.4节。Insingleshotmodedifferentmeasurementcommandscanbeselected.The16bitcommandsareshowninTable8.Theydifferwithrespecttorepeatability(low,mediumandhigh)andclockstretching(enabledordisabled).在单镜头模式下,可以选择不同的测量命令。16位命令如表8所示。它们与可重复性(低、中、高)和时钟拉伸(启用或禁用)不同。Therepeatabilitysettinginfluencesthemeasurementdurationandthustheoverallenergyconsumptionofthesensor.Thisisexplainedinsection2.重复性设置影响测量持续时间,从而影响传感器的整体能量消耗。这在第2节中作了解释。4.4ReadoutofMeasurementResultsforSingleShotMode4.4、单炮模式测量结果的读出Afterthesensorhascompletedthemeasurement,themastercanreadthemeasurementresults(pairofRH&T)bysendingaSTARTconditionfollowedbyanI2Creadheader.Thesensorwillacknowledgethereceptionofthereadheaderandsendtwobytesofdata(temperature)followedbyonebyteCRCchecksumandanothertwobytesofdata(relativehumidity)followedbyonebyteCRCchecksum.EachbytemustbeacknowledgedbythemicrocontrollerwithanACKconditionforthesensortocontinuesendingdata.IfthesensordoesnotreceiveanACKfromthemasterafteranybyteofdata,itwillnotcontinuesendingdata.传感器完成测量后,主程序可以通过发送一个START条件和一个I2C读取头来读取测量结果(RH&T对)。传感器将接收读头的接收,并发送两个字节的数据(温度),接着是一个字节的CRC校验和另外两个字节的数据(相对湿度),然后是一个字节的CRC校验和。每个字节必须承认微控制器与ACK条件传感器继续发送数据。如果传感器在任何字节的数据之后没有从主程序接收到ACK,它就不会继续发送数据。Thesensorwillsendthetemperaturevaluefirstandthentherelativehumidityvalue.AfterhavingreceivedthechecksumforthehumidityvalueaNACKandstopconditionshouldbesent(seeTable8).传感器将首先发送温度值,然后发送相对湿度值。在收到湿度值的校验和后,就应该发送一个NACK和停止条件(见表8)。TheI2CmastercanabortthereadtransferwithaNACKconditionafteranydatabyteifitisnotinterestedinsubsequentdata,e.g.theCRCbyteorthesecondmeasurementresult,inordertosavetime.如果对后续数据(例如CRC字节或第二测量结果)不感兴趣,为了节省时间I2C主机可以在任何数据字节后使用一个NACK条件中止读取传输。IncasetheuserneedshumidityandtemperaturedatabutdoesnotwanttoprocessCRCdata,itisrecommendedtoreadthetwotemperaturebytesofdatawiththeCRCbyte(withoutprocessingtheCRCdata);afterhavingreadthetwohumiditybytes,thereadtransfercanbeabortedwithawithaNACK.如果用户需要的温度和湿度数据,但不想处理CRC数据,建议读取CRC字节数据的两温度字节(无处理CRC数据);在读取两温度字节后,使用一个NACK可以终止读取转换。NoClockStretching没有时钟延伸Whenacommandwithoutclockstretchinghasbeenissued,thesensorrespondstoareadheaderwithanotacknowledge(NACK),ifnodataispresent.当发出一个没有时钟拉伸的命令时,如果没有数据存在,传感器就会对读取头反应一个不确认(NACK)。ClockStretching时钟延伸Whenacommandwithclockstretchinghasbeenissued,thesensorrespondstoareadheaderwithanACKandsubsequentlypullsdowntheSCLline.TheSCLlineispulleddownuntilthemeasurementiscomplete.Assoonasthemeasurementiscomplete,thesensorreleasestheSCLlineandsendsthemeasurementresults.当发出一个时钟拉伸命令时,传感器就会对读取头反应一个ACK,并随后拉下SCL线。直到测量完成,SCL线才拉下。一旦测量完成,传感器释放SCL线并发送测量结果。4.5MeasurementCommandsforPeriodicDataAcquisitionMode4.5、周期性数据采集模式的测量命令Inthismodeoneissuedmeasurementcommandyieldsastreamofdatapairs.Eachdatapairconsistsofone16bittemperatureandone16bithumidityvalue(inthisorder).在这种模式下,一个发出的测量命令产生一对数据流。每个数据对由一个16位温度和一个16位湿度值(按此顺序)组成。Inperiodicmodedifferentmeasurementcommandscanbeselected.Thecorresponding16bitcommandsareshowninTable9.Theydifferwithrespecttorepeatability(low,mediumandhigh)anddataacquisitionfrequency(0.5,1,2,4&10measurementspersecond,mps).Clockstretchingcannotbeselectedinthismode.在周期模式下,可以选择不同的测量命令。相应的16位命令如表9所示。它们与重复性(低、中、高)和数据采集频率(测量每秒0.5,1,2,4和10,MPS)不同。在这种模式下不能选择时钟沿伸。Thedataacquisitionfrequencyandtherepeatabilitysettinginfluencesthemeasurementdurationandthecurrentconsumptionofthesensor.Thisisexplainedinsection2ofthisdatasheet.数据采集频率和重复性设置影响传感器的测量持续时间和电流消耗。这在本数据表的第2节中进行了说明。Ifameasurementcommandisissued,whilethesensorisbusywithameasurement(measurementdurationsseeTable4),itisrecommendedtoissueabreakcommandfirst(seesection4.8).Uponreceptionofthebreakcommandthesensorwillfinishtheongoingmeasurementandenterthesingleshotmode.如果发出一个测量命令,当传感器忙于测量(测量持续时间见表4)时,建议先发出一个中断命令(参见第4.8节)。当接收到中断命令时,传感器将完成正在进行的测量并进入单镜头模式。4.6ReadoutofMeasurementResultsforPeriodicMode4.6、周期模式测量结果的读出TransmissionofthemeasurementdatacanbeinitiatedthroughthefetchdatacommandshowninTable10.IfnomeasurementdataispresenttheI2CreadheaderisrespondedwithaNACK(Bit9inTable10)andthecommunicationstops.Afterthereadoutcommandfetchdatahasbeenissued,thedatamemoryiscleared,i.e.nomeasurementdataispresent.测量数据的传输可以通过表10所示的获取数据命令来启动。如果没有测量数据,I2C读取头会反应出一个NACK(表10中的9位),从而停止通信。在读出命令获取数据之后,数据存储器被清除,即测量数据不会存在。4.7ARTCommand4.7、ART命令TheART(acceleratedresponsetime)featurecanbeactivatedbyissuingthecommandinTable11.AfterissuingtheARTcommandthesensorwillstartacquiringdatawithafrequencyof4Hz.ART(加速响应时间)特性可以通过发出表11中的命令来激活。发行ART命令后,传感器将开始以频率4Hz获取数据。TheARTcommandisstructurallysimilartoanyothercommandinTable9.Hencesection4.5appliesforstartingameasurement,section4.6forreadingoutdataandsection4.8forstoppingtheperiodicdataacquisition.ART命令在结构上类似于表9中的任何其他命令。因此,第4.5节适用于启动测量,第4.6节适用于读取数据,第4.8节适用于停止周期性的数据采集。TheARTfeaturecanalsobeevaluatedusingtheEvaluationKitEK-H5fromSensirion.ART特征也可以采用Sensirion的评估套件EK-H5评价。4.8Breakcommand/StopPeriodicDataAcquisitionMode4.8、中断命令/停止周期数据采集模式TheperiodicdataacquisitionmodecanbestoppedusingthebreakcommandshowninTable12.Itisrecommendedtostoptheperiodicdataacquisitionpriortosendinganothercommand(exceptFetchDatacommand)usingthebreakcommand.Uponreceptionofthebreakcommandthesensorentersthesingleshotmode,afterfinishingtheongoingmeasurement.Thiscantakeupto15ms,dependingontheselectedrepeatability.可以使用表12所示的中断命令停止周期性数据采集模式。建议使用中断命令发送另一个命令(除了获取数据命令)之前就停止周期性数据获取。在接收到中断命令后,传感器在完成正在进行的测量之后进入单镜头模式。这取决于所选的可重复性,需要多达15毫秒。4.9Reset4.9复位AsystemresetoftheSHT3x-DIScanbegeneratedexternallybyissuingacommand(softreset)orbysendingapulsetothededicatedresetpin(nResetpin).Additionally,asystemresetisgeneratedinternallyduringpower-up.Duringtheresetprocedurethesensorwillnotprocesscommands.可以从外部发出命令(软复位)或通过发送一个脉冲到专用的复位引脚(nRESET引脚),对SHT3x-DIS进行系统复位。此外,系统复位是在电源上升期间产生的。在重置过程中,传感器将不处理命令。Inordertoachieveafullresetofthesensorwithoutremovingthepowersupply,itisrecommendedtousethenRESETpinoftheSHT3x-DIS.为了实现传感器的全复位,无需拆卸电源,建议使用的SHT3x-DIS的nRESET引脚。InterfaceReset接口复位Ifcommunicationwiththedeviceislost,thefollowingsignalsequencewillresettheserialinterface:WhileleavingSDAhigh,toggleSCLnineormoretimes.ThismustbefollowedbyaTransmissionStartsequenceprecedingthenextcommand.Thissequenceresetstheinterfaceonly.Thestatusregisterpreservesitscontent.如果与设备的通信丢失,则以下信号序列将重置串行接口:在离开SDA高电平时,切换SCL九次或更多次。在下一个命令之前,必须有一个传输开始序列。此序列仅重置接口。状态寄存器将保存其内容。SoftReset/Re-Initialization软复位/重新初始化TheSHT3x-DISprovidesasoftresetmechanismthatforcesthesystemintoawell-definedstatewithoutremovingthepowersupply.WhenthesystemisinidlestatethesoftresetcommandcanbesenttotheSHT3x-DIS.Thistriggersthesensortoresetitssystemcontrollerandreloadscalibrationdatafromthememory.InordertostartthesoftresetprocedurethecommandasshowninTable13shouldbesent.SHT3x-DIS提供软复位机制,可以强制系统进入一个明确的状态,而无需拆卸电源。当系统处于空闲状态,软复位命令可以发送到SHT3x-DIS。这将使传感器复位其系统控制器,并从存储器重新下载校准数据。为了启动软复位程序,应发送表13所示的命令。Itisworthnotingthatthesensorreloadscalibrationdatapriortoeverymeasurementbydefault.值得注意的是,传感器会默认在每次测量前重新加载标定数据。ResetthroughGeneralCall通过通用呼叫进行重置Additionally,aresetofthesensorcanalsobegeneratedusingthe“generalcall”modeaccordingtoI2C-busspecification12.ThisgeneratesaresetwhichisfunctionallyidenticaltousingthenResetpin.Itisimportanttounderstandthataresetgeneratedinthiswayisnotdevicespecific.AlldevicesonthesameI2Cbusthatsupportthegeneralcallmodewillperformareset.Additionally,thiscommandonlyworkswhenthesensorisabletoprocessI2Ccommands.TheappropriatecommandconsistsoftwobytesandisshowninTable14.此外,还可以根据I2C总线规范12使用“通用呼叫”模式来来复位传感器。这样产生的复位与使用nRESET引脚一样。重要的是要理解,以这种方式生成的重置不是特定于某个设备的。在支持通用呼叫模式的同一I2C总线上的所有设备都将执行复位。此外,只有当传感器能够处理I2C命令时,此命令才起作用。适当的命令由两个字节组成,如表14所示。ResetthroughthenResetPin通过nRESET引脚复位PullingthenResetpinlow(seeTable6)generatesaresetsimilartoahardreset.ThenResetpinisinternallyconnectedtoVDDthroughapull-upresistorandhenceactivelow.ThenResetpinhastobepulledlowforaminimumof1µstogeneratearesetofthesensor.将nRESET引脚拉低(见表6)将产生一个类似硬复位的复位。nRESET引脚通过上拉电阻,与VDD内部连接,因此位于低电平。nReset引脚要拉低至少1µ才能复位传感器。HardReset硬复位AhardresetisachievedbyswitchingthesupplyvoltagetotheVDDPinoffandthenonagain.InordertopreventpoweringthesensorovertheESDdiodes,thevoltagetopins1(SDA),4(SCL)and2(ADDR)alsoneedstoberemoved.一个硬复位是将电源电压调到VDD引脚关闭状态,再调到开启状态,即达到应复位。为了防止供电的传感器超过ESD二极管,需要将电压引脚1(SDA)、4(SCL)和2(ADDR)移除。4.10Heater4.10、加热器Theheatercanbeswitchedonandoffbycommand,seetablebelow.Thestatusislistedinthestatusregister.Afteraresettheheaterisdisabled(defaultcondition).加热器通过命令进行开启和关闭,见下表。状态被列在状态寄存器中。复位后,加热器就被禁用(默认条件)。4.11StatusRegister4.11、状态登记Thestatusregistercontainsinformationontheoperationalstatusoftheheater,thealertmodeandontheexecutionstatusofthelastcommandandthelastwritesequence.ThecommandtoreadoutthestatusregisterisshowninTable16whereasadescriptionofthecontentcanbefoundinTable17.状态寄存器包含加热器的操作状态、警报模式以及上一个命令和最后一个写入序列的执行状态的信息。读取状态寄存器的命令如表16所示,而对内容的描述可在表17中找到。ClearStatusRegister明确的状态登记Allflags(Bit15,11,10,4)inthestatusregistercanbecleared(settozero)bysendingthecommandshowninTable18.状态寄存器中的所有标志(15,11,10,4位)可以通过发送表18所示的命令进行清除(设置为零)。4.12ChecksumCalculation4.12、校验和计算The8-bitCRCchecksumtransmittedaftereachdatawordisgeneratedbyaCRCalgorithm.ItspropertiesaredisplayedinTable19.TheCRCcoversthecontentsofthetwopreviouslytransmitteddatabytes.Tocalculatethechecksumonlythesetwopreviouslytransmitteddatabytesareused.在每个数据字之后发送的8位CRC校验和是由CRC算法生成的。它的属性显示在表19中。CRC覆盖了先前传输的两个数据字节的内容。要计算校验和,只使用这两个先前发送的数据字节即可。4.13ConversionofSignalOutput4.13、信号输出转换Measurementdataisalwaystransferredas16-bitvalues(unsignedinteger).Thesevaluesarealreadylinearizedandcompensatedfortemperatureandsupplyvoltageeffects.Convertingthoserawvaluesintoaphysicalscalecanbeachievedusingthefollowingformulas.Relativehumidityconversionformula(resultin%RH):测量数据总是以16位值(无符号整数)传输。这些值已经线性化并补偿了温度和电源电压的影响。使用以下公式可以将这些原始值转换为物理量。相对湿度换算公式为(结果为%RH):Temperatureconversionformula(resultin°C&°F):温度换算公式为(结果为°C&°F):SRHandSTdenotetherawsensoroutputforhumidityandtemperature,respectively.TheformulasworkonlycorrectlywhenSRHandSTareusedindecimalrepresentation.SRH和ST分别表示原传感器输出的温度和湿度。只有当SRH和ST用十进制表示时,该公式才能计算正确。4.14CommunicationTiming4.14、通信时序
/
本文档为【SHT 中文资料】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索