independentlyflashtool强刷教程

flashtool强刷教程  时间:2021-01-28  阅读:()
AN1245:EFP01ConfigurationToolGuideTheEFP01familyenergyfriendlyPMICdevicesareextremelyflexible,highlyefficient,multi-outputpowermanagementIC,pro-vidingcompletesystempowerandprimarycellbatteryCoulombcountingforEFM32andEFR32devicesTheEFP01ConfigurationTool(EFPConfigurator)determinesthebestcomponentval-uesandconnectionsgivendesignconstraints,caculatesexpectedperformance,andauto-generatesconfigurationcodeforEFP01ConfigurationTooldevices.
ThisdocumentdiscusseshowtousetheEFP01ConfigurationToolaspartofanEFx32project.
KEYPOINTSEFP01expandstheinputsupplyrangeofEFR32-basedsystems.
EFP01reducespowerconsumptionofsystemsthatuseEFR32deviceswithoutanintegratedDCDCconverter.
EFP0111enablesEFR32'sradiotooperateathigheroutputpowerusingcoincellbatteries.
UsetheEFP01ConfigurationTooltoconfigureEFP01devices.
UsetheEFP01ConfigurationTooltoevaluateperformanceandoptimizeEFP01deviceoperation.
silabs.
com|Buildingamoreconnectedworld.
Rev.
1.
11.
GettingStartedRequiredSoftwareSimplicityStudioisthedevelopmentenvironmentforEFP01projects.
DownloadthelatestversionofStudioat:https://www.
silabs.
com/products/development-tools/software/simplicity-studioInstallationandSetup1.
DownloadandinstallthelatestSimplicityStudioversion.
2.
InSimplicityStudio,navigateto[Help->UpdateSoftware].
3.
Select[InstallbyDevice]andinthe[ProductSearch]enterthenameofthedesiredEFP01deviceandEFx32Geckodevice.
Click[Next]andinstallallrequiredcomponents.
FormoredetailonSimplicityStudioupdates,configuration,andtoolsupport,seeAN0822:SimplicityStudioUser'sGuide.
4.
CreateanEFP01Configuratorproject.
Todothisnavigateto[File]>[New]>[Project]andselect[EFPConfiguratorProject].
Se-lectyourEFP01devicefromthepartslist,andclickthroughtogeneratetheproject.
AN1245:EFP01ConfigurationToolGuideGettingStartedsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|22.
EFP01ConfigurationToolOverviewTheEFP01ConfigurationToolallowsasystemdesignertoconfigureandoptimizetheEFP01registersettingsforaspecificapplication.
Therearetwosupporteduse-casesfortheEFP01ConfigurationTool:1.
Forallorderablepartnumbers(OPNs),theEFP01ConfigurationToolcangenerateaheaderfilecontainingEFP01registerset-tingsthatcanbeincludedinanEFR32orEFM32Studioproject.
See4.
EFP01GeneratedHeaderFileformoredetailsontheheaderfilecontentandstructure.
2.
ForcertainOPNswithacorrespondingEvaluationKit(EFP0108andEFP0111),theEFP01ConfigurationToolcandirectlyinter-facetotheEvaluationKiton-boardEFP01andhostEFR32devices.
TheEFP01ConfigurationToolcanwriteregistersettingstoeithertheEFP01devicealoneortoboththeEFP01deviceandthehostEFR32deviceflash.
SeeWritetoDevice(forEFP0108andEFP0111)onpage4andStoretoFlash(forEFP0108andEFP0111)onpage5formoredetails.
Note:theEFP01ConfigurationToolitselfdoesnotmodifyanyofthesettingsinthe[Inputs]or[Configuration]sectionsdirectly.
In-stead,aftereveryrunofthetool(initiatedonanyvaluechangeorbyclickingthe[Calculate]button),apop-upwindowwillappearwithrecommendedchangestothesettingsbasedoffthecurrentinputs.
Theuserisexpectedtoimplementanychangeinthe[Configura-tion]themselves.
Note:theEFP01ConfigurationToolisintendedtosimplifyconfigurationoftheEFP01'sDCDCconvertersandLDOsinEM0andEM2mode.
ItisnotacomprehensiveEFP01configurationutility-assuch,certainEFP01featuresarenotconfigurablethroughthistoolandshouldbeimplementedincustomerCcode.
SpecificEFP01featuresthatarenotincludedintheEFP01ConfigurationToolinclude:CoulombcounterInterruptmasking/unmaskingADCreadingsEM4coarseregulatorconfigurationEnergymodetransitionmethod(I2CvsDirectMode)VOA_SWstateSeeAN1187:EFP01DesignConsiderationsandtheEFP01EnergyFriendlyPMICFamilyDataSheetformoretechnicaldetailsofdif-ferentparameters,modesofoperations,andformulasrelevanttoEFP01devices.
AN1245:EFP01ConfigurationToolGuideEFP01ConfigurationToolOverviewsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|32.
1PowerSpecificationThepowerspecificationsectiondefinestheexpectedbatteryvoltagerange,configuredbythe[Vbatmin]and[Vbatmax]fields.
Theseshouldbesetbasedonthetypeofbatteryusedintheapplication.
The[VOA],[VOB],and[VOC]tabstogglebetweentheconfigurationoptionsforeachoftheEFP01outputs.
Forthemostpart,theseoutputsareconfiguredindependently,butsharesourcegeneration.
OneexceptionisfortheEFP0104OPN,inwhichtheVOADCDCAoutputisshortedtogethertotheVOCLDOCoutputonthePCBfora"BuckwithLDOinparallel"configuration.
FortheEFP0104VOA/VOCoutput,the[VOA]tabconfigurestheDCDCAandthe[VOC]tabconfigurestheLDOC.
CalculatePerformsarecalculation.
Notethatavaluechangetoanyoftheinputswilltypicallyresultinanautomaticrecalculation,souseofthisbuttonistypicallyunnecessary.
Arecalculationwillredisplaythepop-upwindowcontaininganyerrors,warnings,orinformation,aswellasrecommendedconfigurationchanges.
GenerateHeaderGeneratesasl_efpdrv_calc.
hheaderfileintheprojectdirectorycontainingthecurrentEFP01configurationregistersettings.
Note:ThefollowingtwobuttonoptionsappearonlyfortheEFP0108andEFP0111OPNs,andareonlysupportedifthecorrespondingEvaluationKit(i.
e.
,EFP0108EvaluationKitBRD8100AorEFP0111EvaluationKitBRD8100B)areattachedviaUSB.
ThoseEvalua-tionKitsincorporateanon-boardEFR32TG11deviceactingasanI2Chostinterfacingtotheon-boardEFP01device.
TheEFR32TG11devicehastwomechanismsforwritingregisterconfigurationtotheEFP01device:1.
ViaUSBdownloadwhileattachedtotheEFP01ConfigurationTool2.
FromtheEFR32TG11flashatstartuporonEFR32TG11resetWritetoDevice(forEFP0108andEFP0111)ThisbuttonwilldownloadthecurrentconfigurationtotheEFP01ontheEvaluationBoard.
Theconfigurationwill*not*bestoredontheEvaluationBoardanywhereexceptintheEFP01device'sinternalregisters.
IntheeventofaEFP01devicepowercycleoraEFR32TG11reset,thisdownloadedconfigurationwillbelost.
AN1245:EFP01ConfigurationToolGuideEFP01ConfigurationToolOverviewsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|4StoretoFlash(forEFP0108andEFP0111)ThisbuttonwillcausethecurrentconfigurationtobewrittentotheEFP01deviceregistersaswellastheEFR32TG11deviceflashmemoryontheEvaluationBoard.
TheconfigurationstoredintheEFR32TG11flashwillbere-loadedintotheonboardEFP01deviceregisterswhenevertheEvaluationBoardEFR32TG11isreset(e.
g.
,whentheEFR32TG11poweriscycledbydisconnecting/recon-nectingtheUSBcable).
NotethatsimplypowercyclingtheEFP01deviceinputsupplywill*not*causeareloadoftheregisterconfigu-rationfromtheEFR32TG11flash.
2.
2InputsFieldsinthe[Inputs]sectionshouldbedeterminedbasedontheintendedapplicationandusecasefortheEFP01device.
Note:theEFP01ConfigurationToolitselfdoesnotmodifyanyofthesettingsinthe[Inputs]or[Configuration]sectionsdirectly.
In-stead,aftereveryrunofthetool(initiatedonanyvaluechangeorbyclickingthe[Calculate]button),apop-upwindowwillappearwithrecommendedchangestothesettingsbasedoffthecurrentinputs.
Theuserisexpectedtoimplementanychangeinthe[Configura-tion]themselves.
DCDCModeIndicateswhatmodetheselectedoutputistobeconfiguredfor.
DifferentmodesofEFP01operationrequiredifferentexternalconnec-tions,seeSection4.
TypicalConnectionDiagramsoftheEFP01EnergyFriendlyPMICFamilyDataSheetformoredetailsoneachmodeanditsintendedusecase.
OutputLoadCurrentMaxEM0IndicatestheexpectedmaximumloadontheEFP01deviceoutputwhenthedeviceisinEM0-Active/RunMode.
ThisisthehighestexpectedcurrentconsumptionofeverythingpoweredbytheEFP01device.
OutputLoadCurrentMaxEM2IndicatestheexpectedmaximumloadontheEFP01deviceoutputwhenthedeviceisinEM2-DeepSleepMode.
Formoreinforma-tionontheEFP01energymodesseeSection3.
3EnergyModesofthedevicedatasheet.
AN1245:EFP01ConfigurationToolGuideEFP01ConfigurationToolOverviewsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|5OutputVoltageEM0/EM2ThedesiredoutputvoltagelevelfortheselectedoutputinthespecifiedenergymodeBatteryCurrentLimitBatteryCurrentLimitshouldbedefinedforweakorhighinternalimpedancepowersources.
MoredetailisfoundinSection3.
2.
1.
4CurrentLimitingofthedevicedatasheet.
EnteringabatterycurrentlimitinmAintothisfieldwillcauseasuggestedInrushCurrentMinPeriodsettingtoappearinthepost-calcu-lationpop-up.
TheusercanthenadjusttheInrushCurrentMinPeriodbasedoffthesuggestion.
Leavethisfieldblankifnocurrentlimitisdesired.
2.
3ConfigurationFieldsinthe[Configuration]sectionhavedefaultvaluessuitableformanyapplications.
Thesesettingsmayneedtobemodified.
Care-fullyreviewAN1187:EFPHardwareDesignConsiderationsandtheEFP01EnergyFriendlyPMICFamilyDataSheetbeforemodifyingthesevalues.
WhenanewEFP01ConfigurationToolprojectiscreated,thedefaultvaluesinthe[Configuration]sectionwillgenerallymatchtheEFP01deviceprogrammedOTPdefaultsettings.
Thereareafewexceptions,however.
Forexample,theVOBconverterisdisabledbydefaultoncertainOPNs.
However,mostoftheVOBconverter[Configuration]settingsintheEFP01ConfigurationToolwilldefaulttouseablevalues,sothatthetheuserhasonlytochangethe[DCDCMode]settingto"Enabled"togetausableconfiguration.
Note:theEFP01ConfigurationToolitselfdoesnotmodifyanyofthesettingsinthe[Inputs]or[Configuration]sectionsdirectly.
In-stead,aftereveryrunofthetool(initiatedonanyvaluechangeorbyclickingthe[Calculate]button),apop-upwindowwillappearwithrecommendedchangestothesettingsbasedoffthecurrentinputs.
Theuserisexpectedtoimplementanychangeinthe[Configura-tion]themselves.
AN1245:EFP01ConfigurationToolGuideEFP01ConfigurationToolOverviewsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|6ConfigurationFieldsThe[Inductor]and[OutputCapacitor]controlfieldsrefertoexternalcomponentvaluestotheEFP01device.
Undermostconditionstheseshouldbelefttothedefaultvalue.
Note:Insomeconditionsthedefault2.
2uHinductorvaluewillbeincorrect.
SeeTable5.
5VOAOutputandTable5.
6VOBOutputofthedevicedatasheetfordetailsontheexternalinductorvalue.
TheotherfieldsrepresentprogrammableEFP01registervalues,andaredetailedinSection3.
SystemOverviewofthedevicedata-sheet.
2.
4PlotsTheEFP01ConfigurationToolcanalsoplotestimateddeviceperformanceovertheinputsuplyvoltagerange.
Note:TheEFP01ConfigurationTooloutputplotsrepresentestimatesbasedonsimulatedEFP01behavior,andarenotaguaranteeofdeviceperformance.
Boththe[VOA]and[VOB]tabshave[Plots]section,whichdisplaysestimatedEFP01performancemetricsbasedoffthegiveninputparameters.
Each[Plots]sectionhas[EM0]and[EM2]tabscontrollingwhichenergymodeisdisplayed.
Notethatthe[VOC]outputdoesnothaveitsown[Plots]section-theVOCConverteroutputiseitheranindependentLDO(e.
g.
,EFP0108/EFP0109/EFP0111)withnoplotdata,oritisusedinconjunctionwiththeVOAoutput(e.
g.
,EFP0104),inwhichcasetheVOCLDOoutputdataisincludedintheVOA[Plots]section.
AlsonotethatforsomeEFP01devices(e.
g,EFP0108andEFP0111),theVOBconverterinputsupplyisexpectedtobeconnectedtotheVOAconverteroutput.
SincetheVOAconverteroutputisexpectedtobeaconstantvoltage,the[VOB]outputplotsforthesedevi-ceswillshowonlyasingledatapointatthatVOAoutputvoltage.
EstimatedEfficiencyDisplaystheestimatedefficiency(includingquiescentcurrent)fortheselectedoutputacrossthebatteryvoltagerange.
Highefficiencywilldirectlyimprovebatterylife.
AN1245:EFP01ConfigurationToolGuideEFP01ConfigurationToolOverviewsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|7DCDCOperatingModeDisplaystheconverteroperatingmodeasitvarieswiththeinputsupplyvoltage.
ForEFP01convertersthatsupportoperationineitherDCDCandLDOmodes(e.
g.
,theVOBconverterforalldevicesandtheVOAconverterforEFP0104),thisplotwilldisplaytheinputvoltagecrossoverpointfrom"Buck"to"LDO"operation(theoperatingmodecrossovervoltageiscontrolledbythe[ModeChangeThreshold]inputparameter).
NotethatsomeEFP01deviceswillonlyeveroperateinasinglemode-forexample,theVOAconverterontheEFP0108,EFP0109,andEFP0111deviceswillalwaysoperatein"Boost".
Est.
OutputRipple@SpecifiedLoadEstimatestheworstcaseoutputripplevoltageversusinputsupplyvoltagefortheselectedoutput.
Theripplevoltageestimateassumestheloadcurrentisequaltothevalueenteredinthe[OutputLoadCurrentMax(mA)]input.
PFMSwitchingEventTimesEstimatesthedurationoftheon-timeandoff-timeswitchingeventsofthePFMconverterversustheinputsupplyvoltage.
PeakCurrentWhentheEFP01converterisoperatinginaDCDCmode(e.
g,"Buck"or"Boost"),thisplotdisplaystheestimatedinductorpeakcurrentversusthesupplyinputvoltage.
Theinductorpeakcurrentisconfiguredbythe[PeakCurrent]inputparameters.
Thisvalueiscontrol-ledduringDCDCoperationviafieldsinthe[Configuration]section.
Notethatoncertainoutputs,adaptivepeakcurrentcontrolispossi-bleforadvancedusecases.
SeeSection3.
2.
1.
3PeakCurrentAdjustmentinthedevicedatasheet.
ForEFP01convertersthatsupportoperationineitherDCDCandLDOmodes(e.
g.
,theVOBconverterforalldevicesandtheVOAconverterforEFP0104),whenoperatinginLDOmodesthisplotdisplaystheestimatedLDOcurrentversusthesupplyinputvoltage.
Thesystemdesignershouldensurethattheselectedinductorsaturationcurrentexceedsthedisplayedpeakcurrent(allowingforsomemargin).
Est.
DCCurrentsWhentheconverterisoperatinginDCDCorLDOmode,thisplotdisplaystheestimatedthemaximumallowableloadcurrentversusinputsupplyvoltageforthegivensettings,aswellastheestimatedinputsupplycurrentforthatgivenmaximumload.
ConvertersoperatinginLDOmodewillgointoBypassmode(i.
e.
,theinputisdirectlyshortedtotheoutput)astheinputsupplyvoltageapproachestheoutputvoltageandtheLDOcannolongerregulate.
WhentheconverterisinBypassmode,thisplotwillsimplydisplaythevalueenteredinthe[OutputLoadCurrentMax(mA)].
AN1245:EFP01ConfigurationToolGuideEFP01ConfigurationToolOverviewsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|83.
EFP01ConfigurationToolWorkflowThissectiondescribestheworkflowusingtheEFP01ConfigurationTool.
1.
ConsulttheEFP01EnergyFriendlyPMICFamilyDataSheettounderstandwhichconnectionsandhardwareconfigurationareneededfortheapplication.
2.
EntertheexpectedvoltagerangeofthepowersourcetotheEFP01deviceinthe[Vbatmin]and[Vbatmax]fields.
3.
EntertheplannedDCDCmodeandotherinputsbasedonthedatasheetdescriptionsandexpectedapplicationparameters.
See2.
EFP01ConfigurationToolOverviewformoredetailoneachavailableoption.
4.
Theconfigurationtoolwillautomaticallycalculateeachnewinputparameter.
Ifanymetricsfalloutofspecification,thetoolwillthrowanerrorandrecommendchangestoeitherthe[Inputs]orthe[Configuration]fields.
Makechangestotherecommendedfieldsuntilnoerrorsshow.
5.
Observethe[Plots]performancegraphsforboth[EM0]and[EM2].
Confirmthatmetricssuchasmaximumoutputloadcurrent,peakcurrent,efficiency,andoutputripplevoltagearecompatiblewiththeapplication.
6.
Ifmultipleoutputsareused,repeatthisprocessforeachoutput([VOA],[VOB],and[VOC])asneeded.
Notethattheoutputsmayhavedifferentpropertiesandoptionswhicharedefinedinthedevicedatasheet.
7.
Oncetheconfigurationforeachoutputsatisfiestheapplicationrequirements,click[GenerateHeader]togenerateasl_efpdrv_calc.
hheaderfilewiththecurrentconfiguration(referto4.
EFP01GeneratedHeaderFileformoreinformationontheheaderfilecontents).
Thegeneratedsl_efpdrv_calc.
hheaderfilemustbeincludedintotheEFR32projectforusebytheEFP01driverduringinitialization.
DriverdocumentationcanbefoundforanyEFx32deviceathttps://docs.
silabs.
com/#section-mcu-wireless.
SelectthedesiredEFR32deviceandnavigateto[ExternalDeviceDrivers]>[EFPDriver].
FormoreinformationonusingtheEFP01driver,seethedocumentationondocs.
silabs.
comandinAN1187:EFP01DesignConsiderations.
AN1245:EFP01ConfigurationToolGuideEFP01ConfigurationToolWorkflowsilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|94.
EFP01GeneratedHeaderFileThesl_efpdrv_calc.
hgeneratedheaderfileconsistsoftwosections:asetofregisteraddress/datapairsandanoptionalarrayofdatausedforthecasewhentheEFP01VOBoutputpowerstheEFR32deviceDECOUPLEinput.
GeneratedHeaderFile:EFP01Address/DataPairsThefirsthalfofthegeneratedheaderfilecontainsthefollowing#defines:SL_EFP_GEN:anarraycontainingregisteraddressanddatapairs(e.
g.
,{{ADD1,DATA1},{ADD2,DATA2},etc})SL_EFP_GEN_SIZE:aconstantequaltothecountofalltheelementsintheSL_EFP_GENarrayThesl_efp_init()initializationfunctionwillinteratethroughtheSL_EFP_GENarraytowriteeachdatabytetothecorrespondingaddress.
AfewnotesontheSL_EFP_GENarray:Theaddress/datapairsintheSL_EFP_GENarrayarelistedinaspecificorder,suchthattheessentialconfigurationforeachcon-verter(targetvoltage,peakcurrents,etc)iswrittenbeforetheconverterisenabled.
TheheaderfilecommentsprecedingtheSL_EFP_GENarrayprovide:1.
Auser-readablelistingofeachbitfieldsettingforthecurrentconfiguration2.
AlistofchangesbetweenthecurrentconfigurationandtheoriginalOTPdefaultsforthatparticularEFP01device.
WhentheEFP01VOBoutputpowerstheEFR32device'sDECOUPLEinput,theEFP01_BK_CTRL1addresswillberemovedfromtheSL_EFP_GENarraytopreventenablingtheVOBconverter.
Forthiscase,theVOBconverterwillbeenabledduringtheDE-COUPLEHandoffsequence,describedbelow.
//**GeneratedEFP01GeneralConfigurationSettings**////VOA_V=0x04:VOA_V=4//BB_IPK=0x92:BB_IPK_EM2=4,BB_IPK=18//BB_CTRL5=0x80:BB_DRVR_SPEED=2,BB_IPK_BOOST_ADJ=0//BB_CTRL6=0x00:BB_IPK_NOADJ=0,SW_FAST=0,BB_IRI_CON=0,BB_TOFF_MAX=0//LDOC_BB_CTRL=0x50:SEQ_BB_FIRST=0,BB_TON_MAX=5,VOC_IRI_CON=0//BB_CTRL3=0xB5:NTM_LDO_THRSH=5,NTM_DUR=2,BB_MODE=5//VOB_EM0_V=0x8D:OOR_DIS=1,VOB_EM0_V=13//VOB_EM2_V=0x0D:VOB_EM2_V=13//BK_IPK=0x2A:BK_IPK_EM2=1,BK_IPK=10//BK_CTRL2=0x50:BK_RES_TON_ONLY=0,BK_LDO_THRESH=5,BK_IRI_CON=0//LDOB_CTRL=0x0C:LDO_NO_AUTO_BYP=0,LDOB_BYP=0,LDOB_VMIN=0,LDOB_IGAIN=12//VOC_V=0x05:VOC_V=5//LDOC_CTRL=0x0C:LDOC_ENA_SA=0,LDOC_BYP=0,LDOC_VMIN=0,LDOC_IGAIN=12//**ConfigurationChangesfromOriginal(i.
e.
,OTPDefault)Configuration**////BB_CTRL6.
BB_TOFF_MAXvaluechangedfrom3to0//VOB_EM0_V.
VOB_EM0_Vvaluechangedfrom0to13//VOB_EM2_V.
VOB_EM2_Vvaluechangedfrom0to13//BK_IPK.
BK_IPKvaluechangedfrom0to10//BK_IPK.
BK_IPK_EM2valuechangedfrom0to1//LDOB_CTRL.
LDOB_IGAINvaluechangedfrom0to12//VOC_V.
VOC_Vvaluechangedfrom0to5#defineSL_EFP_GEN_SIZE13#defineSL_EFP_GEN{\{EFP01_VOA_V,0x04},\{EFP01_BB_IPK,0x92},\{EFP01_BB_CTRL5,0x80},\{EFP01_BB_CTRL6,0x00},\{EFP01_LDOC_BB_CTRL,0x50},\{EFP01_BB_CTRL3,0xB5},\{EFP01_VOB_EM0_V,0x8D},\{EFP01_VOB_EM2_V,0x0D},\{EFP01_BK_IPK,0x2A},\{EFP01_BK_CTRL2,0x50},\{EFP01_LDOB_CTRL,0x0C},\{EFP01_VOC_V,0x05},\{EFP01_LDOC_CTRL,0x0C},\}AN1245:EFP01ConfigurationToolGuideEFP01GeneratedHeaderFilesilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|10GeneratedHeaderFile:DECOUPLEHandoffNote:Thesl_efp_decouple_handoff()routineandtheheaderfileparsingdiscussedbelowmaynotbeimplementedintheEFP01driv-ersuntillaterin2020.
Ifthatroutineisnotpresentinthedrivers,itcanbemanuallyimplementedbycopyingthecodein5.
EFP01DecoupleHandoffRoutineintotheproject.
Thissl_efp_decouple_handoff()routineshouldbecalledimmediatelyfollowingEFP01initial-ization(i.
e.
,el_efp_init())wheneverEFP01ispoweringtheEFR32DECOUPLEpin.
Thesecondhalfofthegeneratedheaderfilecontainsthefollowing#defines:SL_DECOUPLE_HANDOFF_ARGS:anarraycontainingthefollowingbitfieldsettings{BK_IRI_CON,BK_TON_MAX,BK_IPK}SL_EFP_DECOUPLE_HANDOFF_ARGS_SIZE:aconstantequaltothecountofalltheelementsintheSL_DECOUPLE_HAND-OFF_ARGSarrayIfSL_EFP_DECOUPLE_HANDOFF_ARGS_SIZEis>0,thesl_efp_init()initializationfunctionwillcallthesl_efp_decouple_handoff()function.
//**EFR32DECOUPLEHandoffSequenceConfigurationSettings**////ForapplicationswhereEFP01'sDCDCBoutput(VOB)ispoweringtheEFR32'sDECOUPLEsupply,//EFR32mustmanagethehandofffromEFR32'sinternalLDOtotheEFP01DCDCoutput.
////TheEFP01configurationsettingsbelowarepassedtoaEFP01driverfunction(sl_efp_decouple_handoff())//tomanageaseamlesstransitionoftheDECOUPLEpowersupplyfromtheinternalEFR32LDOtotheEFP01//DCDCBoutput.
Duringthistransition,certainEFP01settings(inrushcurrent,on-timemaximum,peakcurrent)//aremomentarilysettoconservativevalues,andthenrestoredtotheuser-desiredconfigurationvalues.
////Ifthismanaged-handoffsequenceisnotused,thereisthepossibilityofcreatingamomentaryvoltage//overshootontheDECOUPLEthatexceedstheDECOUPLEpinmaximumvoltage.
Therefore,the//sl_efp_decouple_handoff()functionshouldbeusedwheneverpoweringDECOUPLEfromEFP01.
////IfSL_EFP_DECOUPLE_HANDOFF_ARGS_SIZE>0,theEFP01init()functionwillattempttocall//thesl_efp_decouple_handoff()function;otherwise,sl_efp_decouple_handoff()willnotbecalled.
#defineSL_EFP_DECOUPLE_HANDOFF_ARGS_SIZE3#defineSL_DECOUPLE_HANDOFF_ARGS{0,7,10}//BK_IRI_CON=0,BK_TON_MAX=7,BK_IPK=10AN1245:EFP01ConfigurationToolGuideEFP01GeneratedHeaderFilesilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|115.
EFP01DecoupleHandoffRoutineNote:Thesl_efp_decouple_handoff()routineandtheheaderfileparsingdiscussedinGeneratedHeaderFile:DECOUPLEHandoffonpage11maynotbeimplementedintheEFP01driversuntillaterin2020.
Ifthatroutineisnotpresentinthedrivers,itcanbeman-uallyimplementedbycopyingtheroutinebelowintotheproject.
Thissl_efp_decouple_handoff()routineshouldbecalledimmediatelyfollowingEFP01initialization(i.
e.
,el_efp_init())wheneverEFP01ispoweringtheEFR32DECOUPLEpin,asshownbelow://Examplesl_efp_decouple_handoff()manualimplementationstaticsl_efp_handle_tefp=&efp_handle_data;intmain(void){sl_efp_init_data_tinit=SL_EFP_INSTANCE_INIT_BRD4179B;sl_efp_init(efp,&init);//InitializeEFP01//Parametersfromtheheaderfileoutputcanbemanuallypassedtothe//sl_efp_decouple_handoff()routine//NoteforEFR32xG21devices,useofthesl_efp_decouple_handoff()functionrequiresupdating//theEFR32xG21SecureElement(SE)firmwaretoversion1.
1.
3orlatersl_efp_decouple_handoff(efp,0,7,10);//BK_IRI_CON=0,BK_TON_MAX=7,BK_IPK=10//Optional:ifusingDirectMode,itshouldbemanuallyenabledafterthehandoffroutine//sl_efp_enable_direct_mode(efp);}AN1245:EFP01ConfigurationToolGuideEFP01DecoupleHandoffRoutinesilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|12Manualsl_efp_decouple_handoff()code*@brief*PerformDECOUPLELDO->DCDCHandoffsequencevoidsl_efp_decouple_handoff(sl_efp_handle_thandle,uint8_tbk_iri_con,uint8_tbk_ton_max,uint8_tbk_ipk){sl_status_tstatus;uint8_ttmp;//SetVOBtargettohigherleveltoguaranteeitwilloverdrivetheEFR32DECOUPLELDOoutputsl_efp_set_vob_em01_voltage(handle,1130);//Setpeakcurrenttominimumsl_efp_write_register_field(handle,EFP01_BK_IPK,0,_EFP01_BK_IPK_BK_IPK_MASK,_EFP01_BK_IPK_BK_IPK_SHIFT);//SetTontimetominimumsl_efp_write_register_field(handle,EFP01_BK_CTRL1,1,_EFP01_BK_CTRL1_BK_TON_MAX_MASK,_EFP01_BK_CTRL1_BK_TON_MAX_SHIFT);//Setcurrentlimittomaximumsl_efp_write_register_field(handle,EFP01_BK_CTRL2,15,_EFP01_BK_CTRL2_BK_IRI_CON_MASK,_EFP01_BK_CTRL2_BK_IRI_CON_SHIFT);//EnableVOBDCDCinbuckonlymodesl_efp_set_vob_mode(handle,efp_vob_mode_buck);//MakesureVOBoutputisreadybeforeturningoffinternalLDOregulator.
do{status=sl_efp_read_register(handle,EFP01_STATUS_LIVE,&tmp);}while(((tmp&_EFP01_STATUS_LIVE_VOB_INREG_LIVE_MASK)==0)||(status!
=SL_STATUS_OK));//Setdesiredpeakcurrentsl_efp_write_register_field(handle,EFP01_BK_IPK,bk_ipk,_EFP01_BK_IPK_BK_IPK_MASK,_EFP01_BK_IPK_BK_IPK_SHIFT);//SetdesiredTONMAXsl_efp_write_register_field(handle,EFP01_BK_CTRL1,bk_ton_max,_EFP01_BK_CTRL1_BK_TON_MAX_MASK,_EFP01_BK_CTRL1_BK_TON_MAX_SHIFT);//Setdesiredcurrentlimitsl_efp_write_register_field(handle,EFP01_BK_CTRL2,bk_iri_con,_EFP01_BK_CTRL2_BK_IRI_CON_MASK,_EFP01_BK_CTRL2_BK_IRI_CON_SHIFT);//TurnoffinternalLDOregulator.
sl_efp_emu_ldo_enable(handle,false);//SetdesiredVOBvoltagesl_efp_set_vob_em01_voltage(handle,1100);}AN1245:EFP01ConfigurationToolGuideEFP01DecoupleHandoffRoutinesilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|136.
RevisionHistoryRevision1.
1May,2020AddedmanualDECOUPLEhandoffroutinecodeexampleandusagenotes5.
EFP01DecoupleHandoffRoutineUpdatedkeypointsonfrontpage.
Revision1.
0March,2020InitialrevisionAN1245:EFP01ConfigurationToolGuideRevisionHistorysilabs.
com|Buildingamoreconnectedworld.
Rev.
1.
1|14

