| 数据搜索系统,热门电子元器件搜索 |
|
HT45F2002 数据表(PDF) 17 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2002 数据表(HTML) 17 Page - Holtek Semiconductor Inc |
|
17 / 31 page ![]() Rev. 1.00 1� ���� 1�� �01� Rev. 1.00 17 ���� 1�� �01� HT45F2002 2-Wire Communication Flash MCU HT45F2002 2-Wire Communication Flash MCU Logical and Rotate Operation ThestandardlogicaloperationssuchasAND,OR,XORandCPLallhavetheirowninstruction withintheHoltekmicrocontrollerinstructionset.Aswiththecaseofmostinstructionsinvolving datamanipulation,datamustpassthroughtheAccumulatorwhichmayinvolveadditional programmingsteps.Inalllogicaldataoperations,thezeroflagmaybesetiftheresultofthe operationiszero.Anotherformoflogicaldatamanipulationcomesfromtherotateinstructionssuch asRR,RL,RRCandRLCwhichprovideasimplemeansofrotatingonebitrightorleft.Different rotateinstructionsexistdependingonprogramrequirements.Rotateinstructionsareusefulforserial portprogrammingapplicationswheredatacanberotatedfromaninternalregisterintotheCarry bitfromwhereitcanbeexaminedandthenecessaryserialbitsethighorlow.Anotherapplication whichrotatedataoperationsareusedistoimplementmultiplicationanddivisioncalculations. Branches and Control Transfer ProgrambranchingtakestheformofeitherjumpstospecifiedlocationsusingtheJMPinstruction ortoasubroutineusingtheCALLinstruction.Theydifferinthesensethatinthecaseofa subroutinecall,theprogrammustreturntotheinstructionimmediatelywhenthesubroutinehas beencarriedout.Thisisdonebyplacingareturninstruction“RET”inthesubroutinewhichwill causetheprogramtojumpbacktotheaddressrightaftertheCALLinstruction.InthecaseofaJMP instruction,theprogramsimplyjumpstothedesiredlocation.Thereisnorequirementtojumpback totheoriginaljumpingoffpointasinthecaseoftheCALLinstruction.Onespecialandextremely usefulsetofbranchinstructionsaretheconditionalbranches.Hereadecisionisfirstmaderegarding theconditionofacertaindatamemoryorindividualbits.Dependingupontheconditions,the programwillcontinuewiththenextinstructionorskipoveritandjumptothefollowinginstruction. Theseinstructionsarethekeytodecisionmakingandbranchingwithintheprogramperhaps determinedbytheconditionofcertaininputswitchesorbytheconditionofinternaldatabits. Bit Operations TheabilitytoprovidesinglebitoperationsonDataMemoryisanextremelyflexiblefeatureofall Holtekmicrocontrollers.Thisfeatureisespeciallyusefulforoutputportbitprogrammingwhere individualbitsorportpinscanbedirectlysethighorlowusingeitherthe“SET[m].i”or“CLR[m].i” instructionsrespectively.Thefeatureremovestheneedforprogrammerstofirstreadthe8-bitoutput port,manipulatetheinputdatatoensurethatotherbitsarenotchangedandthenoutputtheportwith thecorrectnewdata.Thisread-modify-writeprocessistakencareofautomaticallywhenthesebit operationinstructionsareused. Table Read Operations Datastorageisnormallyimplementedbyusingregisters.However,whenworkingwithlarge amountsoffixeddata,thevolumeinvolvedoftenmakesitinconvenienttostorethefixeddatain theDataMemory.Toovercomethisproblem,HoltekmicrocontrollersallowanareaofProgram Memorytobesetupasatablewheredatacanbedirectlystored.Asetofeasytouseinstructions providesthemeansbywhichthisfixeddatacanbereferencedandretrievedfromtheProgram Memory. Other Operations Inadditiontotheabovefunctionalinstructions,arangeofotherinstructionsalsoexistsuchas the“HALT”instructionforPower-downoperationsandinstructionstocontroltheoperationof theWatchdogTimerforreliableprogramoperationsunderextremeelectricorelectromagnetic environments.Fortheirrelevantoperations,refertothefunctionalrelatedsections. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |