設(shè)計(jì)參考、源碼手冊(cè)1746個(gè)zhcs_第1頁(yè)
設(shè)計(jì)參考、源碼手冊(cè)1746個(gè)zhcs_第2頁(yè)
設(shè)計(jì)參考、源碼手冊(cè)1746個(gè)zhcs_第3頁(yè)
設(shè)計(jì)參考、源碼手冊(cè)1746個(gè)zhcs_第4頁(yè)
設(shè)計(jì)參考、源碼手冊(cè)1746個(gè)zhcs_第5頁(yè)
已閱讀5頁(yè),還剩36頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

ZHCS297–OCTOBER查詢樣品 說(shuō)專為與消費(fèi)型UPS系統(tǒng)中的12V鉛酸電池一起使 具有運(yùn)行時(shí)間顯示功能的bq78412鉛酸電池充電狀態(tài) (SoC)指示器是一款完整的獨(dú)立型電池電量監(jiān)測(cè)解決 案,專為單12V鉛酸電池而設(shè)計(jì)。bq78412利用一 10-LED(發(fā)光二極管)條形圖來(lái)顯示電池的剩余運(yùn)(充電期間)顯示的10-LED條形 時(shí)間(放電期間)和百分比(%)容量(充電期間)

應(yīng) 12V

串行端口能夠操作一個(gè)紅外(IR)接口,以實(shí)現(xiàn)無(wú)連?2010,TexasInstrumentsPleasebeawarethatanimportantnoticeconcerningavailability,standardwarranty,anduseincriticalapplications?2010,TexasInstrumentsPRODUCTIONDATAinformationiscurrentasofpublicationdate.ProductsconformtospecificationsperthetermsoftheInstrumentsstandardwarranty.Productionprocessingdoes EnglishDataSheet:necessarilyincludetestingofallThesedeviceshavelimitedbuilt-inESDprotection.TheleadsshouldbeshortedtogetherorthedevicecedinconductivefoamduringstorageorhandlingtopreventelectrostaticdamagetotheMOSgates. UMVoltageappliedtoVVoltageappliedtoVRS+,RS–Differential(VRS+–VCommonmode(VRS+,VVoltageappliedtoAVDDandVVoltageappliedtootherVDiodecurrentatanydevice2Stressesabovetheseratingsmaycausepermanentdamage.Exposuretoabsolute umconditionsforextendedperiodsmaydegradedevicereliability.Thesearestressratingsonly,andfunctionaloperationofthedeviceattheseoranyotherconditionsbeyondthosespecifiedisnotimplied.VDDreferstovoltageonDVDDandAVDDMENDEDOPERATINGSupply4VOperatingBatteryCurrentmeasurement,ACurrentmeasurement,AMEASUREMENTACCURACY(12-VBatteryvoltageShuntvoltageTemperatureTimingaccuracyofinternalSpecifiedat12SpecifiedatfullOffsetcalibrationofthetemperaturetakescepriortothisCalibratedclockfrequency,toleranceovertemperature0°CtoCapacitylearningisdonepriortoUARTCOMMUNICATIONSPORT Data9600CommandresponseTransmitintercharacter4umtimefromhosttransmissionoflastcommandbytetofirstresponsebytheumtimeintervalbetweenstartbitsfordataorresponsebeingtransmittedfromtheCURRENTOPERATINGTYPICALConnectedtoUPSandgasgaugingactive.DisyisactiveandnotNotconnectedtoUPS.DisyisactiveandnotNotconnected.DisyELECTRICALREG33load100μA≤ILOAD≤100mA,TJ=100μA≤ILOAD≤100mA,–40°C≤TJ≤ADCbasicSensevoltagemeasurementstep4ShuntcurrentmeasurementstepAFullscalecurrentsensevoltageSense1Package

(TopView)

ThermalpadisonthebottomsideoftheN/C=noPINIConfigurationinput.ConnecttoIConfigurationinput.ConnecttoP3.3-Vpowertooglogic.TypicallyconnectedtoPConnecttoOBuzzeroutput.ActivehighwhenalarmconditionisOActivehighoutput,turnsondisyenabletransistor.Notrequiredinallapplications.BlanksdisyduringP3.3-Vsupplytothedigitallogic.Connecta2.2-μFcapacitortoVSS.TypicallyconnectedtoPConnecttoPRegulated3.3-VpowerIConnecttoexternalRCnetworkforpower-up–,noconnectionICurrentsenseICurrentsense9IUARTRX6OI2CclockII2Cclockforinternaluse.ConnecttoSCLpin2OLow-to-hightransitionclocksdataintoexternalserialin,paralleloutshift7OIRXCVRShutdown;HIGH=XCVRinshutdown,LOW=XCVR5I2CI2Cdataforinternaluse.ConnecttoSDApin3OSerialdisydatatoserialin,paralleloutshiftregister.AlowbitturnsonanTestpin,noTestpin,noTestpin,noTestpin,noTestpin,no8OUARTTXPInputtointernalISensevoltage.ConnecttobatteryIInputterminalof8-MHzcrystaloscillatororcrystalpin.(Optional:CanbeleftunconnectedtouseinternalOOutputterminalof8-MHzcrystaloscillatororcrystalpin.(Optional:Canbeleftunconnectedtouseinternal1–No4TYPICAL+

2.2

100

1050

VBAT+SDASDA

SCLA1

1 A0RS+

CF

10

10

10383736

RS–VSAVSSAVDDDISPEN

10470(x

10

47

1VCC17

RTTEStatus/RTTEStatus/

35665849372

SDATSCLKN/CN/CN/CN/CN/CN/C

1289147

Q0Q1Q2Q3Q4Q5Q6Q7

1to15 6.3

RSVD 470.0016.3

44RST

RSVD12B72B7D48596XOUT42

Q0

Q6Q7u SoHSoH(1)CF=0.1μFto1

APPLICATIONThebq78412isacompletePb-Acidgas-gaugewitharun-timedisyandwarrantyinformationstorage.Itsupportslargebatteriesuptoaumcapacityof327Ahrwhenmeasuredatthe20hourrate.Measurementinputsincludethe12-Vnominalbatteryvoltageandthebatterycurrent.Coulombcountingondischargeandchargeallowsastate-of-chargecalculationandrun-time-to-emptyondischargeestimation.Cumulativeusageinformationisperiodicallyandpermanentlystoredinternallyandmayberetrievedonlybyaspecialsequencingoperationperformedbythemanufacturer.Operationofthebq78412requiresnouserin ction.Duringchargeanddischarge,theLEDdisyisautomaticallyactivatedwhenchargeordischargecurrentisdetectedaboveaconfigurablethreshold.CurrentSense,BatteryVoltage,Temperature,andTimeThebq78412measureschargeanddischargecurrentusingalow-value(between1and3mΩ)senseresistorcedinthenegativepowerpathofthecircuit.Thissenseresistormaybeassimpleasapieceofthermallystablemetalortheleadpowerpostonthebatteryitself.Calibrationofthissenseresistorisrequiredincircuit(inmodule).Theprintedcircuitboard(PCB)designermustconsidertheimpactofdriftand/orvariationinthesenseresistorvalueovertimeandtemperature,includingself-heatingtemperatureeffects.Thebq78412doesnotcompensateforsuchchanges.ThevoltagemeasuredbetweentheRS+andRS–pinsisscaledbythesenseresistorvalue(setinMeasScaleparameter)tocalculatethecurrentvalue.TheumdifferentialvoltageallowedbetweentheRS+pinandtheRS–pinis160mV.Alternatively,avoltageproportionaltothecurrent(derivedusingmeansotherthanasenseresistor,butwithinrangeoftheallowabledifferential)couldbeappliedtotheterminalstoprovidethecurrentmeasurement.Thebq78412measuresthebatteryvoltagebetweentheVSandAVSSThebq78412hasanon-chiptemperaturesensor.Thebatterytemperatureisassumedtobeequaltotheon-chipTimemeasurementisreferencedtoaninternaloscillator.However,formoreaccuracy,anexternal8-MHzcrystaloscillatororcrystalcanbeused.ThisisenabledbysettingDevConfig2[15]=1.Theswitch-overhappensonlyafterahardwareorsoftwarereset.State-of-Charge(SoC)Gas-Thebq78412providescapacityandrun-time-to-emptyestimatesforPb-Acidbatteriesusingarateandtemperaturecompensatedcoulombcountingalgorithm.Thegas-gauginginformationisusedtodrivethelocalLEDdisywithrun-time-to-emptyCapacitycorrectionissupportedbasedonthedischargecurrent.A64-bytebatterycharacterizationtablecontainsbatteryperformancedatathatisusedtoadjusttheremainingcapacityandrun-time-to-emptyasafunctionofdischargerateandtemperature.Thisinformationisuniquetoeachbatterymodelandisprogrammedatthebatterymanufacturingfacilitybasedonbatteryperformancedataprovidedbythemanufacturer.ChargeEfficiencyThebq78412providesaparameter,ChgEffthatallowsforcorrectionofaccumulatedchargeinthebatteryduetochargeefficiency.Duringcharge,thepassedchargeismultipliedbythechargeefficiencyandtheresultisaddedtotheremainingcapacity.Forexample,ifChgEffissetto85(representing85%),when100Ahhavebeenmeasured,only85Aharerecordedasactuallybeingaccumulated.WiththedefaultsettingfortheChgEff=100,allchargecurrentisaccumulated.GasGaugingAfteraDuringnormaloperation,thelastlearnedfullchargecapacity(FCC),elapsedtimeandotherimportantvariablesarestoredinpermanentmemory.If,forsomereasonthebatterydischargestothepointwherethereisnolongersufficientvoltageforthebq78412tooperate,itshutsdown.Undersuchconditions,whenthedevicepowersup,thesevariablesarerestoredandbatteryisassumedtobeat50%relativeSoC.Ifachargecurrentispresent,thedevicebeginstomeasuretheaccumulatedchargeandtime.Chargingproceedsasnormalwiththeappropriateend-of-chargedetectioncriteria.Ifthebq78412powersupandthereisnocurrent,thedevicegoesintoidlestatefollowedbysleepstateuntilacurrentisdetected.BatteryCapacityThebq78412hastwomechanismsforupdatingthebatterycapacityasthebatteryages.(Notethattheinitialcapacityprogrammedintothebq78412couldbeinerrorduetomanufacturingtolerancesorformationprocedures.Thistranslatestoagasgaugingerroruntilthebatterycapacityisaccuraylearned.)BoththeLearnedCapacitymethodandAge-BasedCapacitymethodoperateindependentlyandbothmaybeenabledordisabledseparayinordertomaintainthecorrectmeasureofcapacityofthebatteryoveravarietyofoperatingconditions,butitissuggestedthatbothbeenabledforoptimalperformance.LearnedCapacityWhenDevConfig1[14]issetto"1",thebq78412opportunisticallylearnsthefullchargecapacity(FCC)ofthebatterybasedonaqualifieddischarge.Acompletedischargefromfullychargedtofullydischargedwithnochargingeventsraisingtheremainingstateofcharge(SoC)above80%isconsideredqualified.Aninternalstatevariablequalifieddischarge(QD)isusedformaintainingthestatusofdischargequalification.QDisinitiallydisabled.Whenthebatteryhasreachedthefullychargedstate,QDissettoenabledanddischargelearnaccumulatorisclearedtozero.Whenadischargebegins,QDissettoactive.WhileQDisactive,allpassedcharge(positiveornegative)isaccumulatedinthedischargelearnaccumulator.Ifatanytime(whileQDisinanactivestate)achargingeventraisesSoCabove80%,QDissettodisabledandthedischargelearnaccumulatorisignored.IfthebatteryreachesthefullydischargedstateandQDisstillactive,thealgorithmlearnsFCCbasedonthedischargelearnaccumulatorandthecurrentloadde-ratingusing1.FCCDischargeLearnDeratingisthecapacityderatingfractionasafunctionofload Age-BasedCapacityThecounterfortheelapsedtimestartswhenthedeviceisWhenDevConfig1[15]issetto"1"(non-default),thebq78412updatestheFCCbasedonelapsedtimeandanagingalgorithmwithmanufacturerdefinedparameters.Thebq78412decrementstheFCCby0.100AheveryCapDeradaysuntilDerateChangedayshaveelapsed,afterwhichtheFCCdecrementsbythesameamounteveryCapDerateHdays.InthiswaytheFCCisregularlyde-rated(decremented)atregularintervalsindependentlyofthelearnedcapacityThevaluesforCapDera,DerateChange,andCapDerateHmustbecarefullychosentoimplementanappropriateage-basedcapacitydecreaseformula.Forexample:Assuminga100Ahbattery(whennew)anda3%/yearcapacityfadeforthefirst3yearsanda4%/yearfadeafterwards,theparametersmightbesetasfollows:3%of100Ah=3Ahdecreaseinone3Ahdecreasein0.1Ahsteps=30separatestepsover365365days/30decrementsteps=onedecrementstepevery12.1days SoCapDera 4%of100Ah=4Ahdecreaseinoneyear4Ahdecreasein0.1Ahsteps=40separatestepsover365365days/40decrementsteps=onedecrementstepevery9.1days SoCapDerateH=9Finally,3yearsis365daysx3=1095days SoDerateChange=1095Notethatduetoslightroundingerrors(12daysinsteadof12.1days,etc.)theactualcapacityrepresentedattheendofanytimeinternal(oneyear,twoyears,etc.)maybeoffbyasmallfraction.Intheexampleabove,theactualimplementationcalculatestobeaslistedbelow(assumingnochangestoFCCfromthelearnedcapacitymethodoccur):Initialcapacity=100Ahandfullchargecapacity(FCC)decremented0.1Ahevery12days:Endofyear1capacity(atday360)=100Ah–3.0Ah=97Ahand(3.0Ah/100Ah)=3%Endofyear2capacity(atday732)=97Ah–3.1Ah=93.9Ahand(3.1Ah/93.9Ah)=3.3%Endofyear3capacity(atday1095)=93.9Ah–3.0Ah=90.9Ahand(3.0Ah/90.9Ah)=Totalfromtime0toYear3:(100Ah–90.9Ah)/100Ah=9.1%/3years=圖1showshowtheFCCdecreaseswithtimeandhowtheparameterscontrolthis.Notethattheparametervaluesusedin圖1aredifferentfromthevaluesusedinthepreviousexample.

Value(100Derate

圖1.AgeBasedCapacityStateofHealth(SoH)Thestateofhealthindicationcanbeconfiguredeitheronthenumberofcharge/dischargecyclesthathaveoccurredorareducedfullchargecapacity.Dischargeandchargebyanamountequaltothedesigncapacityofthebatteryconstitutesonecycle.Areducedfullchargecapacity(FCC)couldbeobtainedbyeitherofthetwocapacitylearningThenumberofcyclesortheFCCatwhichtheWARNandRECEindicationsareprovided,areconfigurable.TheparametersusedforstateofhealthincludeTheRECEorWARNLEDisturnedonwhentheoneortheotherofthetwostateofhealthconditionsoccur.SeetheStatusLEDssectionfordetailsonstatusindicatorLEDoperation.Gasgauginganddeviceoperationarenotaffectedwhenastate-of-healthindicationhasbeendetected.DisThebq78412supportsuptoa10-segmentLEDdisyinbargraphformat.Duringadischarge,itshowsruntimetoemptyatthecurrentdischargerateandduringcharge,thisshows%SoC.Thebq78412alsosupportsbatterystatus DisydataaretransmittedseriallytoexternalshiftregisterswhichareusedtolatchandturnontheexternalLEDs.Theshiftregistersareupdatedwhenastatuschangeisdetected.Disyuseisnotrequired.Instead,anexternaldevicemayquerythebq78412forstatusviatheuniversalasynchronousreceiver/transmitter(UART)port.Thebq78412canalsobeconfiguredtoautomaticallybroadcastthestatusthroughtheUARTTXDpin.SeetheStatusBroadcastsection.BarGraphDisThebq78412supportsuptoa10-segmentLEDdisyinbargraphformat.ThesizeofthebargraphdisyisdefinedinDevConfig1[5:2]withadefaultvalueof10.Duringdischarge,thebargraphshowsruntimetoemptyatthecurrentdischargerate.EachbarrepresentsaruntimetoemptyuptoaumnumberasdefinedbytheDsplyConf1throughDsplyConf5parameters.Eachbyteindicateshowmuchruntime(inminutes)isallocatedtotherespectiveLED.Thetotaltimerepresentedbythedisyisthesumofthetimeineachparameter.Forexample,wheneachparameterissetto30minutes,thetotaldisytimeis300minutesorfivehours.Whenthecalculateddischargeruntimetoemptyisgreaterthantheumtimeforthedisy,allLEDsareturnedon.Inthedefaultmode,eachLEDrepresents?houror30minutesremainingruntime.WhenoneLEDison,thereisatleast?hourofremainingrunDuringcharge,theLEDsrepresentthe%SoCbasedoncapacityinamp-hoursandthenumberofLEDsdefinedinDevConfig1[5:2].WhenthedisysizeinDevConfig1[5:2]issetto10,eachLEDrepresents10%ofcapacity.WhenthedisysizeinDevConfig1[5:2]issetto5,eachLEDrepresents20%ofcapacity.表1.DsplyConfParameterTimeinTimeinTimeinTimeinTimeinTimeinTimeinTimeinTimeinTimein表2.BarGraphDisyOperationDuringDischarge–FiveLEDExample,DefaultDsplyConf(1)Exampleassumesbatterystateofhealthis表3.BargraphDisyOperationDuringCharge–5LEDPERCENT100andFull(1)ExampleassumesbatterystateofhealthisStatusStatusindicatorsdescribedin4maybepopulatedasdesired.Theoutputsignalscouldalsobeusedtodrivemulti-colorLEDswherethestatusisindicatedbythecolor.表4.StatusIndicatorSTATUSREBatterystateofTurnedonwhenbatteryend-of-lifeconditionisdetectedeitherwhencyclecountreachesthevalueofLifeCyclesparameterorwhenfullchargecapacity(FCC)dropsbelowthevalueinEolCapparameterTurnedonwhencyclecountreachesthevalueofLifeCycleWarnparameterorwhenfullchargecapacity(FCC)hasdroppedbelowtheEolCapWarnlevel.OnwhennostateofhealthconditionModeofOnwhenbatteryisOnwhenbatteryisOnwhenqualifiedfullchargeconditionis圖2showstheapplicationschematicshowingthe10-barLEDbargraphdisyandstatusLED

RTTERTTE

1289147

Q0Q1Q2Q3Q4Q5Q6Q7

1289

Q0SoHQ2SoHQ3147

Q4Q5Q6Q7

UDG圖2.10-BarLEDBarGraphDisyandStatusLEDBuzzerAbuzzercanbesettobeeponvariousconditions.BitsintheDevConfig2registercontrolthenumberofbeepssoundedoneachcondition.Eachbeepissoundedfor1secondandgaps(thatis,silenceperiod)betweenbeeps(ifsetformultiplebeeps)arealsoof1secondduration.Settingthenumberofbeepsto0foraconditionisequivalenttodisablingthebuzzeroperationforthatcondition.Onehourafteranovervoltageorundervoltageconditionisdetected(andthebuzzersounds)thedevicechecksforthisconditionagain.Thebuzzeragainsounds(thesamenumberofbeeps)iftheconditionpersists.Fromthenon,thisconditionisnotcheckedforuntilthebatteryvoltagereturnstothenormal表5.DevConfig2ParameterRTTE=0minutes,during0toLED0turnsRTTE=timeinLED0,duringLED1turnsRTTE=timeinLED0+timeinLED1,duringLED2turnsRTTE=timeinLED0+timeinLED1+timeinLED2,duringBatteryvoltage>0toBatteryvoltage<OperationalThebq78412supportsthreeoperationalActiveWhenthebq78412detectsthatthebatteryisbeingchargedordischarged(Currentmagnitude≥TransToActive),itenterstheactivestate.Uponentrytotheactivestate,thedisyisactivatedandrun-time-to-emptyor%SoCisIdleWhenthebq78412detectsthattheobservedcurrentmagnitudeislessthanorequaltoIdleThresh,itenterstheIdlestate.InIdlestate,thedisyisactiveandremainsatthelastdisyedvaluewhenintheactivestate.SleepIfthebq78412isintheidlestateformorethanthenumberofsecondsspecifiedinSleepTime,itentersthesleepstate.Insleepstate,thedisyisturnedoff.Ineachofthestates,thebq78412periodicallymeasurescurrent,voltage,temperature,recordselapsedtime,andupdatesthewarrantyrecord.Also,theUARTinterfaceremainsactiveinallstates(includingbroadcasts,ifenabled).Coulombcountingisdisabledintheidleandsleepstates. y|Current|<|Current|> Time>

|Current|> y3.OperationalCOMMUNICATIONANDThebq78412providesaUARTcommunicationsinterfaceforparameterinitializationduringsystemconfigurationandtest.Thisinterfacealsoprovidesreal-timemeasurementcapabilityandaccesstostoredbatteryperformancedata.ThisinterfacecanbeusedwithRS-232,IrDA,RS-485,oranyothertransceiverthatiscompatiblewithNRZ-orIrDA-formatteddatastreams.Theserialinterfacealwaysoperatesinmulti-dropmode.Thedefaultaddressis0xFF.Theaddresscanbechangedinparameterflashparameter,MultiDropAdr.Thisdesignallowsmultiplebatteriestobesupportedinasystemandaccessedfromasinglepoint.Communicationstothebq78412isviamessages.Thefirstbytetransmittedtothebq78412istheaddressbyte.Subsequentbytesarethemessage.Byteswithinamessagemustbeseparatedbylessthan10bittimes.Messagesmustbeseparatedbymorethan10bittimes.Thebq78412isconfigurableforeitherNRZ- patiblebitDevConfig1[13:12]=[0,0]:Multi-dropmodewithNRZencoding.RS-232,RS-485,orwirelesstransceiverscanbeused.(default)DevConfig1[13:12]=[0,1]:Multi-dropmodewithIrDAencoding.IrDAtransceiverscanbeWhenreal-timedataarebeingaccessedand/orwhenthecommunicationsmodeisactiveforconfiguration,powerconsumptionmayincrease.Thecommunicationsinterfacehasthefollowingfixeddatarate9600or1200baudrate(setby8No1stopNoflow圖4showsUARTEncodingwaveforms.圖5showsthemulti-dropoperationdata

圖4.UART>10 Blockof Blockof TXD,TXD,SP=StopbitST=StartblockistheItfollowsanidleperiodof10bitsormore

TXD,RXDTXD,RXDSP8-bit8-bit8-bit

圖5.Multi-DropCommandSetandStatusThissectiondescribesthebq78412communications,commandset,andstatusCommandCommunicationsbetweenthebq78412andexternalhostdeviceconsistsofmessageThehosttobq78412commandsarealwaysseven(7)byteslongwiththegeneralformatshownGeneralCommandFormatHosttoTheaddressisahexadecimalnumberthatdistinguishesbetweentargetbq78412devices.Thedefaultaddressis0xFF.TheheaderIDisahexadecimalnumberthatdistinguishesbetweenindividualChecksumisXORofallbytes(excludingchecksum)includingheaderID=0xFFXORAddressXORIDXORParam0…..XORParam3Thebq78412sendsaresponsewithitsaddress,ACKrequesteddataifany,andchecksumuponsuccessfulreceptionofacommandthatisaddressedtoit.Thebq78412sendsaresponsewithitsaddress,NACK,andchecksumifacommandpacketaddressedtoithasbeencorrectlyreceivedbutthecommandisnotimplementedornotallowedtobeusedduetothesecurityThebq78412doesnotrespondtopacketsthathaveadifferentaddressorwhenthechecksumisThetransmissionofanyrequesteddatafollowsthetransmittedACKAddressesareinLittleEndianformat(leastsignificantbitReadorwritedataareinLittleEndianGeneralResponseCodefrombq78412toResponseByten-Byten-ACKResponsefrombq78412tohost,noresponseACK=ACKResponseCodefrombq78412tohostwithACK=Byten-Byten-NACKResponsefrombq78412toNACK=BroadcastMessagefromACK=ChecksumisXORofallbytes(excludingchecksum)includingaddressbyteandACK=0xFFXORAddressXORACK/NACKXORbyte0XORbyte1…..XORbyten-2XORbyten-1WhendataarenotrequestedonlytheAddress,ACK,andchecksumaretransmitted.Thebq78412usesthe"!"characterastheACKresponsecode.Itsvalueis0x21.Thebq78412uses0x15asNACKresponsecode.SingleWordHostrequesttoAddressAddressDataDataNote:ThememoryaddressisabyteaddressandmustbeanevenResponsefromtohosttoCommandNote:Dataaccessisafunctionofsealedlevel.IfaccesstoamemorylocationisprohibitedduetoseallevelthenthereisaNACKresponsefromthebq78412.Single/MultipleWordHostrequesttoAddressAddressDataLSBDataMSB…DataLSBn-DataMSBn-Note:TheDataLSBDataMSB…DataLSBn-DataMSBn-CommandNote:Dataaccessisafunctionofsealedlevel.IfaccesstoamemorylocationisprohibitedduetoseallevelthenthereisaNACKresponsefromthebq78412.ReadDeviceTypeandHostrequesttoResponsefrombq78412toNote:Firmwareversion,revision,andbuildarereportedSetHostrequesttoByte3Byte0Responsefrombq78412toCommandSetSealedLevel1fromHostrequesttoByte3Byte0Responsefrombq78412toCommandResetHostrequesttoResponsefrombq78412toNote:Thisresponseissentwhenthebq78412isreset.Whenthedevicereceivesavalidresetcommandthedeviceisreset,thensendstheresetACKmessage.CommandResetCumulativeHostrequesttoResponsefrombq78412toCommandSetSealedLevel1fromHostrequesttoResponsefrombq78412toCommandSetHostrequesttoResponsefrombq78412toCommandInitializeState-of-ChargeThiscommandinitializestheSoCreportedbythebq78412totheSoC%parameter,stheFCCtothevalueintheDesignCapacityparameter,clearsCycleCount,setsthelastdischargetoDesignCapacity/20,andinitializesallgasgaugingvariablestocorrespondtothewrittenSoClevel.HostrequesttoResponsefrombq78412toCommandStatusThebq78412canbeconfiguredtoautomaticallybroadcastastatusmessageblockwhenDevConfig1[0]=1.ThisoptionallowstheoutputoftheUARTtobeconnectedtoawirelesstransmittersobatterystatuscanberemoyreceivedanddisyed.Automatictransmissionofthebroadcaststatusmessageblockissuspendedfor60secondswhenacommandisreceived,aftertransmissionofthecurrentframeiscompleted.Automaticstatustransmissionrestartsaminimumof60secondsaftercompletionoftheresponsetothereceivedcommand.Theaddressisincludedinthestatusblocksinceitmaybedesiredtohaveonereceiverunitmonitorseveralbatteries.表6liststhebroadcaststatusmessageblockwordsintheorderthattheyaretransmitted.表6.bq78412BroadcastStatusMessageDevice01Addressof11Indicates22Batterystatus.SeedescriptioninBatteryStatusWord-42Battery62Battery82Batterycurrent.Positivevalue=chargecurrent,negativevalue=dischargecurrent.1002Remainingbatterycapacityderatedasfunctionofdischarge1002Learnedbatterycapacityatfullcharge,rated1002Runtimetoemptyderatedasafunctionofdischargecurrent.Onlyvalidduringdischarge.2Numberoffulldischargecyclesor2BatterycurrentaveragedbasedonCurrentAvgTime1002DeratedAvailable1002Accumulatedmissedchargeduetomultipledischargesoccurringbeforeafullchargehasoccurred.%2Batteryrelativestateof%1=0xFFXORbyte0XORbyte1…..XORbyte24XORByteoffsetsarecountedfromthestartofthebroadcastmessageDatawordsaretransmittedinLittleEndianformat(leastsignificantbyteWhilethebroadcastmessageisbeinggeneratedandtransmitted,receptionofcommandsissuspended,therefore,theresponsetothecommandsentmayarriveafterabroadcastmessage.Anyexternaldeviceshouldverifythattheresponseitreceivestoacommanddoesnotappeartobeabroadcast.Thebq78412maintainsa16-bitmasterbatterystatusword.Thiswordcanbeaccessedatanytimeandisalsotransmittedinthebroadcaststatusmessageblock.表7.bq78412BatteryStatusSTATUS01=11=21=31=battery41=batteryRe51=rece61=overcurrentoncharge,chargecurrent>71=overcurrentondischarge,dischargecurrent>81=overcharge,batteryvoltageabove91=overtemperature,batterytemperatureabove1=overdischarge,batteryvoltagebelow1=undertemperature,batterytemperaturebelow1=underchargedbatteryasdefinedbyconfigurationofMissChgLimparameter.Indicatesthatthebatterymustbecharged.1=end-of-dischargeconditiondetected.Clearedwhencharge[0,0]=Sealedlevel[0,1]=SealedLevel[1,0]=SealedLevelSeedescriptionin表4StatusIndicatorbq78412RegistersandThebq78412maintainsthestatusofnumerousbatteryperformancevariablesinitson-chipregisters.Thedeviceregistersarealsousedtoretrievethebatteryoperationallimits.Nopasswordisrequiredtoaccesstheseregisters.Theregistersareread-only.Batteryinformationisretrievedbyissuingmessagecommandsovertheserialinterfacetoaccessthespecificregisters.Registerscanbereadindividuallyorasasequentialblockofregisters.Allregistersare16-bitregistersormultiplesof16bits.8.bq78412Registers(StoredinVolatile2Batterystatus.Seedescription–SBatteryUBatterySBatterycurrent.Positivevalue=chargecurrent,Negativevalue=dischargecurrent.100URemainingbatterycapacityderatedasfunctionofdischarge100ULearnedbatterycapacityatfullcharge,rated100URuntimetoemptyderatedasafunctionofdischargecurrent.Onlyvalidduringdischarge.UNumberoffulldischargecyclesorSBatterycurrentaveragedbasedon100UDeratedavailable100UAccumulatedmissedchargeduetomultipledischargesoccurringbeforeafullchargehasoccurred%UBatteryrelativestateof%DatawordsarereturnedinLittleEndianformat(leastsignificantbitCumulativeUsageThebq78412providesinternalstorageforcumulativeusagedataduringnormaloperation.Thestoreddatacanberetrievedoverthecommunicationsinterfaceforysisbyanexternalreaderandusedforwarrantyysispurposes.Thesedataarestoredinvolatilememory.However,thestoreddataarebackeduponceadaytothenon-volatilememoryandarewrittenbacktothevolatilememoryonasubsequentpower-up.Thisretrievalonlyhappensifthedevicehasbeenactivated.Activationalsoprovidesastartpointforusagelogging.ActivationisdonebysettingDevConfig1[10]=Noneofthecountersroll-over,andaresaturatedto umvalueincaseof9givesthememorylocationsofthestoreddata.Thefollowingistheinformationthatisstored.AbuseThesecounttheamountoftimethatthebatteryhasspent mendedoperatingOnceevery6minutes,thebatteryischeckedforabuse.Theappropriatecounterincrementsifabuseisdetected.Eachcounterisof2bytesandcanstorevaluesfrom0to65535.Thispermitsa umtimeof273daystobeTheabusecountersOtCount:TimetemperaturewasaboveUtCount:TimetemperaturewasbelowOvCount:TimebatteryvoltagewasaboveUvCount:TimebatteryvoltagewasbelowOccCount:TimechargingcurrentwasaboveOcdCount:Timedischargingcurrentwasabove圖6showsoperatingrangesandthresholdsforvoltage,temperatureandDepthofDischarge(DoD)These

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論