tag 标签: loop

相关博文
  • 热度 19
    2013-9-6 22:19
    3883 次阅读|
    0 个评论
    /*main_loop处理的是一些与平台无关的事情 基本上是一些uboot的人机交互 执行命令之类 看的不多 多多少少有些注释 只知道一些大概功能 不过一般应该用不到这些功能吧 写在这就是一个笔记 有问题还望多多指教*/ void main_loop (void) { #ifndef CFG_HUSH_PARSER     static char lastcommand = { 0, };//static 静态局部全局变量(就是第二次调用函数时这个变量还是原来的值)     //static声明的变量只能初始化一次如果不赋值 默认为0       //如果static声明一个全局变量 那么 这个变量只能应用在这个文件 不能被其他文件引用     int len;     int rc = 1;     int flag; #endif #if defined(CONFIG_BOOTDELAY) (CONFIG_BOOTDELAY = 0)     char *s;     int bootdelay; #endif #ifdef CONFIG_PREBOOT     char *p; #endif #ifdef CONFIG_BOOTCOUNT_LIMIT //这个是商业功能 如果没有license 只能用几次 。一般不用     unsigned long bootcount = 0;     unsigned long bootlimit = 0;     char *bcs;     char bcs_set ; #endif /* CONFIG_BOOTCOUNT_LIMIT */ #if defined(CONFIG_VFD) defined(VFD_TEST_LOGO)     ulong bmp = 0;        /* default bitmap */     extern int trab_vfd (ulong bitmap); #ifdef CONFIG_MODEM_SUPPORT //如果支持modem  modem是串口传输协议     if (do_mdm_init)         bmp = 1;    /* alternate bitmap */ #endif     trab_vfd (bmp); #endif    /* CONFIG_VFD VFD_TEST_LOGO */ #ifdef CONFIG_BOOTCOUNT_LIMIT     bootcount = bootcount_load();     bootcount++;     bootcount_store (bootcount);     sprintf (bcs_set, "%lu", bootcount);     setenv ("bootcount", bcs_set);     bcs = getenv ("bootlimit");     bootlimit = bcs ? simple_strtoul (bcs, NULL, 10) : 0; #endif /* CONFIG_BOOTCOUNT_LIMIT */ #ifdef CONFIG_MODEM_SUPPORT     debug ("DEBUG: main_loop:   do_mdm_init=%d\n", do_mdm_init);     if (do_mdm_init) {         char *str = strdup(getenv("mdm_cmd"));         setenv ("preboot", str);  /* set or delete definition */         if (str != NULL)             free (str);         mdm_init(); /* wait for modem connection */     } #endif  /* CONFIG_MODEM_SUPPORT */ #ifdef CONFIG_VERSION_VARIABLE     {         extern char version_string = 0;         }     } #endif /*CFG_HUSH_PARSER*/ }  
相关资源
  • 所需E币: 0
    时间: 2022-8-3 09:39
    大小: 870.96KB
    ModifiedPIDcontrolwithH∞loopshapingsynthesisforROdesalinationplants
  • 所需E币: 0
    时间: 2022-8-2 17:24
    大小: 134.43KB
    上传者: samewell
    74HC4046SLSPhase-LockedLoopHigh-PerformanceSilicon-GateCMOS.pdf
  • 所需E币: 0
    时间: 2022-8-1 10:44
    大小: 817.31KB
    Looptuningwithspecificationongainandphasemarginsviamodifiedsecond-orderslidingmodecontrolalgorithm
  • 所需E币: 0
    时间: 2022-6-2 10:20
    大小: 778.33KB
    IAEOptimizationofPIDControlLoopwithDelayinPoleAssignmentSpace
  • 所需E币: 0
    时间: 2022-5-31 09:56
    大小: 743.42KB
    FromFRITofaPDfeedbacklooptoprocessmodellingandcontrolsystemdesign
  • 所需E币: 0
    时间: 2022-5-30 11:31
    大小: 368.6KB
    FastResponseSystemsUsingFeedForwardLoopforFuzzyTunedPIDControllers
  • 所需E币: 1
    时间: 2022-5-27 09:36
    大小: 616.73KB
    ABB中压驱动部KonstantinosG.Papadopoulos博士作品:DigitalPIDtype-IIIcontrolloopdesignviathesymmetricaloptimumcriterion(KonstantinosG.Papadopoulos)
  • 所需E币: 0
    时间: 2022-5-27 09:31
    大小: 1.54MB
    Digitalpidcontroller-closingtheloopwithaPIC
  • 所需E币: 1
    时间: 2022-5-11 10:38
    大小: 265.27KB
    BAYESIANMETHODSFORCONTROLLOOPMONITORINGANDDIAGNOSIS(BiaoHuang)
  • 所需E币: 1
    时间: 2022-5-10 09:42
    大小: 1.64MB
    AutomaticTuningofPIDType-IIIControlLoopsviatheSymmetricalOptimumCriterion(KonstantinosG.Papadopoulos)
  • 所需E币: 3
    时间: 2019-12-27 20:45
    大小: 644.06KB
    上传者: 238112554_qq
    1HowtoMeasuretheLoopTransferFunctionofPowersupplyies.pdfLM22670,LM22671,LM22672,LM22673,LM22674,LM22675,LM22676,LM22677,LM22678,LM22679,LM25005,LM3578A,LM5000,LM5001,LM5002,LM5005ApplicationNote1889HowtoMeasuretheLoopTransferFunctionofPowerSuppliesLiteratureNumber:SNVA364HowtoMeasuretheLoopTransferFunctionofPowerSuppliesNationalSemiconductorHowtoMeasuretheLoopApplicationNote1889TransferFunctionofPowerFrederikDostal……
  • 所需E币: 3
    时间: 2019-12-27 20:45
    大小: 112.64KB
    上传者: 978461154_qq
    RS485总线设计用于处理-7V至12V输入信号范围,然而,实际电路中,地电势在节点之间可能变化很大,经常超过指定范围。这可能造成通信中断,从地平面来的大电流甚至可能造成收发器件的损坏。LTC1535隔离式RS485收发器提供了断开地循环的实现宽输入范围的单芯片解决方案。advertisementIsolatedRS485TransceiverBreaksGroundLoops……
  • 所需E币: 4
    时间: 2019-12-28 23:44
    大小: 1.39MB
    上传者: givh79_163.com
    Theonlywaytodeterminethecharacteristicsofanantennaistomeasureitsperformancesincetheoryalonecannotpredicttheactualresults.Thefieldsgeneratedbyantennasareextremelycomplexbecausetheyinteractwitheverythingintheenvironment.Giventhiscomplexity,antennameasurementandanalysiswillbemoresuccessfulifyouuseanexperiencedandaccreditedantennalaboratoryequippedtohandlethetests,standards,andtheirnuances.……
  • 所需E币: 4
    时间: 2019-12-28 23:46
    大小: 67.5KB
    上传者: givh79_163.com
    Remotekeylessentry(RKE)hascaptivatedautomobilebuyers,asevidencedbythepopularityofRKEonnewautomobilesandasanafter-marketitem.ThisapplicationnoteprovidesanoverviewofRKEsystemsanddiscusseshowtheymeetrequirementssuchasrange,batterylife,reliability,cost,andregulatorycompliance.Itshowssomecircuitsanddesignapproachesandofferssomepredictionsforfuturesystems,whichwillincludetwo-waycommunications.……
  • 所需E币: 3
    时间: 2019-12-25 10:28
    大小: 280.17KB
    上传者: 微风DS
    Project-SampleAxelBernyEE240TermProjectSPRING2001Outline:1.DesignApproach2.AmplifierSchematic3.BiasingNetworkSchematic4.PerformanceSummary5.DesignProcessandEquations6.SimulationPlots:a.DifferentialACLoopFrequencyResponseb.Common-ModeACLoopFrequencyResponsec.OpenLoopGainvs.DifferentialOutputVoltaged.PositiveSettlinge.NegativeSettlingf.TotalIntegratedOutputVoltageNoise7.CommentsandConclusion8.Appendixa.CircuitNetlistb.Non-dominantPoleOptimizationc.DoubletAnalysis1.DesignApproachChoiceoftopologySelectinganoptimaltopologyforthegivenspecificationsisoneofthemostcruci……
  • 所需E币: 4
    时间: 2019-12-24 22:22
    大小: 27.04KB
    上传者: 978461154_qq
    Abstract:Thisarticleshowsanexampleofimplementinga4-20mAor0-20mAcurrent-loopoutputusingavoltageoutputdigital-to-analogconverter(DAC)andaVtoIconverter.Maxim>AppNotes>A/DandD/ACONVERSION/SAMPLINGCIRCUITSAMPLIFIERANDCOMPARATORCIRCUITSSWITCHESANDMULTIPLEXERSKeywords:4-20mA,0-20mA,currentloop,currentlooptransmission,DAC,V/I,VtoI,converter,digitaltoMay31,2002analogconverterAPPLICATIONNOTE1085Selectable-RangeCurrentLoopAbstract:Thisarticleshowsanexampleofimplementinga4-20mAor0-20mAcurrent-loopoutputusingavoltageoutputdigital-to-analogconverter(DAC)andaVtoIconverter.Current-loopsignals,asopposedtovoltagesignals,arecommonlyusedinindustrialsystemsbecausetheyaremuchlesssubjecttonoiseandrelativelyindifferenttolinelength(becausethecurrentisunaffectedbylineresistance).ThecircuitofFigure1allowsdigitalselectionbetweenthetwostanda……
  • 所需E币: 4
    时间: 2019-12-24 22:21
    大小: 116.96KB
    上传者: 16245458_qq.com
    Abstract:Thisapplicationnoteexplains4–20mAcurrentloopsandintelligenttransmittersandexplainstheirneedforhigh-resolutionlow-powerDACs.Maxim>AppNotes>A/DandD/ACONVERSION/SAMPLINGCIRCUITSAMPLIFIERANDCOMPARATORCIRCUITSSIGNALGENERATIONCIRCUITSKeywords:4-20mA,currentloop,currentloops,DAC,ADC,currentDAC,isolation,2-wire,signalconditioning,Dec29,2000lowpower,D/A,industrialcontrol,EMI,transducers,currenttransmission,transmitterAPPLICATIONNOTE7223V/5VDACsSupportIntelligentCurrentLoopAbstract:Thisapplicationnoteexplains4-20mAcurrentloopsandintelligenttransmittersandexplainstheirneedforhigh-resolutionlow-powerDACs.Anoptimumpower-supplychipisnottheonlycriticalchoicetobemadeindesigningamixed3V/5Vmicroprocessor-controlledsystem.Becausemoreandmoresystemsrequirelow-powercomponentscapableoflow-voltagestartup,state-of-the-artA/……
  • 所需E币: 3
    时间: 2019-12-24 22:05
    大小: 131.19KB
    上传者: 978461154_qq
    Abstract:High-speedapplicationsusingultra-fastdataconvertersintheirdesignoftenrequireanextremelycleanclocksignaltomakesureanexternalclocksourcedoesnotcontributeundesirednoisetotheoveraldynamicperformanceofthesystem.Itisthereforecrucialtoselectsuitablesystemcomponents,whichhelpgeneratealowphase-jitterclock.Thefollowingapplicationnoteservesasavaluableguideforselectingtheappropriatecomponentstodesignalow-phasenoisePLL-basedclockgenerator,suitableforultra-fastdataconverters.Maxim>AppNotes>A/DandD/ACONVERSION/SAMPLINGCIRCUITSHIGH-SPEEDSIGNALPROCESSINGKeywords:high-speedADCs,high-speedanalogtodigitalconverter,PLL,VCO,phase-lockedloop,voltage-Nov20,2001controlledoscillator,lowphasenoise,lowphasejitter,clockjitter,crystaloscillator,noise,SNR,spuriouscomponents,analogdigital,dataconvertersAPPLICATIONNOTE800DesignaLow-JitterClockforHigh-SpeedDataConvertersAbstract:High-speedapplicationsusingultra-fastdataconvertersintheirdesignoftenrequireanextremelycleanclocksignaltomakesureanexternalclocksourcedoesnotcontributeundesirednoisetotheoveraldynamicperformanceofthesystem.Itisthereforecrucialtoselectsuitablesystemcomponents,whichhelpgene……
  • 所需E币: 5
    时间: 2019-12-24 21:25
    大小: 210.37KB
    上传者: wsu_w_hotmail.com
    Abstract:Itisincrediblehowmanyprogrammablelogiccontrols(PLCs)aroundusmakeourmodernlifepossibleandpleasant.Machinesinourhomesheatandcoolourairandwater,aswellaspreserveandcookourfood.ThistutorialexplainstheimportanceofPLCs,anddescribeshowtochoosecomponentpartsusingtheparametrictoolsontheMaxim'swebsite.Maxim>DesignSupport>TechnicalDocuments>ApplicationNotes>A/DandD/AConversion/SamplingCircuits>APP4490Maxim>DesignSupport>TechnicalDocuments>ApplicationNotes>AmplifierandComparatorCircuits>APP4490Maxim>DesignSupport>TechnicalDocuments>ApplicationNotes>AnalogSwitchesandMultiplexers>APP4490Keywords:programmablelogiccontrol,PLC,automation,closedloopcontrol,processmachine,ADC,DAC,A/D,D/A,parameter,switch,signalchainMar29,2012APPLICATIONNOTE4490HowSignalChainsandPLCsImpactOurLivesBy:BillLaumeister,StrategicApplicationsEngineerMar29,2012Abstract:Itisincrediblehowmanyprogr……
  • 所需E币: 3
    时间: 2019-12-24 21:22
    大小: 62.84KB
    上传者: 978461154_qq
    Abstract:Thefragilecurrent-shuntresistorintheanalogfrontendofanisolated0–20mAprecisioncurrentloopcanbeprotectedbyafastfuseoranautomaticcurrent-limitingswitch.Thecircuitshown,however,isfasterthanafuse,requiresnoreplacement,and(unliketheswitch)providesmicroprocessorcontrolwithanoptiontologthefaultevents.Thecircuitincludesacomparator(MAX9910),amicroprocessorsupervisorwithwatchdogtimer(MAX6706),aD-typeflip-flop,anNORgate,anORgate,andasolid-staterelay.Maxim>Designsupport>Appnotes>AmplifierandComparatorCircuits>APP4850Maxim>Designsupport>Appnotes>MicroprocessorSupervisorCircuits>APP4850Maxim>Designsupport>Appnotes>ProtectionandIsolation>APP4850Keywords:0-20mAcurrentloop,analogfrontend,AFE,current-shuntresistor,shuntprotectionFeb15,2011APPLICATIONNOTE4850MicrocontrollerControlsCurrent-LoopAFEProtectionBy:AnatolyAndrusevichAbstract:Thefragilecurrent-shuntresistorintheanalogfrontendofanisolated0……