郊区化的英文翻译英语怎么说-天数计算


2023年4月7日发(作者:the road not taken mp3)

/**********************************************************************************************/

FIFOWritePointer

TheFIFOwritepointerpointstothelocationwheretheMAX30100writesthenextsample.

//FIFO写指针指向MAX30100写下一个样品的位置

ThispointeradvancesforeachsamplepushedontotheFIFO.

//这个指针向前将每个样品推入FIFO中

ItcanalsobechangedthroughtheI2CinterfacewhenMODE[2:0]isnonzero.

//当模式[2:0]不为0时,它也能够通过I2C接口而被修改

/**********************************************************************************************/

FIFOOverflowCounter

WhentheFIFOisfull,samplesarenotpushedontotheFIFO,samplesarelost.//当

FIFO满时,样品不再被推入FIFO,样品此时丢失

OVF_ratesat0xF.

//OVF_COUNTER会计数样品丢失的数量,到达0xF时将饱和

WhenacompletesampleispoppedfromtheFIFO(whenthereadpointeradvances),

//当一个完整的样品从FIFO被捕获时(即当读指针向前时)

OVF_COUNTERisresettozero.

//OVF_COUNTER被重置为0

/**********************************************************************************************/

FIFOReadPointer

TheFIFOreadpointerpointstothelocationfromwheretheprocessorgetsthenext

sample

//FIFO读指针指向处理器获得下一个FIFO通过I2C接口得到的样品的位置

vanceseachtimeasampleispoppedfrom

theFIFO.

//这个指针向前当每次从FIFO捕获一个样品时

Theprocessorcanalsowritetothispointerafterreadingthesamples,

//如果存在一个数据交流错误处理器将允许从FIFO重读样品并在读样品之后也能够写

入这个指针

whichwouldallowrereadingsamplesfromtheFIFOifthereisadatacommunication

error.

/**********************************************************************************************/

FIFOData

ThecircularFIFOdepthis16andcanholdupto16samplesofSpO2channeldata(Red

andIR).

//这个供读取的FIFO深度为16,并且能够保存16个血氧饱和度通道数据样品(红光与红

外)

TheFIFO_DATAregisterintheI2Cregistermappointstothenextsampletoberead

fromtheFIFO.

//在I2C寄存器表中的FIFO_DATA寄存器指向下一个能够在FIFO中读取的样品

FIFO_RD_PTRpointstothissample.

//FIFO_RD_PTR指向这个样品

ReadingFIFO_DATAregisterdoesnotautomaticallyincrementtheregisteraddress;

//读FIFO_DATA寄存器时不会自动增加寄存器地址

burstreadingthisregisterreadsthesameaddressoverandover.

//突发读取这个寄存器只会重复读同一个地址

Eachsampleis4bytesofdata,sothisregisterhastoberead4timestogetonesample.

//每个样品是4字节的数据,所以合格寄存器必须读4次才能得到一个样品

Theaboveregisterscanallbewrittenandread,butinpractice,

//在这之前的寄存器都能够被写和读,当在实践中

onlytheFIFO_RD_PTRregistershouldbewrittentoinoperation.

//只有FIFO_RD_PTR寄存器自能在操作中被写

Th

startinganewSpO2

//其他的寄存器会自动自增或者通过MAX30100填满数据当开始一个新的血氧饱和度

orheart-rateconversion,itisrecommendedtofirstcleartheFIFO_WR_PTR,

OVF_COUNTER,

//或者心率转化时,它会被重新命令先清空FIFO_WR_PTR,OVF_COUNTER

andFIFO_RD_PTRregisterstoallzeros(0x00)toensuretheFIFOisemptyandinaknown

state.

//和FIFO_RD_PTR寄存器为0(0x00)来确认FIFO为空并处于已知状态

WhenreadingtheMAX30100registersinoneburst-readI2Ctransaction,

//在一次突发读取的I2C交易中读取MAX30100寄存器时

theregisteraddresspointertypicallyincrementssothatthenextbyteofdatasentisfrom

//寄存器地址指针典型自增以至于下一字节是从下个寄存器传来的,等等

thenextregister,eptiontothisistheFIFOdataregister,register0x05.

//这个例外是对于这是FIFOdata寄存器,即寄存器0x05而言

Whenreadingthisregister,theaddresspointerdoesnotincrement,butthe

FIFO_RD_PTRdoes.

//当读取这个寄存器时,地址指针不会自增,但FIFO_RD_PTR寄存器地址指针会

SothenextbyteofdatasentwillrepresentthenextbyteofdataavailableintheFIFO.