易探云韩国云服务器仅50元/月,510元/年起

韩国云服务器哪个好?韩国云服务器好用吗?韩国是距离我国很近的一个国家,很多站长用户在考虑国外云服务器时,也会将韩国云服务器列入其中。绝大部分用户都是接触的免备案香港和美国居多,在加上服务器确实不错,所以形成了习惯性依赖。但也有不少用户开始寻找其它的海外免备案云服务器,比如韩国云服务器。下面云服务器网(yuntue.com)就推荐最好用的韩国cn2云服务器,韩国CN2云服务器租用推荐。为什么推荐租用...

Hostiger发布哥伦布日提供VPS主机首月七折优惠 月费2.79美元

Hostiger商家我们可能以前也是有见过的,以前他们的域名是Hostigger,后来进行微调后包装成现在的。而且推出Columbus Day哥伦布日优惠活动,提供全场的VPS主机首月7折月付2.79美元起的优惠。这里我们普及一下基础知识,Columbus Day ,即为每年10月12日,是一些美洲国家的节日,纪念克里斯托弗·哥伦布在北美登陆,为美国的联邦假日。Hostiger 商家是一个成立于2...

无忧云-河南洛阳BGP,CEPH集群分布式存储,数据安全可靠,活动期间月付大优惠!

 无忧云怎么样?无忧云服务器好不好?无忧云值不值得购买?无忧云是一家成立于2017年的老牌商家旗下的服务器销售品牌,现由深圳市云上无忧网络科技有限公司运营,是正规持证IDC/ISP/IRCS商家,主要销售国内、中国香港、国外服务器产品,线路有腾讯云国外线路、自营香港CN2线路等,都是中国大陆直连线路,非常适合免备案建站业务需求和各种负载较高的项目,同时国内服务器也有多个BGP以及高防节点...

flashtool强刷教程为你推荐
笔记本1g内存条价格笔记本1G内存条多少钱一根?2g内存价格电脑2G内存条多少钱?免费卡巴斯基杀毒软件十大终身免费杀毒软件?软银赛富李念老公是谁滚筒洗衣机和波轮洗衣机哪个好滚筒洗衣机和波轮洗衣机哪个好用?朱祁钰和朱祁镇哪个好历史上真实的明英宗是怎么样的?性格之类的。朱祁钰和朱祁镇的相关的最好可以详细点的绝地求生加速器哪个好绝地求生哪个加速器好用一点,求推荐一个红茶和绿茶哪个好红茶和绿茶,哪个好?雅思和托福哪个好考雅思和托福哪个好考一点清理手机垃圾软件哪个好清理手机垃圾的软件哪个好
动态域名解析 美国主机网 webhosting googleapps 老左博客 回程路由 线路工具 vip购优汇 工信部icp备案号 徐正曦 泉州电信 东莞数据中心 域名和空间 服务器是干什么的 河南移动网 网站在线扫描 空间登入 杭州电信 免费赚q币 privatetracker 更多