//所以下个数据的字节的传送将替代FIFO中下个现有的数据的字节

/**********************************************************************************************/

ReadingfromtheFIFO

Normally,readingregistersfromtheI2Cinterfaceautoincrementstheregisteraddress

pointer,

//通常,从I2C接口读取寄存器时会自增这个寄存器的地址指针

sothatalltheregisterscanbereadinaburstreadwithoutanI2Crestartevent.

//所以,所有的寄存器都能够在没有I2C重启事件时被一个突发读指令读取

IntheMAX30100,thisholdstrueforallregistersexceptfortheFIFO_DATAregister(0x05).

//在MAX30100中,这适用于除了FIFO_DATA寄存器(0x05)的所有寄存器

ReadingtheFIFO_DATAregisterdoesnotautomaticallyincrementtheregisteraddress;

//读FIFO_DATA寄存器是不会自动增加该寄存器的地址

mpleis4bytes

ofdata,

//突发读取只会重复读取这个寄存器的同一个地址每个样品是一个4字节的数据

sothisregisterhastoberead4timestogetonesample.

//所以这个寄存器必须被读取4次才能得到一个样品

Theotherexceptionis0xFF,readingmorebytesafterthe0xFFregisterdoesnotadvance

//另外一个例外是0xFF,在0xFF寄存器之后读取多个字节

theaddresspointerbackto0x00,andthedatareadisnotmeaningful.

//不会让它的地址向前而回到0x00并且读到的数据也是没有意义的

/**********************************************************************************************/

FIFODataStructure

ThedataFIFOconsistsofa16-samplememorybankthatstoresbothIRandREDADC

data.

//数据FIFO由一个可存16个红外和红光LED的ADC数据样品的存储银行组成

SinceeachsampleconsistsofoneIRwordandoneREDword,thereare4bytesofdata

foreachsample,

//因此每个样品都由一个红外字(word)和一个红光字(word)组成,而每个数据有

四字节

andtherefore,64totalbytesofdatacanbestoredintheFIFO.

//因此,在FIFO中,可存储总共64个字节的数据

Figure2showsthestructureoftheFIFOgraphically.

//表2展示了FIFO的结构

TheFIFOdataisleft-justifiedasshowninTable1;

//FIFO数据如表1所展示的那样,是向左对齐的

bitisalwaysinthebit15positionregardlessofADCresolution.

//如例,无论ADC的分辨率如何,MSB位总是在第15位

EachdatasampleconsistsofanIRandareddataword(2registers),

//每个样品都由一个红外字(word)和一个红光字(word)组成,(两个寄存器)

sotoreadonesamplerequires4I2Cbytereadsinarow.

//所以在读一个样品时,要求一行中进行4次I2C操作

TheFIFOreadpointerisautomaticallyincrementedaftereach4-bytesampleisread.

//在每一次从FIFO读取4字节的样品数据时,读指针都会自增

Inheart-rateonlymode,the3rdand4thbytesofeachsamplereturnzeros,

//在只在心率模式时,每个样品的第3、第4字节都会返回0

butthebasicstructureoftheFIFOremainsthesame.

//但FIFO的基本结构仍是一样的

/**********************************************************************************************/

Write/ReadPointers

Thelocationstostorenewdata,andthereadpointerforreadingdata,

//储存数据的位置,和读数据的读指针,被用于控制FIFO里的数据流

areusedtocontroltheflowofdataintheFIFO.

ThewritepointerincrementseverytimeanewsampleisaddedtotheFIFO.

//在每一次添加数据到FIFO时,写指针都会自增

ThereadpointerisincrementedautomaticallyeverytimeasampleisreadfromtheFIFO.

//在每一次从FIFO读数据时,读指针都会自增

TorereadasamplefromtheFIFO,decrementitsvaluebyoneandreadthedataregister

again.

//在重新从FIFO读取数据时,需要自减指针的值,并再一次读取数据寄存器

TheSpO2write/readpointersshouldbecleared(backto0x0)uponenteringSpO2mode

orheart-ratemode,//血氧饱和度写/读指针应该清空(即回到0x00)并进入血氧饱和度

模式或心率模式

sothatthereisnoolddatarepresentedintheFIFO.

//所以FIFO中不存在旧的数据代表

Thepointersarenotautomaticallyclearedwhenchangingmodes,buttheyarecleared

ifVDDispower

//在转换模式时,这几个指针都不会自动清空,但如果VDD是循环供电时,

cycledsothattheVDDvoltagedropsbelowitsUVLOvoltage.

//他们将会被清空,所以VDD电压拉低于他的UVLO电压

/**********************************************************************************************/

Pseudo-CodeExampleofReadingDatafromFIFO//从FIFO中读取数据的伪代码示例

Firsttransaction:GettheFIFO_WR_PTR://第一次交易:获得fifo_wr_ptr:

START;

Senddeviceaddress+writemode

SendaddressofFIFO_WR_PTR;

REPEATED_START;

Senddeviceaddress+readmode

ReadFIFO_WR_PTR;

STOP;

/**********************************************************************************************/

ThecentralprocessorevaluatesthenumberofsamplestobereadfromtheFIFO:

//中央处理器评估从FIFO读取的样本数量:

NUM_AVAILABLE_SAMPLES=FIFO_WR_PTR-FIFO_RD_PTR

(Note:pointerwraparoundshouldbetakenintoaccount)

NUM_SAMPLES_TO_READ=

/*********************************************范仲淹最有名的诗 *************************************************/

Secondtransaction:ReadNUM_SAMPLES_TO_READsamplesfromtheFIFO:

//第二次交易:从FIFO读取num_samples_to_read样品:

START;

Senddeviceaddress+writemode

SendaddressofFIFO_DATA;

REPEATED_START;

Senddeviceaddress+readmode

for(i=0;i

{

ReadFIFO_DATA;

SaveIR[15:8];

ReadFIFO_DATA;

SaveIR[7:0];

ReadFIFO_DATA;

SaveR[15:8];杜甫简历个人资料简介

ReadFIFO_DATA;

SaveR[7:0];

}

STOP;

/************************************************************************举头望明月打一成语 **********************/

Thirdtransaction:WritetoFIFO_RD_econdtransactionwassuccessful,

//第三次交易:写fifo_rd_ptr寄存器。如果第二次交易成功,

FIFO_RD_PTRpointstothenextsampleintheFIFO,andthisthirdtransactionisnot

necessary.

//fifo_rd_ptr指向FIFO的下一个样品,这第三次交易不是必要的。

Otherwise,theprocessorupdatestheFIFO_RD_PTRappropriately,sothatthesamples

arereread.

//另外,处理器适当地更新fifo_rd_ptr,使得样品得以重读。

START;

Senddeviceaddress+writemode

SendaddressofFIFO_RD_PTR;

WriteFIFO_RD_PTR;

STOP;

/**********************************************************************************************/

EventsSequenceforFigure4inHeart-RateMode

//心率模式中图4的事件序列

---------------------------------------------------------------------------

-------------------------------------------------------------------------------

-----

EVENTDESCRIPTIONCOMMENTS

---------------------------------------------------------------------------

-------------------------------------------------------------------------------

-----

1EnterintoheartratemodeI2CWriteCommandSets

MODE[2:0]=eHR_RDYinterrupt.

//进入心率模式I2C写命令设置模式[2:0]=

0x02。掩盖HR_RDY中断。

---------------------------------------------------------------------------

-------------------------------------------------------------------------------

-----

2FIFOisalmostfull,interruptgeneratedInterruptisgeneratedwhentheFIFO

hasonlyoneemptyspaceleft.

//FIFO几乎是满了,产生中断只有一个空的空间留下

FIFO时,产生中断。

---------------------------------------------------------------------------

-------------------------------------------------------------------------------

-----

3FIFOdataisread,interruptcleared

//FIFO的数据被读取,中断离开

---------------------------------------------------------------------------

-------------------------------------------------------------------------------

-----

4NextsampleisstoredNewsampleisstoredatthe

ively,itisnowthefirstsampleintheFIFO.

//下一个样品被存储新的样品存储在新的读指

针位置。实际上,现在是第一个样本在FIFO。

---------------------------------------------------------------------------

-------------------------------------------------------------------------------

-----

/**********************************************************************************************/

ApplicationsInformation//应用程序信息

SamplingRateandPerformance//采样率和性能

samplingratecanbe

configuredfrom50spsto1ksps.

ThemaximumsampleratefortheADCdependsontheselectedpulsewidth,whichin

turn,determinestheADCresolution.

Forinstance,ifthepulsewidthissetto200/*s*/,thentheADCresolutionis13bitsand

allsampleratesfrom50sps

r,ifthepulsewidthissetto1600/*s*/,thenonlysample

ratesof100spsand50spscanbeset.

TheallowedsampleratesforbothSpO2andHRmodearesummarizedinTable8and

Table9.

//MAX30100ADC是16位Sigma-Delta转换器。ADC的采样速率可以配置为50sps到

1ksps。

//ADC的最大采样速率取决于所选择的脉冲宽度,从而确定ADC的分辨率。

//例如,如果脉冲的宽度设置为200S,则ADC的分辨率为13位,并且采样率从50sps

到1ksps都是可选的。

//然而,如果脉冲的宽度设置为1600S,则采样率只有100sps和50sps可设置。

//SpO2、HR模式下允许的采样率总结在表8和表9

/**********************************************************************************************/

PowerConsiderations//功率因素

TheLEDsinMAX30100arepulsedwithalowdutycycleforpowersavings,andthepulsed

currentscancauseripplesintheLEDpowersupply.

ToensurethesepulsesdonottranslateintoopticalnoiseattheLEDoutputs,thepower

supplymustbedesignedtohandlepeakLEDcurrent.

Ensurethattheresistanceandinductancefromthepowersupply(battery,DC/DC

converter,orLDO)tothedeviceLED+pinsismuchsmallerthan1/**/,

andthatthereisatleast1/*F*/ofpower-supplybypasscapacitancetoalowimpedance

groundplane.

Thedecouplingcapacitorshouldbelocatedphysicallyascloseaspossibletothe

MAX30100device.

Intheheart-rateonlymode,theredLEDisinactive,andonlytheIRLEDisusedtocapture

opticaldataanddeterminetheheartrate.

ThismodeallowspowersavingsduetotheredLEDbeingoff;inaddition,theIR_LED+

powersupplycanbereducedtosavepowerbecausetheforward

voltageoftheIRLEDissignificantlylessthanthatoftheredLED.

TheaverageIDDandLEDcurrentasfunctionofpulsewidthandsamplingrateis

summarizedinTable10toTable13.

//MAX30100中的LED脉冲调制为低占空比来节省功率,并且脉冲电流会在LED电源

供给中导致纹波。

//为确保这些脉冲不转化为光噪声的LED输出,电源供给必须设计为处理峰值LED电

流。

//确保从电源到LED+器件(电池、DC/直流转换器,或LDO)的引脚的电阻和电感远

小于1

//并有至少1F电源旁路电容接到一个低阻抗的接地平面。

//去耦电容应位于身体尽量靠近max30100装置

//在只有心率模式下,红色的LED是无效的,只有红外LED是用来捕获光学数据,并确

定心脏率。

//这个模式允许的节省功率是由于红色LED被关闭;此外,该红外LED+电源可以减去

以节省电力

//因为前面的红外LED的电压是明显小于红色发光二极管。

//IDD和LED平均电流与脉冲宽度的函数和采样率列于表10到表13。

/**********************************************************************************************/

SlaveIDDescription//从器件描述

WriteDataFormat//写数据格式

Forthewriteoperation,sendtheslaveIDasthefirstbytefollowedbytheregisteraddress

byteandthenoneormoredatabytes.

Theregisteraddresspointerincrementsautomaticallyaftereachbyteofdatareceived.

Forexample,atethedata

transferwithaSTOPcondition.

ernalregisteraddresspointerincrements

automatically,

sowritingadditionaldatabytesfillthedataregistersinorder.

//对于写操作,发送从器件地址为第一个字节,随后是寄存器地址字节,然后是一个或

多个数据字节。

//寄存器地址指针在接收每一个字节的数据后自动增量。例如,整个寄存器库可以一次

写入。

//以停止条件终止数据传输。写操作如图8所示。内部寄存器地址指针自动递增,

//因此,写额外数据字节时按顺序填充数据寄存器。

/**********************************************************************************************/

ReadDataFormat//读数据格式

Forthereadoperation,,theslaveIDbyteis

sentfollowedbytheI2Cregisterthatyouwishtoread.

ThenaREPEATEDSTART(Sr)conditionissent,

MAX30100thenbeginssendingdatabeginningwiththeregisterselectedinthefirst

operation.

Thereadpointerincrementsautomatically,sotheMAX30100continuessendingdata

fromadditionalregistersinsequentialorderuntilaSTOP(P)conditionisreceived.

TheexceptiontothisistheFIFO_DATAregister,atwhichthereadpointernolonger

incrementswhenreadingadditionalbytes.

ToreadthenextregisterafterFIFO_DATA,anI2Cwritecommandisnecessarytochange

thelocationofthereadpointer.

sentfrom

registersinsequentialorder,

IFO_DATA

registerisread,thereadpointerdoesnotautomaticallyincrement,

andsubsequentbytesofdatacontainthecontentsoftheFIFO.

//对于读操作,两个I2C操作必须执行。首先,当你想读时从器件字节跟随I2C寄存器

发送。

//然后重复启动(SR)的条件被送出,接着是读从器件。MAX30100然后从在第一次操

作选择的寄存器开始发送数据。

//读指针自动递增,所以MAX30100继续从按顺序附加的寄存器发送数据,直到停止

(P)条件被接收。

//唯一例外的是fifo_data寄存器,在读附加数据时,读指针不再增加。

//在fifo_data之后读下一个寄存器,用I2C读写命令来改变读指针的位置是必要的。

//要求一个初始写操作来发送读寄存器地址。数据从寄存器按顺序发送,从最初的I2C

写操作选择的寄存器开始。

//如果fifo_data寄存器被读,读指针不会自动增值

//并且随后数据的字节包含FIFO的内容。

/**********************************************************************************************/

SpO2Configuration(0x07)

Bit6:SpO2HighResolutionEnable(SPO2_HI_RES_EN)

2ADCresolutionis16-bitwith1.6msLEDpulsewidth.

//6位:血氧饱和度高分辨率使(spo2_hi_res_en)

//设置这位为高。血氧饱和度的ADC的分辨率为16位,1.6msLED脉冲宽度。

Bit5:Reserved.

Setlow(default).

//位5:保留。

//设置低(默认)。

Bit4:2:SpO2SampleRateControl

Thesebitsdefinetheeffectivesamplingrate,withonesampleconsistingofoneIR

pulse/conversionandoneREDpulse/conversion.

Thesamplerateandpulsewidtharerelated,inthatthesampleratesetsanupperbound

onthepulsewidthtime.

IftheuserselectsasampleratethatistoohighfortheselectedLED_PWsetting,the

highestpossiblesampleratewillinsteadbeprogrammedintotheregister.

//位4:2:SpO2采样率控制

//这些位定义有效的采样率,其中一个样本由一个红外脉冲/转换和一个红色脉冲/

转换组成的。

//采样率和脉冲宽度都是相关的,在这里采样率在脉冲宽度的时间上设置了一个上限。

//如果用户选择的采样率时选择的led_pw设置得太高,那么样品中只有最高采样率将

被编入寄存器。

Bits1:0:LEDPulseWidthControl

ThesebitssettheLEDpulsewidth(theIRandREDhavethesamepulsewidth),and

therefore,indirectlysettheintegration

resolutionisdirectlyrelatedtotheintegration

time.

//位1:0:LED脉冲宽度控制

//这些位是设置LED脉冲宽度(红外和红色有相同的脉冲宽度),因此,间接设置

//在每个采样品的ADC的积分时间。ADC的分辨率与积分时间直接相关的。

/**********************************************************************************************/

LEDConfiguration(0x09)

Bits7:4:RedLEDCurrentControl

ThesebitssetthecurrentleveloftheRedLEDasinTable6.

//位[7:4]:红色LED电流控制

//这些位设置了在表6中的红色LED的电流水平。

Bits3:0:IRLEDCurrentControl

ThesebitssetthecurrentleveloftheIRLEDasinTable6.

//位[3:0]:红外LED电流控制

//这些位设置了在表6中的红外LED的电流水平。

ActualmeasuredLEDcurrentforeachpartcanvarywidelyduetotheproprietarytrim

methodology.

//实际测量适合元旦朗诵的诗歌 的LED电流的每个部分都可以有很大的不同,这是由于专有的修剪方法。

/**********************************************************************************************/

HardwareInterrupt

is

open-drainandrequiresapullupresistororcurrentsource

toanexternalvoltagesupply(upto+5VfromGND).Theinterruptpinisnotdesigned

tosinklargecurrents,sothepullupresistorvalueshouldbelarge,suchas4.7k.

TheinternalFIFOstoresupto16samples,so端午最短寄语 thatthesystemprocessordoesnotneed

aturedatamaybeneededtoproperly

interpretSpO2data,butthetemperaturedoesnotneedtobesampledveryoften—

t-ratemodetemperature

informationisnotnecessary.

//硬件中断

//当触发中断时,低电平有效中断引脚拉低。该引脚为开漏,需要一个上拉电阻或

电流源给外部电源电压(高达+5V从GND)。中断引脚不是设计为拉沉大电流,所以电阻

值要大,如4.7K。

//内部的FIFO存储赞美立秋的唯美句子 多达16个样品,以便系统处理器不需要在每个样本之后仍去读取数

据。温度数据可能需要去正确解释血氧饱和度数据,但温度不需要采样,往往一次或每几秒

应该足够了。

//但在心率模式,温度信息是没有必要的。

CEFORWHITEHIGHIMPACTSTYRENECARD

//非脉动计数

更多推荐

心率的英文译语怎么说